I am trying to use check_nt to check the counters for CPU % of the plex transcoder service. The problem is that this service isn’t always running and when it’s not I get an error message returned. “NSClient - ERROR: No performance data from command: check_pdh” I found this error output in “nscp/modules/NSClientServer/NSClientServer.cpp”. Is there any way for when the service is not running to return 0 instead of the error message?
check_nt -H Host -p Port-v COUNTER -l “\Process(PlexTranscoder)% Processor Time”)
NSClient++ 0.5.0.62 2016-09-14
Nagios® Core™ Version 4.3.2