./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
Issue with performance counters check
Re: Issue with performance counters check
You could also try using double quotes instead of single quotes.
I believe you can escape the character by preceding it with a backslash ( \ ).
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!
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
Thanks for your reply.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 ( \ ).
No luck with escaping with \ or substituting ' with "...
Bye, Dario
Re: Issue with performance counters check
I didn't need to escape mine but I don't have that counter on my system. Does this work for you?
If you run this command in a powershell prompt on that server, does it return anything?
Code: Select all
/usr/local/nagios/libexec/check_ncpa.py -H X.X.X.X -t 'yourtoken' -M 'windowscounters/Processor Performance(*)/Processor Frequency'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
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
I just needed to apply the config ignoring the errors...
Bye, Dario
Re: Issue with performance counters check
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.
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
Thanks. Just to know, how often is XI patched?
Bye, Dario
Bye, Dario
Re: Issue with performance counters check
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
Ok, thanks.
Bye, Dario
Bye, Dario