NRPE Unable to read output

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

NRPE Unable to read output

Post by BanditBBS »

I know I saw this option somewhere before but I just can't find it and my googling is failing me!

I want "Unable to read output" to return with UNKNOWN and not critical. Does that require a recompile of NRPE, or where the heck is that option?
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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: NRPE Unable to read output

Post by tmcdonald »

What NRPE version are you on? The latest should behave as you want:

https://github.com/NagiosEnterprises/nr ... 1609-L1612

Code: Select all

} else if (!strcmp(send_buff, "")) {
    sprintf(send_buff, "NRPE: Unable to read output\n");
    result = STATE_UNKNOWN;
}
Or you can always use negate: http://nagios-plugins.org/doc/man/negate.html
Former Nagios employee
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: NRPE Unable to read output

Post by BanditBBS »

Hmm, version is 2.15.
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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NRPE Unable to read output

Post by lmiltchev »

This is strange - why your check would return CRITICAL? I get "UNKNOWN" with NRPE v. 2.15... as expected.

Code: Select all

[root@localhost ~]# /usr/local/nagios/bin/nrpe -V | grep -i version
Version: 2.15
[root@localhost ~]# /usr/local/nagios/libexec/check_nrpe -H x.x.x.x -c check_users -a '-w 2 -c 5'
NRPE: Unable to read output
[root@localhost ~]# echo $?
3
example01.PNG
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: NRPE Unable to read output

Post by BanditBBS »

Ok, has to be something on my end, maybe I changed it for some reason I know longer remember...who knows. Close this up, I'll investigate on my side, thanks for verifying!
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
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: NRPE Unable to read output

Post by mcapra »

Closing this up per your request. Definitely let us know of any weird findings!
Former Nagios employee
https://www.mcapra.com/
Locked