Characters
Posted: Wed Mar 11, 2015 2:06 pm
When I run this command over the nagios server command line it runs fine.
/usr/local/nagios/libexec/check_nrpe -H printerservername -c CheckCounter -a '\Print Queue(printqueue)\Jobs' MaxWarn=4 MaxCrit=6
OK all counters within bounds.|'\Print Queue(printqueue)\Jobs'=0;4;6
Doing this in the Web interface as a test where
$USER1$/check_nrpe -H $HOSTADDRESS$ -c CheckCounter -a $ARG1$ MaxWarn=$ARG2$ MaxCrit=$ARG3$
I get:
COMMAND: /usr/local/nagios/libexec/check_nrpe -H printerservername -c CheckCounter -a '\\Print Queue\(printqueue\)\\Jobs' MaxWarn=4 MaxCrit=6
OUTPUT: CRIT: Counter not found: \\Print Queue\(printqueue\)\\Jobs: Unable to connect to the specified computer or the computer is offline. (800007D0)
Why are the extra \ added? Is this something that should have had a fix?
What would be the correct way to implement the first argument? --> '\Print Queue(printqueue)\Jobs'
/usr/local/nagios/libexec/check_nrpe -H printerservername -c CheckCounter -a '\Print Queue(printqueue)\Jobs' MaxWarn=4 MaxCrit=6
OK all counters within bounds.|'\Print Queue(printqueue)\Jobs'=0;4;6
Doing this in the Web interface as a test where
$USER1$/check_nrpe -H $HOSTADDRESS$ -c CheckCounter -a $ARG1$ MaxWarn=$ARG2$ MaxCrit=$ARG3$
I get:
COMMAND: /usr/local/nagios/libexec/check_nrpe -H printerservername -c CheckCounter -a '\\Print Queue\(printqueue\)\\Jobs' MaxWarn=4 MaxCrit=6
OUTPUT: CRIT: Counter not found: \\Print Queue\(printqueue\)\\Jobs: Unable to connect to the specified computer or the computer is offline. (800007D0)
Why are the extra \ added? Is this something that should have had a fix?
What would be the correct way to implement the first argument? --> '\Print Queue(printqueue)\Jobs'