Page 2 of 2

Re: Trouble pulling Windows counter data

Posted: Tue Aug 09, 2016 11:36 am
by gormank
True, but one would think that the code in the source is there for a reason...

Re: Trouble pulling Windows counter data

Posted: Tue Aug 09, 2016 11:40 am
by mcapra
Could be a safety measure to prevent mis-labeled perfdata? I recompiled NSClient++ without that line and didn't see any major issues with CheckCounter.

Probably worth raising an issue on the github if it's disruptive:
https://github.com/mickem/nscp/issues

Re: Trouble pulling Windows counter data

Posted: Tue Aug 09, 2016 11:45 am
by gormank
Does your output using the recompiled version have the none?

Re: Trouble pulling Windows counter data

Posted: Tue Aug 09, 2016 11:50 am
by mcapra
It did not include the "none". A more time-efficient solution might be a simple sed as part of the CLI execution:

EDIT: Actually don't use sed. This discards the exit code and makes your check useless.

Re: Trouble pulling Windows counter data

Posted: Fri Aug 19, 2016 5:23 pm
by gormank
This can be closed...