check_nrpe check_services returns "Nok"

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
SavaSC
Posts: 238
Joined: Wed Feb 23, 2011 4:49 pm

check_nrpe check_services returns "Nok"

Post 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.
You do not have the required permissions to view the files attached to this post.
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: check_nrpe check_services returns "Nok"

Post by avandemore »

What does your nrpe.cfg contain? Please attach it.

What happens if you run the check_nrpe locally on the listener?
Previous Nagios employee
SavaSC
Posts: 238
Joined: Wed Feb 23, 2011 4:49 pm

Re: check_nrpe check_services returns "Nok"

Post 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)
You do not have the required permissions to view the files attached to this post.
SavaSC
Posts: 238
Joined: Wed Feb 23, 2011 4:49 pm

Re: check_nrpe check_services returns "Nok"

Post by SavaSC »

Ummm..... Now, for no reason I can find, after 5 days, it is now working. I'm not sure what happened.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: check_nrpe check_services returns "Nok"

Post by dwhitfield »

Package updates perhaps? Did you want to investigate or ready to lock it up?
SavaSC
Posts: 238
Joined: Wed Feb 23, 2011 4:49 pm

Re: check_nrpe check_services returns "Nok"

Post by SavaSC »

Well, it's still fine after the long weekend, so I guess we can lock this up.

Thank you for your assistance.
Locked