Page 1 of 1

NRPE Unable to read output

Posted: Thu Jul 21, 2016 8:23 am
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?

Re: NRPE Unable to read output

Posted: Thu Jul 21, 2016 10:33 am
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

Re: NRPE Unable to read output

Posted: Thu Jul 21, 2016 10:51 am
by BanditBBS
Hmm, version is 2.15.

Re: NRPE Unable to read output

Posted: Thu Jul 21, 2016 11:40 am
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

Re: NRPE Unable to read output

Posted: Thu Jul 21, 2016 12:04 pm
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!

Re: NRPE Unable to read output

Posted: Thu Jul 21, 2016 12:07 pm
by mcapra
Closing this up per your request. Definitely let us know of any weird findings!