What is a good way to check if nrpe service is running? I set the NRPE checks to report as UNKNOWN if there is issues because I want to avoid firing lots of alerts just because the server is going down and stops the nrpe service.
I tried to monitor the TCP port 5666. But that creates SSL Handshake messages. Then I tried to use NMAP which causes other issues
015-11-16T11:31:37.940060+01:00 Error: Network server getpeername() failure (107: Transport endpoint is not connected)
2015-11-16T11:31:37.940223+01:00 Cannot remove pidfile '/var/run/nrpe/nrpe.pid' - check your privileges.
2015-11-16T11:31:37.940281+01:00 Daemon shutdown
That should return with the version of NRPE running, if not, then issue.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github