Monitor Cisco ASA interface check_snmp_int
Posted: Mon Sep 30, 2013 4:36 pm
Using: Nagios XI 2012R2.4
I am trying to monitor the interfaces of Cisco ASA firewalls using the check_snmp_int command, this works from the command line and fails from the Nagios GUI. When I compare the command line with the Nagios "Test Command" utility, the only difference I see is that Nagios is inserting the backslashes before the single quotes.
Any Ideas?
Check result from the command line:
/usr/local/nagios/libexec/check_snmp_int.pl -H fw-houston-1 -C ***** -2 -r -n "Adaptive Security Appliance 'outside' interface" -f Y -w 0,0 -c 0,0 M
Adaptive Security Appliance 'outside' interface:UP:1 UP: OK | 'Adaptive Security Appliance 'outside' interface_in_octet'=3949717394c 'Adaptive Security Appliance 'outside' interface_out_octet'=1851980936c
Check from Nagios:
COMMAND: /usr/local/nagios/libexec/check_snmp_int.pl -H fw-houston-1 -C ***** -2 -r -n "Adaptive Security Appliance \'outside\' interface" -f Y -w 0,0 -c 0,0 M
OUTPUT: ERROR : Unknown interface Adaptive Security Appliance \'outside\' interface
Thanks
Sal
I am trying to monitor the interfaces of Cisco ASA firewalls using the check_snmp_int command, this works from the command line and fails from the Nagios GUI. When I compare the command line with the Nagios "Test Command" utility, the only difference I see is that Nagios is inserting the backslashes before the single quotes.
Any Ideas?
Check result from the command line:
/usr/local/nagios/libexec/check_snmp_int.pl -H fw-houston-1 -C ***** -2 -r -n "Adaptive Security Appliance 'outside' interface" -f Y -w 0,0 -c 0,0 M
Adaptive Security Appliance 'outside' interface:UP:1 UP: OK | 'Adaptive Security Appliance 'outside' interface_in_octet'=3949717394c 'Adaptive Security Appliance 'outside' interface_out_octet'=1851980936c
Check from Nagios:
COMMAND: /usr/local/nagios/libexec/check_snmp_int.pl -H fw-houston-1 -C ***** -2 -r -n "Adaptive Security Appliance \'outside\' interface" -f Y -w 0,0 -c 0,0 M
OUTPUT: ERROR : Unknown interface Adaptive Security Appliance \'outside\' interface
Thanks
Sal