NSClient - ERROR: Invalid return from command: check_pdh

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

NSClient - ERROR: Invalid return from command: check_pdh

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

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

Post 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"
Locked