Several considerations for Nagios monitoring Client

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.