Page 1 of 1

Check if nrpe is running

Posted: Mon Nov 16, 2015 5:51 am
by sib
Hi

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

Code: Select all

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
Any ideas? I use the following NMAP command

Code: Select all

nmap -Pn host -p 5666

Re: Check if nrpe is running

Posted: Mon Nov 16, 2015 9:38 am
by BanditBBS
Just do a "check_nrpe -H hostaddress"

That should return with the version of NRPE running, if not, then issue.

Re: Check if nrpe is running

Posted: Mon Nov 16, 2015 11:30 am
by rkennedy
Thanks @BanditBBS! Does that answer your question @sib?

Re: Check if nrpe is running

Posted: Mon Nov 16, 2015 12:43 pm
by sib
So simple. And I have not thought about it ;-)

Great thanks

Re: Check if nrpe is running

Posted: Mon Nov 16, 2015 12:45 pm
by ssax
Great, any more questions on it or are we okay to mark it as resolved and lock the topic?

Re: Check if nrpe is running

Posted: Mon Nov 16, 2015 12:51 pm
by sib
You can mark it as resolved