Check if nrpe is running

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sib
Posts: 111
Joined: Thu Dec 11, 2014 8:06 am

Check if nrpe is running

Post 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
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Check if nrpe is running

Post by BanditBBS »

Just do a "check_nrpe -H hostaddress"

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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Check if nrpe is running

Post by rkennedy »

Thanks @BanditBBS! Does that answer your question @sib?
Former Nagios Employee
sib
Posts: 111
Joined: Thu Dec 11, 2014 8:06 am

Re: Check if nrpe is running

Post by sib »

So simple. And I have not thought about it ;-)

Great thanks
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Check if nrpe is running

Post by ssax »

Great, any more questions on it or are we okay to mark it as resolved and lock the topic?
sib
Posts: 111
Joined: Thu Dec 11, 2014 8:06 am

Re: Check if nrpe is running

Post by sib »

You can mark it as resolved
Locked