1.nagios to add a monitoring service that monitors the number of scan engines on the client, the engine runs on the KVM virtual machine, as follows:
[Email protected] libexec]# Virsh list
Id Name State
----------------------------------
avpscan_000 Running
AVPSCAN_001 Running
AVPSCAN_002 Running
Avpscan_003 Running
Avpscan_004 Running
Avpscan_005 Running
Panax Notoginseng avpscan_006 Running
Avpscan_007 Running
Avpscan_008 Running
avpscan_009 Running
avpscan_010 Running
AVPSCAN_012 Running
avpscan_013 Running
AVPSCAN_014 Running
avpscan_011 running I originally used this command in the script plugin to view the number of coal shares engines: num= ' Virsh list | grep Avpscan | Grep-v grep | Wc-l ' but found that the value passed to the Monitoring master server when the real value is 0, do not know what is going on. But after switching to the following command, it was found that the exact value was passed: num= ' ps Axu |grep qemu-kvm |grep AVP | Wc-l ' 2. In the use of Nagios, often found that there is a problem, select a service link, but show no permission to view, online for half a day, or to modify the/usr/local/nagios/etc/cgi.cfgcgi script control file cgi.cfg
First make sure that use_authentication=1 becomes 0 or this adds the following option to the Nagiosadmin user Authorized_for_system_information=nagiosadmin,nagios
Authorized_for_configuration_information=nagiosadmin,nagios
Authorized_for_system_commands=nagiosadmin,nagios
Authorized_for_all_services=nagiosadmin,nagios
Authorized_for_all_hosts=nagiosadmin,nagios tried it all without effect. Finally, the analysis found that the host name is configured to use Chinese characters, if you want to use the normal need to install the English plug-in, or change to English.
Several considerations for Nagios monitoring Client