Monitoring your LTM/BIGIP through Cacti

PrefaceCacti F5 LTM Screenshot
Capturing load balancer traffic flows is not something that is elegantly handled by most commercial applications. Several can’t even gather statistics on the F5 appliances because they lack the ability to index mibs. With the help of some excellent templates found on the Cacti forums, you will be able to successfully graph my virtual servers, interfaces, and memory. This article will walk you through the steps required to install & configure Cacti to begin monitoring the F5 LTM Global Traffic, Virtual Server Traffic, Interface Traffic & Memory.



  • Download & Install Xampp : Instructions
  • Be sure to run the security part of Xampp too!

    /opt/lamp/lamp security

  • Install Cacti
  • Setup the cacti database
    • /opt/lamp/bin/mysqladmin –user=root -p create cacti
    • /opt/lamp/bin/mysql –user=root -p cacti < /opt/lamp/htdocs/cacti/cacti.sql
    • /opt/lamp/bin/mysql –user=root -p mysql
      GRANT ALL ON cacti.* TO cactiuser@localhost;
      GRANT USAGE ON cacti.* TO cactiuser@localhost IDENTIFIED BY ‘cactiuser’;
      GRANT ALL ON cacti.* TO cactiuser@”%”;
      GRANT USAGE ON cacti.* TO cactiuser@”%” IDENTIFIED BY ‘cactiuser’;
      flush privileges;
  • Setup poller crontab

    vi /etc/crontab
    */5 * * * * nobody /opt/lamp/bin/php /opt/lamp/htdocs/cacti/poller.php > /dev/null 2>&1

  • Change rights

    chmod -R nobody:nogroup /opt/lamp/htdocs/cacti


  • Setup the latest LTM templates : instructions
  • Login to Cacti
  • Configure LTM in Cacti
    • In the Cacti GUI menu on the left under Management, Click Devices, Click Add at the far right
    • Enter BigIP Name for Description
    • Enter FQDN or IP for Hostname
    • For Host Template, choose F5 BigIP
    • For SNMP Version, select Version 2
    • For SNMP Community, enter the SNMP Community string defined on the BigIP
    • Click Save
  • Configure Graphs
    • Still in the device screen from above, click at the top right Create Graphs for this Host
      In this screen, you can select as many of the potential graphs as desired
    • Click Create
    • Accept the Defaults, Click Create again
    • In the GUI menu on the left under Management, click Graph Trees
    • Click Add
    • Under Name, I define the F5 device hostname, but it can be anything
    • Under Sorting Type, select your preference
    • Click Create
    • In the GUI menu on the left under Management, click Graph Management
    • Select the Host you created
    • Select the Graphs you created
    • In the Choose an Action select box, select Place a tree (your new tree)
    • Click Go
    • Click Yes
    • Click the Graphs Tab at the top of the screen
    • Select the Tree you created
    • View your graphs!

Cacti Forum

2 thoughts on “Monitoring your LTM/BIGIP through Cacti

  1. Are you going to update this? It seems the templates have major issues on 9.3.0 an d 9.4.x.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.