Forum Discussion
Monitoring BigIP TMM-Utilization with Nagios and snmp
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
3 Replies
- hwidjaja_37598
Altostratus
I'm not sure whether it's the same but you can give this link a try: http://www.sladder.org/?p=317
Discussion from cacti forum:
http://forums.cacti.net/viewtopic.php?f=12&t=17030&start=0
Let us know if you have problem with the script. - hiperesfera_364
Nimbostratus
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 - Jaydeep_Chaudha
Nimbostratus
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 ;
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com