Configuration of Nagios monitoring server (1)

Source: Internet
Author: User

 

Figure-Nagios

The configuration of the Nagios monitoring server is as follows:

1. Install nrpe

[Root @ UnixHot src] # tar zxvf nrpe-2.12.tar.gz

[Root @ UnixHot nrpe-2.12] #./configure & make all

[Root @ UnixHot nrpe-2.12] # make install-plugin

[Root @ UnixHot nrpe-2.12] # make install-daemon

[Root @ UnixHot nrpe-2.12] # make install-daemon-config

[Root @ UnixHot nrpe-2.12] # make install-xinetd

2. Configure nrep

[Root @ UnixHot nrpe-2.12] # vi/etc/xinetd. d/nrpe

Service nrpe

{

Flags = REUSE

Socket_type = stream

Port = 5666

Wait = no

User = nagios

Group = nagios

Server =/usr/local/nagios/bin/nrpe

Server_args =-c/usr/local/nagios/etc/nrpe. cfg -- inetd

Log_on_failure + = USERID

Disable = no

Only_from = 127.0.0.1 192.168.0.206 192.168.0.155 192.168.0.157

Add the IP address of the host to be monitored in only_from, separated by spaces.


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.