perfmon counter using check_ncpa for Microsoft exchange

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Keystone
Posts: 28
Joined: Wed Jan 17, 2018 12:09 pm

perfmon counter using check_ncpa for Microsoft exchange

Post by Keystone »

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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: perfmon counter using check_ncpa for Microsoft exchange

Post by ssax »

What version of Exchange?

Do those counters actually exist?

Code: Select all

TypePerf.exe –q > counters1.txt
OR

Powershell (as admin):

Code: Select all

get-counter > counters2.txt
Keystone
Posts: 28
Joined: Wed Jan 17, 2018 12:09 pm

Re: perfmon counter using check_ncpa for Microsoft exchange

Post by Keystone »

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
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

Post by scottwilkerson »

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
Great!

Locking
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked