Issue with performance counters check

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dariopalermo
Posts: 48
Joined: Fri Oct 31, 2014 1:13 pm

Issue with performance counters check

Post by dariopalermo »

./check_ncpa.py -H localhost -t '<your token>' -M 'windowscounters/MSExchangeIS Store(*)/RPC Requests' -w 60 -c 70

this is what the NCPA tells me to load into Nagios XI for a fully working (server side) perfomance counter check.

However, when I put this into XI I've got:

The specified counter could not be found.

The issue seems to be with the (*) part, if I check a counter without that it works. Do I have to escape something?

bye, Dario
User avatar
jbrunkow
Posts: 441
Joined: Fri Mar 13, 2020 10:45 am

Re: Issue with performance counters check

Post by jbrunkow »

You could also try using double quotes instead of single quotes.

I believe you can escape the character by preceding it with a backslash ( \ ).
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
dariopalermo
Posts: 48
Joined: Fri Oct 31, 2014 1:13 pm

Re: Issue with performance counters check

Post by dariopalermo »

jbrunkow wrote:You could also try using double quotes instead of single quotes.

I believe you can escape the character by preceding it with a backslash ( \ ).
Thanks for your reply.

No luck with escaping with \ or substituting ' with "...

Bye, Dario
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Issue with performance counters check

Post by ssax »

I didn't need to escape mine but I don't have that counter on my system. Does this work for you?

Code: Select all

/usr/local/nagios/libexec/check_ncpa.py -H X.X.X.X -t 'yourtoken' -M 'windowscounters/Processor Performance(*)/Processor Frequency'
If you run this command in a powershell prompt on that server, does it return anything?

Code: Select all

get-counter -counter "\MSExchangeIS Store(*)\RPC Requests"
dariopalermo
Posts: 48
Joined: Fri Oct 31, 2014 1:13 pm

Re: Issue with performance counters check

Post by dariopalermo »

My bad for relying on the "check on the fly" GUI ability... and that's broken (we discussed it in another thread: https://support.nagios.com/forum/viewto ... 16&t=58880).

I just needed to apply the config ignoring the errors...

Bye, Dario
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Issue with performance counters check

Post by lmiltchev »

Not all of the escaping is allowed in the CCM for security reasons. Our developers are aware of the issue and are working on coming up with a reasonable solution that would not compromise the security of the system.

The"Run Check Command" in the CCM is placed mainly for convenience. It may fail in some rare cases, due to escaping issues, so it's not meant to be a substitute for testing from the command line.

Having said that, I totally agree with you that the test button should work (once it's present in the GUI), and the escaping issues should be fixed.
Be sure to check out our Knowledgebase for helpful articles and solutions!
dariopalermo
Posts: 48
Joined: Fri Oct 31, 2014 1:13 pm

Re: Issue with performance counters check

Post by dariopalermo »

Thanks. Just to know, how often is XI patched?

Bye, Dario
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Issue with performance counters check

Post by lmiltchev »

We usually patch XI every 2-4 weeks or so, unless there is a major bug or security issue that needs to be addressed sooner. Thanks!
Be sure to check out our Knowledgebase for helpful articles and solutions!
dariopalermo
Posts: 48
Joined: Fri Oct 31, 2014 1:13 pm

Re: Issue with performance counters check

Post by dariopalermo »

Ok, thanks.

Bye, Dario
Locked