NCPA API Endpoint windowscounters
Posted: Fri May 11, 2018 12:24 pm
G 'Day Customer Support,
So I have run into a problem and am unsure of the actual cause.
Using the NCPA Listener and working through the API Endpoint Tester I found that certain Perf Counters are being reported as not being found.
Example Counter: \PhysicalDisk(_Total)\Avg. Disk sec/Transfer
Clearly the counter exists because I can use both Perfmon and Powershell to extract the metric.
PS C:\> (Get-Counter "\PhysicalDisk(_Total)\Avg. Disk sec/Transfer").Countersamples
Path InstanceName CookedValue
---- ------------ -----------
\\servername\physicaldisk(_total)\avg. disk sec/transfer _total 0
But from NCPA API Endpoint Tester it reports as follows:
{ "windowscounters": [ [ "Error: The specified object was not found on the computer." ], "c" ] }
And it does not appear to be associated with spaces because other counters that have spaces work fine.
listener.log:
2018-05-11 09:56:37,630:INFO:handler:127.0.0.1 - - [2018-05-11 09:56:37] "GET /api/windowscounters/PhysicalDisk(_Total)/Avg.%20Disk%20sec/Transfer HTTP/1.1" 200 368 0.017000
Can someone from support please test this specific counter and report back?
Thanks for your help,
Danny
So I have run into a problem and am unsure of the actual cause.
Using the NCPA Listener and working through the API Endpoint Tester I found that certain Perf Counters are being reported as not being found.
Example Counter: \PhysicalDisk(_Total)\Avg. Disk sec/Transfer
Clearly the counter exists because I can use both Perfmon and Powershell to extract the metric.
PS C:\> (Get-Counter "\PhysicalDisk(_Total)\Avg. Disk sec/Transfer").Countersamples
Path InstanceName CookedValue
---- ------------ -----------
\\servername\physicaldisk(_total)\avg. disk sec/transfer _total 0
But from NCPA API Endpoint Tester it reports as follows:
Code: Select all
https://localhost:3181/api/windowscounters/PhysicalDisk(_Total)/Avg. Disk sec/TransferAnd it does not appear to be associated with spaces because other counters that have spaces work fine.
listener.log:
2018-05-11 09:56:37,630:INFO:handler:127.0.0.1 - - [2018-05-11 09:56:37] "GET /api/windowscounters/PhysicalDisk(_Total)/Avg.%20Disk%20sec/Transfer HTTP/1.1" 200 368 0.017000
Can someone from support please test this specific counter and report back?
Thanks for your help,
Danny