Page 2 of 2

Re: Problem with service Queue Depth

Posted: Wed Sep 20, 2017 2:45 pm
by Cristian Godoy
kyang wrote:Can you tell me the version of NSClient++ you are running?
It is NSClient ++ (x64) version 0.4.4.23

Re: Problem with service Queue Depth

Posted: Wed Sep 20, 2017 4:52 pm
by kyang
Looks like I gave the wrong command. Forgot a \

Code: Select all

/usr/local/nagios/libexec/check_nt -H 10.161.176.75 -s "Config2006" -p 12489 -v COUNTER -l "\\PhysicalDisk(6)\\Avg. Disk Queue Length\\","Drive C:\MSSQL\PCL\LOGS queue length is %.2f %%" -w 80 -c 90 
Try this and let us know the output!

Re: Problem with service Queue Depth

Posted: Thu Sep 21, 2017 1:37 pm
by Cristian Godoy
kyang wrote:Looks like I gave the wrong command. Forgot a \

Code: Select all

/usr/local/nagios/libexec/check_nt -H 10.161.176.75 -s "Config2006" -p 12489 -v COUNTER -l "\\PhysicalDisk(6)\\Avg. Disk Queue Length\\","Drive C:\MSSQL\PCL\LOGS queue length is %.2f %%" -w 80 -c 90 
Try this and let us know the output!
The same message

Code: Select all

[nagios@nvsplmonnagvt01 ~]$ /usr/local/nagios/libexec/check_nt -H 10.161.176.75 -s "Config2006" -p 12489 -v COUNTER -l "\\PhysicalDisk(6)\\Avg. Disk Queue Length\\","Drive C:\MSSQL\PCL\LOGS queue length is %.2f %%" -w 80 -c 90 
NSClient - ERROR: Invalid return from command: check_pdh

Re: Problem with service Queue Depth

Posted: Thu Sep 21, 2017 2:53 pm
by scottwilkerson
Sorry this is being so tricky, we have some trailing \\ on the performance counter

I believe this is correct

Code: Select all

/usr/local/nagios/libexec/check_nt -H 10.161.176.75 -s "Config2006" -p 12489 -v COUNTER -l "\\PhysicalDisk(6)\\Avg. Disk Queue Length","Drive C:\MSSQL\PCL\LOGS queue length is %.2f %%" -w 80 -c 90

Re: Problem with service Queue Depth

Posted: Fri Sep 22, 2017 8:29 am
by Cristian Godoy
scottwilkerson wrote:Sorry this is being so tricky, we have some trailing \\ on the performance counter

I believe this is correct

Code: Select all

/usr/local/nagios/libexec/check_nt -H 10.161.176.75 -s "Config2006" -p 12489 -v COUNTER -l "\\PhysicalDisk(6)\\Avg. Disk Queue Length","Drive C:\MSSQL\PCL\LOGS queue length is %.2f %%" -w 80 -c 90

I work, thank you very much to all for the help

Re: Problem with service Queue Depth

Posted: Fri Sep 22, 2017 8:42 am
by scottwilkerson
Glad we were able to sort it out for you!