Forum Discussion

Jaydeep_Chaudha's avatar
Jaydeep_Chaudha
Icon for Nimbostratus rankNimbostratus
Nov 02, 2017

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?

 

  • I think I answered on your stack question as well, did you see my comment? I loaded this script up and configured SNMP on my BIG-IP to allow for polling with a community string and I ran it with no issues. That you are getting divide by zero issues indicates to me that you are not getting all the oid data returned from BIG-IP. Step back out of the script and try to do an snmpget to those oids from the command line of the system your script is running to make sure you are getting valid data back.