New command addition in Nagios XI
Posted: Wed Oct 28, 2015 10:29 am
Hi All,
Using service management I am adding the below two commands . After sending the arguments and performing the test activity I am getting errors.
When I give the same arguments directly from nagios server I am not facing any issue.
Can anyone please help in modifying the ARG2 for the below commands and share me an update ?
Service Management 1:
ARG1 : CheckCounter
ARG2 : -a ShowAll "Counter=\\LogicalDisk(D:)\\% Disk Time" MaxWarn=60 MaxCrit=70
Testing check from command line...
COMMAND: /usr/local/nagios/libexec/check_nrpe -p 5666 -H xxx.xx.xxx.xxx -t 30 -c CheckCounter -a ShowAll "Counter=\\\\LogicalDisk\(D:\)\\\\% Disk Time" MaxWarn=60 MaxCrit=70
OUTPUT: Failed to poll counter: PdhCollectQueryData failed: : 800007d5: No data to return.
When I run the command from the Nagios server its running fine :
./check_nrpe -H xxx.xx.xxx.xxx -c CheckCounter -a ShowAll "Counter=\\LogicalDisk(D:)\\% Disk Time" MaxWarn=60 MaxCrit=70
OK: \LogicalDisk(D:)\% Disk Time = 0|'\LogicalDisk(D:)\% Disk Timenone'=0;60;70
Service Management2:
Testing check from command line...
ARG1 : CheckCounter
ARG2 : -a ShowAll "Counter=\\Process(CPUSTRES)\\% Processor Time" MaxWarn=20 MaxCrit=30
COMMAND: /usr/local/nagios/libexec/check_nrpe -p 5666 -H xxx.xxx.xx.xxx -t 30 -c CheckCounter -a ShowAll "Counter=\\\\Process\(CPUSTRES\)\\\\% Processor Time" MaxWarn=20 MaxCrit=30
OUTPUT: Failed to poll counter: PdhCollectQueryData failed: : 800007d5: No data to return.
When I run the command from the Nagios server its running fine :
./check_nrpe -H xxx.xx.xxx.xxx -c CheckCounter -a ShowAll "Counter=\\Process(CPUSTRES)\\% Processor Time" MaxWarn=20 MaxCrit=30
CRITICAL: \Process(CPUSTRES)\% Processor Time = 41|'\Process(CPUSTRES)\% Processor Timenone'=41;20;30
Using service management I am adding the below two commands . After sending the arguments and performing the test activity I am getting errors.
When I give the same arguments directly from nagios server I am not facing any issue.
Can anyone please help in modifying the ARG2 for the below commands and share me an update ?
Service Management 1:
ARG1 : CheckCounter
ARG2 : -a ShowAll "Counter=\\LogicalDisk(D:)\\% Disk Time" MaxWarn=60 MaxCrit=70
Testing check from command line...
COMMAND: /usr/local/nagios/libexec/check_nrpe -p 5666 -H xxx.xx.xxx.xxx -t 30 -c CheckCounter -a ShowAll "Counter=\\\\LogicalDisk\(D:\)\\\\% Disk Time" MaxWarn=60 MaxCrit=70
OUTPUT: Failed to poll counter: PdhCollectQueryData failed: : 800007d5: No data to return.
When I run the command from the Nagios server its running fine :
./check_nrpe -H xxx.xx.xxx.xxx -c CheckCounter -a ShowAll "Counter=\\LogicalDisk(D:)\\% Disk Time" MaxWarn=60 MaxCrit=70
OK: \LogicalDisk(D:)\% Disk Time = 0|'\LogicalDisk(D:)\% Disk Timenone'=0;60;70
Service Management2:
Testing check from command line...
ARG1 : CheckCounter
ARG2 : -a ShowAll "Counter=\\Process(CPUSTRES)\\% Processor Time" MaxWarn=20 MaxCrit=30
COMMAND: /usr/local/nagios/libexec/check_nrpe -p 5666 -H xxx.xxx.xx.xxx -t 30 -c CheckCounter -a ShowAll "Counter=\\\\Process\(CPUSTRES\)\\\\% Processor Time" MaxWarn=20 MaxCrit=30
OUTPUT: Failed to poll counter: PdhCollectQueryData failed: : 800007d5: No data to return.
When I run the command from the Nagios server its running fine :
./check_nrpe -H xxx.xx.xxx.xxx -c CheckCounter -a ShowAll "Counter=\\Process(CPUSTRES)\\% Processor Time" MaxWarn=20 MaxCrit=30
CRITICAL: \Process(CPUSTRES)\% Processor Time = 41|'\Process(CPUSTRES)\% Processor Timenone'=41;20;30