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?
NRPE Unable to read output
NRPE Unable to read output
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
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
Re: NRPE Unable to read output
What NRPE version are you on? The latest should behave as you want:
https://github.com/NagiosEnterprises/nr ... 1609-L1612
Or you can always use negate: http://nagios-plugins.org/doc/man/negate.html
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;
}
Former Nagios employee
Re: NRPE Unable to read output
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
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
Re: NRPE Unable to read output
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 $?
3You 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!
Re: NRPE Unable to read output
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
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
Re: NRPE Unable to read output
Closing this up per your request. Definitely let us know of any weird findings!
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/