Page 1 of 1

check_nrpe check_services returns "Nok"

Posted: Fri May 26, 2017 12:52 pm
by SavaSC
Hello,

I'm trying to monitor a Linux service but Nagios returns something weird. Here is the output:
[[email protected] ~]$ /usr/local/nagios/libexec/check_nrpe -H hpfilridx01 -t 120 -c check_services -a 'indexserver'
*** indexserver: Nok ***
I have run the command locally on the host and it comes out OK (see attachement). I have other service that I'm using this format of check_nrpe check_services and it works fine.

Any idea of what I'm missing?

Thanks.

Re: check_nrpe check_services returns "Nok"

Posted: Fri May 26, 2017 1:55 pm
by avandemore
What does your nrpe.cfg contain? Please attach it.

What happens if you run the check_nrpe locally on the listener?

Re: check_nrpe check_services returns "Nok"

Posted: Fri May 26, 2017 2:25 pm
by SavaSC
Thanks for your quick response!

Here is my nrpe.cfg file.
nrpe.cfg
When I try to run check_nrpe on the host, I get a "Could not complete SSL handshake." error. (see attachment)

Re: check_nrpe check_services returns "Nok"

Posted: Fri May 26, 2017 2:36 pm
by SavaSC
Ummm..... Now, for no reason I can find, after 5 days, it is now working. I'm not sure what happened.

Re: check_nrpe check_services returns "Nok"

Posted: Sat May 27, 2017 11:47 am
by dwhitfield
Package updates perhaps? Did you want to investigate or ready to lock it up?

Re: check_nrpe check_services returns "Nok"

Posted: Tue May 30, 2017 8:41 am
by SavaSC
Well, it's still fine after the long weekend, so I guess we can lock this up.

Thank you for your assistance.