Jaydeep_Chaudha
Nov 02, 2017Nimbostratus
Nagios Monitoring for BiIP (F5) TMM-Utilization
We have downloaded and configured nagios plugin for BigIP (TMM-Utilization) as per below link
[http://dingleberry.me/2009/10/monitoring-f5-bigip-tmm-utilization-with-nagios-and-snmp/]
My Nagios Configuration is as below
in commands.cfg
define command{
command_name check_tmm_utilization
command_line $USER1$/check_tmm_utilization $HOSTADDRESS$ $ARG1$ $ARG2$
}
It shows HOST is online however services gets failed and show on portal that
Return code of 255 is out of bounds
When check manually it gives below error
root@76f14f428392:/usr/local/nagios/libexec ./check_tmm_utilization HOST_IP 76 90
Illegal division by zero at ./check_tmm_utilization line 49.
Below is line 49
my $tmm_cpu = (( ($polled_oids_1->{$tmmTotalCyl} - $polled_oids_0->{$tmmTotalCyl}) - ( ($polled_oids_1->{$tmmIdleCyl} - $polled_oids_0->{$tmmIdleCyl}) + ($polled_oids_1->{$tmmSleepCyl} - $polled_oids_0->{$tmmSleepCyl}) )) / ($polled_oid s_1->{$tmmTotalCyl} - $polled_oids_0->{$tmmTotalCyl}) ) * 100 ;
Is there any way to fix this?