Performance counters with Nsclient++

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mdsupersonic
Posts: 84
Joined: Fri May 13, 2016 2:25 pm

Performance counters with Nsclient++

Post 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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Performance counters with Nsclient++

Post 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.
Former Nagios Employee
mdsupersonic
Posts: 84
Joined: Fri May 13, 2016 2:25 pm

Re: Performance counters with Nsclient++

Post by mdsupersonic »

Thank you for your reply,I will make a change and will inform you here.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Performance counters with Nsclient++

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
mdsupersonic
Posts: 84
Joined: Fri May 13, 2016 2:25 pm

Re: Performance counters with Nsclient++

Post 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?
mdsupersonic
Posts: 84
Joined: Fri May 13, 2016 2:25 pm

Re: Performance counters with Nsclient++

Post by mdsupersonic »

I found it guys,thank you for your help
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Performance counters with Nsclient++

Post 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!
Locked