Database Reference
In-Depth Information
$ make all
$ sudo make install-plugin
$ sudo make install-daemon
$ sudo make install-daemon-config
$ make install-xinetd
3. After this, you need to make sure each host machine accepts requests coming
from Nagios. For this, you need to edit /etc/xinetd.d/nrpe to add the Na-
gios host address to it. In the following code snippet, you need to replace
NAGIOS_HOST_ADDRESS with the actual Nagios host address:
# edit /etc/xinetd.d/nrpe
only_from = 127.0.0.1 NAGIOS_HOST_ADDRESS
# edit /etc/services and append this
nrpe 5666/tcp # NRPE
4. Restart and test whether xinet is functional:
# Restart xinetd
$ sudo service xinetd restart
Stopping xinetd: [FAILED]
Starting xinetd: [ OK ]
# Check if it's listening
$ netstat -at | grep nrpe
tcp 0 0 *:nrpe *:* LISTEN
# Check NRPE plugin
$ /usr/local/nagios/libexec/check_nrpe -H localhost
NRPE v2.14
# Try to invoke a plugin via NRPE
$ /usr/local/nagios/libexec/check_nrpe -H localhost
-c check_load
OK - load average: 0.01, 0.04,
0.06|load1=0.010;15.000;30.000;0;
load5=0.040;10.000;25.000;0;
load15=0.060;5.000;20.000;0;
Search WWH ::




Custom Search