check_nrpe - CheckServiceState Exclusion Problem

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
tbmay
Posts: 67
Joined: Wed Jan 22, 2014 6:23 pm

Re: check_nrpe - CheckServiceState Exclusion Problem

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

Re: check_nrpe - CheckServiceState Exclusion Problem

Post by lmiltchev »

Can you post the nsclient.ini file from the Windows server? Hide sensitive info - IPs, passwords, etc.
Be sure to check out our Knowledgebase for helpful articles and solutions!
tbmay
Posts: 67
Joined: Wed Jan 22, 2014 6:23 pm

Re: check_nrpe - CheckServiceState Exclusion Problem

Post by tbmay »

Sorry for delay. Busy this time of year.

Please find the attached file.
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: check_nrpe - CheckServiceState Exclusion Problem

Post by tgriep »

Try editing the exclusion like below. $ have to be escaped a little differently.

Code: Select all

exclude="SQLAgent$"$"DESTINY"
Be sure to check out our Knowledgebase for helpful articles and solutions!
tbmay
Posts: 67
Joined: Wed Jan 22, 2014 6:23 pm

Re: check_nrpe - CheckServiceState Exclusion Problem

Post by tbmay »

Thanks tgriep but it didn't have any effect. No error, but the service is not excluded.
tbmay
Posts: 67
Joined: Wed Jan 22, 2014 6:23 pm

Re: check_nrpe - CheckServiceState Exclusion Problem

Post 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.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: check_nrpe - CheckServiceState Exclusion Problem

Post 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?
Former Nagios Employee.
me.
tbmay
Posts: 67
Joined: Wed Jan 22, 2014 6:23 pm

Re: check_nrpe - CheckServiceState Exclusion Problem

Post by tbmay »

Yes
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: check_nrpe - CheckServiceState Exclusion Problem

Post by hsmith »

tbmay wrote:Yes
Thank you for the update.

I am going to close this topic.

Glad we could help!
Former Nagios Employee.
me.
Locked