Page 1 of 1

NSClient - ERROR: Invalid return from command: check_pdh

Posted: Thu Apr 23, 2015 6:21 am
by jkinning
The NSClient is running NSCP-0.4.3.77-x64 on a Windows 2008r2 64-bit server and Nagios is version XI 2014R2.6. I have 10 other identical servers but this one is returning this error:
NSClient - ERROR: Invalid return from command: check_pdh

The check is:
check_xi_service_nsclient COUNTER-l "\\Server Work Queues(0)\\Queue Length","Current work queue (an indication of processing load) is %.f " -w 4 -c 7

Re: NSClient - ERROR: Invalid return from command: check_pdh

Posted: Thu Apr 23, 2015 3:53 pm
by ssax
If you run this from the command line what does it return?

Code: Select all

cd /usr/local/nagios/libexec
./check_nt -H SERVER -p 12489 -v COUNTER -l "\\Server Work Queues(0)\\Queue Length" -s PASSWORD -w 4 -c 7
Make sure to change SERVER and PASSWORD with the proper information.


What does this command output on the Windows machine?

Code: Select all

typeperf "\Server Work Queues(0)\Queue Length"