ncpa windows counters

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
User avatar
nozlaf
Posts: 172
Joined: Sun Nov 09, 2014 9:50 pm
Location: Victoria, Australia

ncpa windows counters

Post by nozlaf »

i'm running ncpa 2.02 and want to do some windows counters stuff

Code: Select all

\logicaldisk(*)\Avg. Disk Bytes/Transfer


gives me
"Error: The specified object was not found on the computer."
seems it doesn't like most of the disk counters even tho typeperf -q shows them as being there

am I missing something?
Looking forward to seeing you all at #NagiosCon2019?
-Dedicated Lover of Nconf,PNP4Nagios and Nagvis
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

Re: ncpa windows counters

Post by mcapra »

It's a known issue with the current version of NCPA. Similar problem to what causes this:
https://github.com/NagiosEnterprises/ncpa/issues/316

A future version (2.1 most likely) will accept the counter as an argument rather than part of the URL, should make things a bit cleaner.
Former Nagios employee
https://www.mcapra.com/
User avatar
nozlaf
Posts: 172
Joined: Sun Nov 09, 2014 9:50 pm
Location: Victoria, Australia

Re: ncpa windows counters

Post by nozlaf »

interesting, is there any workaround?
Looking forward to seeing you all at #NagiosCon2019?
-Dedicated Lover of Nconf,PNP4Nagios and Nagvis
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: ncpa windows counters

Post by dwhitfield »

The easiest/quickest one I can think of is just to use 1.8.1 until 2.1 comes out.

I took a look at the dev branch on github, and the fix isn't there yet. You could just keep an eye on the github page and test it out when it comes to the dev branch.

I have a couple of other ideas, but those would require untested code-modifications.
Locked