Page 1 of 1
Issue with performance counters check
Posted: Thu Jun 04, 2020 1:00 pm
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
Re: Issue with performance counters check
Posted: Thu Jun 04, 2020 4:41 pm
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 ( \ ).
Re: Issue with performance counters check
Posted: Thu Jun 04, 2020 4:56 pm
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
Re: Issue with performance counters check
Posted: Fri Jun 05, 2020 10:33 am
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"
Re: Issue with performance counters check
Posted: Mon Jun 08, 2020 3:32 pm
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
Re: Issue with performance counters check
Posted: Tue Jun 09, 2020 9:57 am
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.
Re: Issue with performance counters check
Posted: Wed Jun 10, 2020 3:10 am
by dariopalermo
Thanks. Just to know, how often is XI patched?
Bye, Dario
Re: Issue with performance counters check
Posted: Wed Jun 10, 2020 9:15 am
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!
Re: Issue with performance counters check
Posted: Wed Jun 10, 2020 9:32 am
by dariopalermo
Ok, thanks.
Bye, Dario