Page 2 of 2

Re: check_nrpe - CheckServiceState Exclusion Problem

Posted: Mon Jul 27, 2015 7:02 pm
by tbmay
Thanks but it didn't work. It works on the command line but not in the test or where it matters.

In the test it gives me this.

OUTPUT: Could not construct return packet in NRPE handler check client side (nsclient.log) logs...

It has no effect in the nagios output. The service still shows up.

So both double and single quotes work on the command.

Double quotes work in the test.

Neither works where we want it to work.

Re: check_nrpe - CheckServiceState Exclusion Problem

Posted: Tue Jul 28, 2015 9:18 am
by lmiltchev
Can you post the nsclient.ini file from the Windows server? Hide sensitive info - IPs, passwords, etc.

Re: check_nrpe - CheckServiceState Exclusion Problem

Posted: Mon Aug 10, 2015 2:10 pm
by tbmay
Sorry for delay. Busy this time of year.

Please find the attached file.

Re: check_nrpe - CheckServiceState Exclusion Problem

Posted: Mon Aug 10, 2015 3:58 pm
by tgriep
Try editing the exclusion like below. $ have to be escaped a little differently.

Code: Select all

exclude="SQLAgent$"$"DESTINY"

Re: check_nrpe - CheckServiceState Exclusion Problem

Posted: Wed Aug 12, 2015 12:02 pm
by tbmay
Thanks tgriep but it didn't have any effect. No error, but the service is not excluded.

Re: check_nrpe - CheckServiceState Exclusion Problem

Posted: Wed Aug 12, 2015 12:09 pm
by tbmay
I stand corrected. I missed the first $ sign. Don't think I've ever escaped anything with a $ sign before and I used to be pretty decent with regex.

Thanks for you help.

Re: check_nrpe - CheckServiceState Exclusion Problem

Posted: Wed Aug 12, 2015 12:13 pm
by hsmith
tbmay wrote:I stand corrected. I missed the first $ sign. Don't think I've ever escaped anything with a $ sign before and I used to be pretty decent with regex.

Thanks for you help.
Is this working for you now?

Re: check_nrpe - CheckServiceState Exclusion Problem

Posted: Wed Aug 12, 2015 12:14 pm
by tbmay
Yes

Re: check_nrpe - CheckServiceState Exclusion Problem

Posted: Wed Aug 12, 2015 12:19 pm
by hsmith
tbmay wrote:Yes
Thank you for the update.

I am going to close this topic.

Glad we could help!