CRITICAL;SOFT;9;(Return code of 255 is out of bounds)
Posted: Mon Jun 15, 2015 9:54 am
version running: Nagios® Core⢠4.0.1
Hello everyone
We are getting the following under the "alert history".
We are monitoring ASA 5505 firewall. We checked manually that interfaces are up and not flappping. However nagios reports the following.. i.e screeshot attached.
When i attempt to check interfaces via command line, i get this.
[root@test libexec]# ./check_snmp_int.pl -H 10.10.10.10 -C tiger -2 -n "Adaptive Security Appliance 'INSIDE' interface" -f -s --label -r -g -D -Y -e -k -q -d 300 -u -B -w 98,98,50,50,8000,8000 -c 99,99,500,500,20000,20000
Illegal division by zero at ./check_snmp_int.pl line 639.
If i make command simple, it works.
[root@test libexec]# ./check_snmp_int.pl -H 10.10.10.10 -C tiger -2 -n "Adaptive Security Appliance 'INSIDE' interface"
Adaptive Security Appliance 'INSIDE' interface:UP:1 UP: OK
[root@test libexec]# ./check_snmp_int.pl -H 10.10.10.10 -C tiger -2 -n "Adaptive Security Appliance 'outside' interface"
Adaptive Security Appliance 'outside' interface:UP:1 UP: OK
checkcommands.cfg
define command{
command_name check_snmp_int
command_line $USER1$/check_snmp_int.pl -H $HOSTADDRESS$ -C $ARG2$ -$ARG1$ -n $ARG3$ -f -s --label -r -g -D -Y -e -k -q -d 300 -u -B -w $ARG4$ -c $ARG5$
}
check_snmp_int.pl also attached.
Anyone can please help on this?
Thank you.
Hello everyone
We are getting the following under the "alert history".
We are monitoring ASA 5505 firewall. We checked manually that interfaces are up and not flappping. However nagios reports the following.. i.e screeshot attached.
When i attempt to check interfaces via command line, i get this.
[root@test libexec]# ./check_snmp_int.pl -H 10.10.10.10 -C tiger -2 -n "Adaptive Security Appliance 'INSIDE' interface" -f -s --label -r -g -D -Y -e -k -q -d 300 -u -B -w 98,98,50,50,8000,8000 -c 99,99,500,500,20000,20000
Illegal division by zero at ./check_snmp_int.pl line 639.
If i make command simple, it works.
[root@test libexec]# ./check_snmp_int.pl -H 10.10.10.10 -C tiger -2 -n "Adaptive Security Appliance 'INSIDE' interface"
Adaptive Security Appliance 'INSIDE' interface:UP:1 UP: OK
[root@test libexec]# ./check_snmp_int.pl -H 10.10.10.10 -C tiger -2 -n "Adaptive Security Appliance 'outside' interface"
Adaptive Security Appliance 'outside' interface:UP:1 UP: OK
checkcommands.cfg
define command{
command_name check_snmp_int
command_line $USER1$/check_snmp_int.pl -H $HOSTADDRESS$ -C $ARG2$ -$ARG1$ -n $ARG3$ -f -s --label -r -g -D -Y -e -k -q -d 300 -u -B -w $ARG4$ -c $ARG5$
}
check_snmp_int.pl also attached.
Anyone can please help on this?
Thank you.