Non-Numeric Value found running check_snmp_generic.pl
Posted: Mon Sep 24, 2018 9:30 am
Hello,
I am trying to setup some monitoring for a Watchguard firewall on Nagios Core using the check_snmp_generic.pl plugin. From the command line, the check runs without issues, e.g.:
./check_snmp_generic.pl -H xx.xx.xx.xx -N "-c COMMUNITY" -l disk -u GB -r -T "3 5 6" -R "\/ (\\d+) (\\d+)" -w 70 -c 85 -D 262144 1.3.6.1.2.1.25.2.3
OK - Current Value: 58.3% | disk=0.7GB;0.84;1.02;0;1.2
However, when run from Nagions, I get status UNKNOWN with a “Non-numeric value found” message.
The check command has been setup as follows:
$USER1$/check_snmp_generic.pl -H $HOSTADDRESS$ -N $ARG1$ -l $ARG2$ -u $ARG3$ -r -T $ARG4$ -R $ARG5$ -w $ARG6$ -c $ARG7$ -D $ARG8$ 1.3.6.1.2.1.25.2.3
As $ARG1$, $ARG4$ and $ARG5$ have spaces in them, I tried single and doublequoting them in the command definition and in the arguments definition, to no avail.
Does the “non numeric value found” message come from the arguments passed to the check or from the output, i.e. "OK – Current Value..."?
I am using NagiosQL 3.4.0 to manage Nagios.
Any tips would be greatly appreciated.
Regards,
Stijn
I am trying to setup some monitoring for a Watchguard firewall on Nagios Core using the check_snmp_generic.pl plugin. From the command line, the check runs without issues, e.g.:
./check_snmp_generic.pl -H xx.xx.xx.xx -N "-c COMMUNITY" -l disk -u GB -r -T "3 5 6" -R "\/ (\\d+) (\\d+)" -w 70 -c 85 -D 262144 1.3.6.1.2.1.25.2.3
OK - Current Value: 58.3% | disk=0.7GB;0.84;1.02;0;1.2
However, when run from Nagions, I get status UNKNOWN with a “Non-numeric value found” message.
The check command has been setup as follows:
$USER1$/check_snmp_generic.pl -H $HOSTADDRESS$ -N $ARG1$ -l $ARG2$ -u $ARG3$ -r -T $ARG4$ -R $ARG5$ -w $ARG6$ -c $ARG7$ -D $ARG8$ 1.3.6.1.2.1.25.2.3
As $ARG1$, $ARG4$ and $ARG5$ have spaces in them, I tried single and doublequoting them in the command definition and in the arguments definition, to no avail.
Does the “non numeric value found” message come from the arguments passed to the check or from the output, i.e. "OK – Current Value..."?
I am using NagiosQL 3.4.0 to manage Nagios.
Any tips would be greatly appreciated.
Regards,
Stijn