Nagios support for virtualisation

About nagios-virt

Nagios-virt is a configuration tool for adding monitoring of your virtualised domains to Nagios. You can use this tool to either set up a new Nagios installation for your Xen or QEMU/KVM guests, or to integrate with your existing Nagios installation.

Nagios-virt is built on top of libvirt so it works with several different virtualisation systems.


The license is the GNU General Public License, version 2 or above.


Nagios-virt screenshot

Installing Nagios configuration using nagios-virt

The main program is called /usr/sbin/nagios-virt (or just nagios-virt). To get help online, do:

nagios-virt --help

It may be helpful to print nagios-virt's configuration, to check that it matches where you think Nagios configuration files, etc. should be installed.

$ nagios-virt config
PACKAGE_NAME nagios-virt
NV_DATADIR /usr/share/nagios-virt-version

Assuming Xen, you can get nagios-virt to build and test its configuration files for you by doing:

nagios-virt install

This will generate two files:

This is a standard library of (virtualised) services to monitor. Do not edit this file as it will be overwritten each time nagios-virt runs.
This lists services found on guests on the system. You may edit this file, but beware that next time you run nagios-virt install, this file will be backed up as virt-hosts.cfg.nvold and a new file created in its place.

Nagios-virt doesn't alter any other configuration files.

Read and follow the instructions that nagios-virt prints out after installation.


nagios-virt -c qemu:///system install

Reporting bugs

Please report bugs through Red Hat Bugzilla.

Compiling nagios-virt



sudo make install

rjones AT redhat DOT com

$Id: index.html,v 1.2 2007/09/25 12:36:03 rjones Exp $