Page 1 of 1

Performance counters with Nsclient++

Posted: Thu Oct 13, 2016 2:44 pm
by mdsupersonic
Hi support team,
I want to check some performance counters in our windows servers which are currently under monitoring.
I wen through this link https://support.nagios.com/kb/article.php?id=127 which was not completely helpful.
My problem is defining specific counter when I'm trying to create a new service.

COMMAND: /usr/local/nagios/libexec/check_nrpe -H 10.40.6.11 -t 30 -c CheckCounter -a"Counter:Total current connection=\\Web Service\(_Total\)\\Current Connections"
OUTPUT: Exception processing request: Request command contained illegal metachars!


I want to use ( \Web Service(_Total)\Current Connections) this performance counter but I have difficulty by defining the argument.
If you have any example that would be appreciated.

Re: Performance counters with Nsclient++

Posted: Thu Oct 13, 2016 3:09 pm
by rkennedy
Take a look at this link - http://docs.nsclient.org/faq/index.html ... characters

On your NSClient++ configuration, on the client side, you'll want to make two changes (under these specific sections) -

Code: Select all

[/settings/NRPE/server]
allow nasty characters=true

[/settings/external scripts]
allow nasty characters=true
After doing so, restart the nscp service and it should work as expected.

One thing to note, the test check command is NOT reliable. Setup the check, and let it run it's full course to see if it's working.

Re: Performance counters with Nsclient++

Posted: Thu Oct 13, 2016 3:17 pm
by mdsupersonic
Thank you for your reply,I will make a change and will inform you here.

Re: Performance counters with Nsclient++

Posted: Thu Oct 13, 2016 4:29 pm
by lmiltchev
Thank you for your reply,I will make a change and will inform you here.
Sure, let us know if the issue has been resolved.

Re: Performance counters with Nsclient++

Posted: Fri Oct 14, 2016 8:35 am
by mdsupersonic
I made the changes but I don't know how to use the performance counter as an argument.Is there any sample or guideline to follow it?

I want to monitor this performance counter \Web Service(_Total)\Total Get Requests how can I define it as an argument?

Re: Performance counters with Nsclient++

Posted: Fri Oct 14, 2016 9:08 am
by mdsupersonic
I found it guys,thank you for your help

Re: Performance counters with Nsclient++

Posted: Fri Oct 14, 2016 9:26 am
by dwhitfield
Glad to hear it is resolved. I am going to lock the thread. Please feel free to post again if you have you another issue. Thank you for using the Nagios forums!