my solaris server is on RHEL5 , i have installed nagios-plugins-1.4.13 and nrpe-2.12. But when i check NRPE on the remote server(locally) its not working …
bash-3.00# /usr/local/nagios/libexec/check_nrpe -H localhost; tail -f /var/adm/messages
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
Oct 8 12:37:58 term-ser inetd[21119]: [ID 702911 daemon.error] Failed to set credentials for the inetd_start method of instance svc:/network/nrpe/tcp:default (chdir: No such file or directory)
I have installed it correctly… but i am unable to understand the logs…
1.Make sure the nrpe daemon is running under xinetd.
netstat -at | grep nrpe
The output out this command should show something like this:
tcp 0 0 *:nrpe : LISTEN
2.Next, check to make sure the NRPE daemon is functioning properly. To do this, run the check_nrpe plugin that
was installed for testing purposes.
/usr/local/nagios/libexec/check_nrpe -H localhost
You should get a string back that tells you what version of NRPE is installed, like this:
NRPE v2.12
Firstly i am on solaris…
so service xinetd status will not work…
also netstat -at | grep nrpe will not work…
bash-3.00# netstat -an| grep 5666
*.5666 . 0 0 49152 0 LISTEN
bash-3.00# /usr/local/nagios/libexec/check_nrpe -H localhost; tail -f /var/adm/messages
CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.
Oct 8 12:37:58 term-ser inetd[21119]: [ID 702911 daemon.error] Failed to set credentials for the inetd_start method of instance svc:/network/nrpe/tcp:default (chdir: No such file or directory)