Hello,
i am trying to use Check_ncpa.py to collect the performance counters for ms exchange,
./check_ncpa.py -H server-t 'token' -P 5693 -M 'windowscounters/MSExchangeIS/RPC Averaged Latency'
OK: \MSExchangeIS\RPC Averaged Latency was 0 c | '\MSExchangeIS\RPC Averaged Latency'=0c;;;
i always get 0c as a result for any MSExchange while other counters work
./check_ncpa.py -H server-t 'token' -P 5693 -M 'windowscounters/Memory/Available MBytes'
OK: \Memory\Available MBytes was 92087.00 Available MBytes | '\Memory\Available MBytes'=92087.00;;;
We have 2.1.6 of NCPA installed on the server.
So the questions is ,
can NCPA read MSExchange related performance counters? if not what are my options out of box? Or create a powershell script to get the counter value and read it in nagios
error log from ncpa listener log
2019-07-18 14:51:24,665:ERROR:app:Exception on /api/windowscounters/RPC Averaged Latency/ [GET]
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\flask\app.py", line 1817, in wsgi_app
File "C:\Python27\lib\site-packages\flask\app.py", line 1477, in full_dispatch_request
File "C:\Python27\lib\site-packages\flask\app.py", line 1381, in handle_user_exception
File "C:\Python27\lib\site-packages\flask\app.py", line 1475, in full_dispatch_request
File "C:\Python27\lib\site-packages\flask\app.py", line 1461, in dispatch_request
File "C:\ncpa\agent\listener\server.py", line 169, in token_auth_decoration
File "C:\ncpa\agent\listener\server.py", line 929, in api
File "C:\ncpa\agent\listener\windowscounters.py", line 26, in walk
File "C:\ncpa\agent\listener\windowscounters.py", line 95, in get_counter_path
IndexError: list index out of range
Thanks
perfmon counter using check_ncpa for Microsoft exchange
Re: perfmon counter using check_ncpa for Microsoft exchange
What version of Exchange?
Do those counters actually exist?
OR
Powershell (as admin):
Do those counters actually exist?
Code: Select all
TypePerf.exe –q > counters1.txtPowershell (as admin):
Code: Select all
get-counter > counters2.txtRe: perfmon counter using check_ncpa for Microsoft exchange
Thank you,
You can close this. we were able to find the right counter for 2013 exchange and the check_ncpa was able to get the values.
Thanks
You can close this. we were able to find the right counter for 2013 exchange and the check_ncpa was able to get the values.
Thanks
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: perfmon counter using check_ncpa for Microsoft exchange
Great!Keystone wrote:Thank you,
You can close this. we were able to find the right counter for 2013 exchange and the check_ncpa was able to get the values.
Thanks
Locking