The Nagios-plugins plugin is based on the completion of Nagios Core installation, and the installation details are as follows:
[Nagios monitor Nagios Core installation]http://4709096.blog.51cto.com/4699096/1702219
1. Compiling the installation
#nagios-plugins-1.4.14.tar.gz
#./configure \
--prefix=/usr/local/nagios \
--with-nagios-user=nagios \
--with-nagios-group=nagios
# make
# make Install
2. Service Configuration
Configuring SELinux
If the SELinux service is turned on, the default is to reject the run of the Nagios Web CGI program. You can check whether your system has selinux enabled by using the following command:
#getenforce
If the result of the above command shows that the SELinux service is turned on, you can temporarily turn it off by using the following command:
#setenforce 0
If SELinux is completely turned off, edit the/etc/sysconfig/selinux file to change the value "force" after selinux to "disable".
Of course, you can also run the Nagios CGI program in selinux/targeted mode without turning off SELinux in the following ways:
# chcon-r-T Httpd_sys_content_t/usr/local/nagios/sbin
# chcon-r-T Httpd_sys_content_t/usr/local/nagios/share
3. configuration file Validation
/usr/local/nagios/bin/nagios-v/usr/local/nagios/etc/nagios.cfg
4. Start Nagios
# service Nagios Start
Or
/usr/local/nagios/bin/nagios-d/usr/local/nagios/etc/nagios.cfg
5. View Nagios through the Web interface:
Http://hostip:prot/nagios
You need to specify the Web authentication account and password that you set up before logging in.
Note: For the security of the Nagios system, it is recommended that you use the Information Digest strong authentication mode (such as MD5), enforce the use of the web's Tsl/ssl Secure Communication mode, and set the client address of the Web interface to which Nagios is accessed through the Access control list.
This article is from the "4699096" blog, please be sure to keep this source http://4709096.blog.51cto.com/4699096/1702224
Nagios-plugins Installation of Nagios monitoring