The Nagios-plugins plugin is based on the installation of Nagios core, and the installation details of Nagios core 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/selinux file, and the value after the selinux= is "permissive".
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.
Acknowledgement: I refer to a number of articles after summing up, in this thank you network share!
This article is from the "4699096" blog, please be sure to keep this source http://4709096.blog.51cto.com/4699096/1702250
Nagios-plugins Installation of Nagios monitoring