NSClient - ERROR: Invalid return from command: check_pdh
Posted: Mon Jun 08, 2015 10:34 am
I updated an older 0.3.9.x nsclient++ on a machine where the commands below all used to work. Seems like some of this syntax is now legacy? I am running 0.4.2 nsclient
From the commands below the two commands that no longer work are Active_Virtual_Memory_in_MB and Processor_Timing.
Any idea what the proper syntax should be? Should the rest of the syntax for these also change?
command_name Exchange_User_Count
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v COUNTER -l "\\MSExchange RpcClientAccess\User Count","User Count %.f" -w 2000 -c 3000
command_name Exchange_Pending_Ping_Count
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v COUNTER -l "\\MSExchange ActiveSync\Ping Commands Pending","Pending Commands Count %.f" -w 2000 -c 3000
command_name Exchange_OWA_Unique_User_Count
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v COUNTER -l "\\MSExchange OWA\Current Unique Users","Unique User Count %.f" -w 2000 -c 3000
command_name Exchange_RPC_Connection_Count
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v COUNTER -l "\\MSExchange rpcclientaccess\connection count","RPC Connection Count %.f" -w 5000 -c 8000
command_name Exchange_RPC_Average_Latency
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v COUNTER -l "\\MSExchange rpcclientaccess\RPC Averaged Latency","RPC Averaged Latency %.f" -w 200 -c 300
command_name Exchange_RPC_User_Count
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v COUNTER -l "\\MSExchange rpcclientaccess\user count","RPC User Count %.f" -w 2500 -c 4000
command_name RPC_HTTP_Connection_Count
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v COUNTER -l "\\rpc/http proxy\current number of incoming rpc over http connections","user rpc http connections Count %.f" -w 4000 -c 6000
command_name HTTP_PROXY_Unique_Users
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v COUNTER -l "\\rpc/http proxy\current number of unique users","rpc unique users %.f" -w 2000 -c 3000
command_name Processor_Timing
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v COUNTER -l "\\processor(_Total)\% processor time","Processor Timing %.f" -w 70 -c 100
command_name Active_Virtual_Memory_in_MB
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v COUNTER -l "\\vm memory\memory active in mb","MB of Active Memory %.f" -w 12000 -c 15500
From the commands below the two commands that no longer work are Active_Virtual_Memory_in_MB and Processor_Timing.
Any idea what the proper syntax should be? Should the rest of the syntax for these also change?
command_name Exchange_User_Count
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v COUNTER -l "\\MSExchange RpcClientAccess\User Count","User Count %.f" -w 2000 -c 3000
command_name Exchange_Pending_Ping_Count
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v COUNTER -l "\\MSExchange ActiveSync\Ping Commands Pending","Pending Commands Count %.f" -w 2000 -c 3000
command_name Exchange_OWA_Unique_User_Count
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v COUNTER -l "\\MSExchange OWA\Current Unique Users","Unique User Count %.f" -w 2000 -c 3000
command_name Exchange_RPC_Connection_Count
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v COUNTER -l "\\MSExchange rpcclientaccess\connection count","RPC Connection Count %.f" -w 5000 -c 8000
command_name Exchange_RPC_Average_Latency
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v COUNTER -l "\\MSExchange rpcclientaccess\RPC Averaged Latency","RPC Averaged Latency %.f" -w 200 -c 300
command_name Exchange_RPC_User_Count
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v COUNTER -l "\\MSExchange rpcclientaccess\user count","RPC User Count %.f" -w 2500 -c 4000
command_name RPC_HTTP_Connection_Count
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v COUNTER -l "\\rpc/http proxy\current number of incoming rpc over http connections","user rpc http connections Count %.f" -w 4000 -c 6000
command_name HTTP_PROXY_Unique_Users
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v COUNTER -l "\\rpc/http proxy\current number of unique users","rpc unique users %.f" -w 2000 -c 3000
command_name Processor_Timing
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v COUNTER -l "\\processor(_Total)\% processor time","Processor Timing %.f" -w 70 -c 100
command_name Active_Virtual_Memory_in_MB
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v COUNTER -l "\\vm memory\memory active in mb","MB of Active Memory %.f" -w 12000 -c 15500