check_snmp_load and check_snmp_mem output (null) issue.
Posted: Fri Feb 08, 2013 2:57 pm
So I have an odd issue.
I'm getting the following trying to check an SNMP enabled firewall:
If I run the command by hand, it works fine:
Here's the command:
And the service definition:
$USER1$ and $USER7$ are defined in resource.cfg:
Any ideas? All of the other services work fine, but both check_snmp_mem.pl and check_snmp_load.pl are both doing the same thing.
I'm getting the following trying to check an SNMP enabled firewall:
Code: Select all
[1360352407.069695] [016.1] [pid=23937] HOST: clk_astaro, SERVICE: Firewall Load , CHECK TYPE: Active, OPTIONS: 0, SCHEDULED: Yes, RESCHEDULE: Yes, EXITED OK: Yes, RETURN CODE: 2, OUTPUT: (null)Code: Select all
nagios@monitor:/usr/local/nagios# /usr/local/nagios/libexec/check_snmp_load.pl -H 192.168.0.2 -C public -T stand -w 25 -c 90
2 CPU, average load 5.0% < 25% : OK
Code: Select all
define command{
command_name check_snmp_load_v1
command_line $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ $USER7$ -T $ARG1$ -w $ARG2$ -c $ARG3$ $ARG4$
}
Code: Select all
define service{
use generic-service ; Inherit values from a template
host_name clk_astaro
service_description Firewall Load
check_command check_snmp_load_v1!stand!25!90
}
Code: Select all
$USER1$=/usr/local/nagios/libexec
$USER7$=-C public