Client Installation Nrpe plugin:
Ubuntu:
Useradd-s/sbin/nologin-m nagiosapt-get Install Nagios-nrpe-server nagios-plugins
Edit Nrpe configuration file
Vi/etc/nagios/nrpe.cfg
allowed_hosts=127.0.0.1,10.0.0.2?? (default is allowed_hosts=127.0.0.1) dont_blame_nrpe=1
: Wq
Start Nrpe
Service nagios-nrpe-server start??
Redhat:?
Rpm-i perl-crypt-des perl-net-snmp fping perl-digest-sha1 perl-digest-hmacperl-socket6? (Need to download, some local yum there) rpm-i nagios-plugins-1.4.16-1.el6.rf.x86_64.rpmrpm-i nagios-nrpe-2.14-1.el6.rf.x86_64.rpm? (need to download) vi/etc/nagios/nrpe.cfg? (command is required to add sudo)
? command[check_cpu]=sudo/usr/lib64/nagios/plugins/check_snmp_load.pl-h 127.0.0.1-c ' xxxxx '-W 80-c--perf
allowed_hosts=127.0.0.1,10.0.0.2?? (Default is allowed_hosts=127.0.0.1)
Dont_blame_nrpe=1
: Wq
Start Nrpe
Service Nrpe Startvi/etc/sudoers (nrpe:unable to read output is not reported here)
Nagios all= (All) nopasswd:/usr/lib64/nagios/plugins/*
#Defaults?? requiretty
: Wq
? Remember to open firewall ports (199, 5666, SNMP and Nrpe)
Vi/etc/sysconfig/iptables?
-A input–p tcp–dport 199–j ACCEPT
-A input–p tcp–dport 5666–j ACCEPT
: Wq
Service Iptables Restart
Ubuntu and Redhat installation Nrpe