Configure New Nagios Clients

Source: Internet
Author: User


Yum install-y gcc glibc glibc-common gd gd-devel make Net-snmp openssl-devel xinetd

Open: http://sourceforge.net/projects/nagios/files/nrpe-2.x/

wget http://liquidtelecom.dl.sourceforge.net/project/nagios/nrpe-2.x/nrpe-2.15/nrpe-2.15.tar.gz

Useradd Nagios
passwd Nagios

#tar Xzf nrpe-2.15.tar.gz
# CD nrpe-2.15
#./configure
#make All
#make Install-plugin
#make Install-daemon
#make Install-daemon-config
#make install-xinetd

Vi/etc/xinetd.d/nrpe
Only_from = 127.0.0.1,server_ip

Vi/etc/services add
Nrpe 5666/tcp # Nrpe


Vi/etc/sysconfig/iptables
Add 5666 Port Restart Iptables


Chown Nagios.nagios/usr/local/nagios
Chown-r nagios.nagios/usr/local/nagios/libexec

./usr/local/nagios/libexec/check_nrpe-h localhost

Yum-y Install Nagios-plugins-all Nagios-plugins-nrpe

Nagios-plugins Directory:/usr/lib64/nagios/plugins/check_disk

Vi/usr/local/nagios/etc/nrpe.cfg modification
Allowed_hosts=127.0.0.1,yourserverip

Comment out the Nagios plugin command that does not exist in the directory

Configure New Nagios Clients

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.