Trouble pulling Windows counter data
Re: Trouble pulling Windows counter data
True, but one would think that the code in the source is there for a reason...
Re: Trouble pulling Windows counter data
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
Probably worth raising an issue on the github if it's disruptive:
https://github.com/mickem/nscp/issues
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: Trouble pulling Windows counter data
Does your output using the recompiled version have the none?
Re: Trouble pulling Windows counter data
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.
EDIT: Actually don't use sed. This discards the exit code and makes your check useless.
Former Nagios employee
https://www.mcapra.com/
https://www.mcapra.com/
Re: Trouble pulling Windows counter data
This can be closed...