Nagios-plugins Installation of Nagios monitoring

Source: Internet
Author: User

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

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.