Forum Discussion
morten_63671
Nimbostratus
Jan 28, 2010Monitoring BigIP TMM-Utilization with Nagios and snmp
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 blogpo...
hiperesfera_364
Nimbostratus
Jan 20, 2012Hi
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
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects