Hi!
I found some cacti-scripts at the cacti site to read the tmm-utilization from our bigip-boxes.
I turned it into a nagios-plugin for monitoring.
Here’s a blogpost about it, if anyone is interested in such a thing. It supports nagios performancedata for graphing.
http://dingleberry.me/2009/10/monitoring-f5-bigip-tmm-utilization-with-nagios-and-snmp/
Morten
I’m not sure whether it’s the same but you can give this link a try: Parked
Discussion from cacti forum:
Let us know if you have problem with the script.
Hi
first of all thanks so much for this plugin, great work!
I would like share with you something I have spotted as I have been using this plugin and always getting the same log output
"TMM ulitization= 1 "
Having a look the script the function to round the variable I think it is not correct
Round to integer $tmm_cpu = int($tmm_cpu + .5);
This is truncating the decimals with the int casting as you are only adding 0.5 and the number is in a range between 0 and 1, so I have changed it and now it is displaying fine:
Round to integer $tmm_cpu = int($tmm_cpu * 100);
just multiplying by 100 you get the percentage
>xxxx:/usr/local/nagios/libexec ./check_f5_tmm.pl HOST STRING 76 90
>OK: TMM utilization is 51 | pct=51
hope it helps, thanks
Hi @hiperesfera,
I know its quite an old thread, but really need some help on this. I tried to use above plugin and getting 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 ;