Cacti Network Grapher Virtual Appliance

cactiThis virtual appliance is based on CentOS 7 and is designed to be lightweight, and stable. It has only a minimum of tools installed to make Cacti work.

The OS is set to DHCP, and Cacti is installed.

The username at the console, and passwords set for everything should be ‘cacti’ this will include root and mysql. **With the exception of the Cacti web ui “admin” user, which has the password “Cactipw1!” (no quotes)

The web UI username and password are “admin” and “Cactipw1!” (no quotes)

Cacti is all configured up and includes some plugins, which are not installed by default. It also has some additional host templates for Palo Alto firewalls, Cisco ASA Firewalls, F5 BIG-IP load balancers, and a few other things I have found useful over the years.

There is not a ton of documentation, as I simply have not had time.  If you are already familiar with Cacti it should be a breeze.  If there are any questions, please use GitHub Issues, and I can assist and update as needed.




[Update 10/30/2020]

  • Upgraded to new Cacti and Spine v1.2.14 released 8/02/2020
  • Updated all plugins
  • Upgraded PHP to v7.3
  • Upgraded MariaDB to v10.5
  • Various other fixes and tweaks

CentOS7 Appliance with v1.2.14 Cacti, OVA is ~2.6g

[Update 12/10/2019]

  • Upgraded to new Cacti and Spine v1.2.8 released 12/08/2019
  • Updated all plugins
  • Various other fixes and tweaks

LEGACY – CentOS7 Appliance with v1.2.8 Cacti, OVA is ~2.4g

[Update 7/17/2019]

  • Upgraded to new Cacti and Spine v1.2.5 released 7/15/2019
  • Updated all plugins
  • Various other fixes and tweaks
  • Now can upgrade the virtual disk in VMWare

LEGACY – CentOS7 Appliance with v1.2.5 Cacti, OVA is ~2.3g

[Update 1/23/2019]

  • Upgraded to new Cacti and Spine v1.2.1 released 1/20/2019
  • Updated all plugins
  • Various other fixes and tweaks
  • ./cacti-upgrade.sh now installed by default at root of cacti user directory

LEGACY – CentOS7 Appliance with v1.2.1 Cacti, OVA is ~2.3g

[Update 1/4/2019]

New Cacti v1.2.0 is released! TONS of new features and fixes. You can run my update script to automatically update the template. https://github.com/KnoAll/cacti-template this will also offer to update the Smokeping to newly released v2.7.3 as well. There is also a new prompt to disable the Smokeping service if you do not use Smokeping.

 [Update 12/4/2018]

It turns out there has been some development in Smokeping after almost 4 years of quiet! New v2.7.2 is available, so I created a new Smokeping update routine and added it to the script. This will check if you have Smokeping installed, and offer to upgrade if you wish. This can be run via the same routine as the Cacti upgrade from Github below.

[Update 11/28/2018]

I have a first working version of an automated update routine for the cacti-template you can get here. You can get the instructions on how to run it here…

https://github.com/KnoAll/cacti-template

[Update 11/16/2018]

Hello anyone who is listening! the Cacti team is working on the new v1.2 of Cacti which is now in it’s 2nd beta release. I am working on updating the template along with this and there are a lot of changes! I’m also building an upgrade script that can be used to upgrade the appliance with little effort. (Sorry, for now it will only work on the new v1.2.x appliance) More to follow as things progress.

[Update 4/2/2018]

  • Upgraded to new Cacti and Spine v1.1.37 released 3/25/2018
  • Updated all plugins

LEGACY – CentOS7 Appliance with v1.1.37 Cacti, OVA is ~2.2g


275 thoughts on “Cacti Network Grapher Virtual Appliance”

  1. Hello,
    can somebody tell me, how to cange the time zone in the Cacti Website? Set date.timezone = “Europe/Amsterdam” in php.ini doesn’t work for me.

  2. I don’t have the appliance loaded at the moment. I will have to get it loaded to see what is going on.
    all passwords were supposed to have been cacti/cacti. It may be that root isn’t enabled, but you should be able to ‘sudo’

  3. Hi,

    i need sudo password to use :
    sudo mv /etc/udev/rules.d/70-persistent-net.rules ~/
    (I try “cacti” on sudo login, but dosen’t work)
    Can you give it please

  4. Hey!

    I have an issue with discovery too. Its a SQL error 1064 that seems to be a mismatch between cacti 0.8.8 f and discovery 1.5.1

    I cant get it working at all, but i do know that the syntax in findhosts.php from line 414 – 467 needs to be modified …

    Does anyone have a solution with discovery 1.5 and cacti 0.8.8 f? I would like to use the discovery templates.

  5. Kevin, love the appliance! Many thanks!

    One question, though…

    The Discover plugin doesn’t seem to work. All of the forums say to run ‘php -q findhosts.php’…. however, it doesn’t seem to be on your appliance. Are you doing discover through a different plugin? And if so, how do I fire it up?

    (it should be noted that the plugin is enabled in the interface, and the poller is set to every hour in settings->misc)

    Thanks, again!

  6. Hello Kevin
    i want connect snmp mikrotik to this cacti but cacti i get snmp error but i all settings check and other device mikrotik and server and cisco router snmp working this cacti withoute problem
    please helo me

  7. I have installed the VM and it is basically working but when I access the default page instead of loading cacti is loads a text file with the login details. Now this is very useful first time but how do I reset it so it loads the std cacti login page by default?

  8. Hi Kevin and thanks for a great appliance 🙂

    When I create new devices and add a graph to them, i keep getting theese:

    RRDTool Command:
    /usr/bin/rrdtool graph – \
    –imgformat=PNG \
    –start=’-86400′ \
    –end=’-300′ \
    –title=’NAA-HS-SWITCH01 – hp-v1910 – CpuUsageIndex’ \
    –base=’1000′ \
    –height=’120′ \
    –width=’500′ \
    –alt-autoscale-max \
    –lower-limit=’0′ \
    –vertical-label=’percent’ \
    –slope-mode \
    –font TITLE:10: \
    –font AXIS:7: \
    –font LEGEND:8: \
    –font UNIT:7: \
    DEF:a=’/var/www/cacti/rra/20/697.rrd’:’hpv1910cpuUsage’:AVERAGE \
    DEF:b=’/var/www/cacti/rra/20/697.rrd’:’hpv1910cpuMaxUsage’:AVERAGE \
    AREA:a#FF0000FF:’Cpu Utilization’ \
    GPRINT:a:LAST:’ Current\:%8.2lf %s’ \
    GPRINT:a:AVERAGE:’Average\:%8.2lf %s’ \
    GPRINT:a:MAX:’Maximum\:%8.2lf %s\n’ \
    LINE1:b#7EE600FF:’Cpu Utilization Maximum’
    RRDTool Says:
    ERROR: opening ‘/var/www/cacti/rra/20/697.rrd’: No such file or directory

    Do you know why? – is it persmissions maybe?

    Best regards
    Martin

  9. Hi Kevin,

    Many thanks for this post and your blog.

    I’m a complete beginner to Cacti, I use Mac, and I was trying to use the vm as a way to get it running fast and try to learn and play around with Cacti (got the book Thomas Urban). Not sure how good an idea this is. I could not even find the way to start it up.

    If your answer is “pleas don’t use it that way”, it will be fine too.

    (Besides it’s my first time with vmware – though I’ve used virtualbox quite a lot).

    Many thanks in any case!

  10. Hello Kevin
    in addition please add vmware tools
    and how to execute .pl files ?
    why is not possible to execute .sh (despite they have +x in the permission )?

  11. Hello Kevin
    I used your version of the VM with 0.8.8.d, created several devices and gathered several data for over one month.
    I have something to ask you:
    before release a new VM, could you clean it to keep size small
    1. is it possible to have an update Cacti stack sw (such as net-snmp, php, mysql etc updated)
    2. could you install webmin and phpmyadmin tools to manage database ?
    3. how to import a db from a very populated cacti system ?
    4. an error appear in the mail for root telling:
    /bin/sh: /var/log/cacti/poller-error.log: Permission denied
    how to solve it ?
    5. please add some templates for reading SNMP counters from ESXi and multicpu system, WMI templates for Window systems. this will provide the ability to collect statistics quickly from this kind of server.

    anyway, thank you, it’s a great appliance
    regards
    GB

  12. Tried installing the vmware .ovf, but cannot find what username and password is needed to initially setup the cacti.

  13. Please delete last comment and accept my apologies for not reading this thread fully. The answer was among the previous questions.

    G.

  14. How can I log into the Appliance in an environment where I do not use DHCP?

    I’ve had a little peek around and cant seem to find the default logins for the console. Which is where I would expect to login to configure the networking manually.

    Many thanks in advance.

  15. Is anyone involved with the Cacti community on any in-depth level? Does anyone know if they’ve thought of adapting Cacti to make it more appliance-friendly — ie, like pfsense, where it’s basically a total all-in-one appliance?

    These VM appliances are great and the Cacti UI does a fair bit to make it mostly web configurable, but because it’s actually meant to be deployed on a server with a bunch of add-ons (PHP, web server, etc) it’s a bunch of work to add modules and annoying things like permissions can break functionality in strange ways. It’d be awesome if it got turned into a real appliance.

  16. I saw that as well. It is a bug in the Cacti version that was fixed in the newest release. I’ll make sure to update to that before releasing the next appliance.

  17. Hi all, i found the problem of the zoom. I download from jqueryui.com, the “jquery-ui.js”. Then i put this file in /var/www/cacti/include/js and assign the correct permissions. This correct the issue. Regards.

  18. Great! Another questiong, i successful installed Cacti. I load a host, the graph start but when i try to zoom the image with the mouse, the pointer changes but it did not do the zoom. Can you try with your Cacti to know if is my problem? The zoom of an area with mouse is a helpful tool to use..

  19. Thanks for the help Kevin, it was the MAC address along with Fusion not respecting my NAT setting. It likes to see the VM in Bridge Mode for it to get a DHCP address. Everything looks good from here.

  20. Hi Kevin, great work on this Cacti template! I’m deploying this to VMWare Fusion but the only interface showing up is loopback0. What am I doing wrong here?

  21. You might even consider VMX-08. Versions newer than that aren’t fully editable in the Windows GUI and it’s hard to think of any meaningful features (for Cacti, anyway) that would be of a benefit for vmx-09 and above, at least out of the box.

    If someone is big on the web client with VMware, they can easily upgrade the version to higher numbers manually.

  22. I untared the .ova tarball then edited the .ovf file. I changed line 25 from vmx=10 to vmx=09.

    Pretty easy really.

    Thanks,
    Carol

  23. all passwords including root should be ‘cacti’
    The OVFTool version that I used is for ESX6 so that probably is what gave the vm10 designation. glad to hear it worked for you.
    How did you change the version?

  24. What are the root creds..?? This system will sit on three segments, none of which have dhcp running. I’ll need to set up the additional interfaces and policy routing as well.

    Thanks,
    Carol

  25. I just attempted to deploy the OVF to an ESXi 5.1 vHost. It failed right of the bat with this error:

    “The OVF package requires unsupported hardware.”
    “Details: Line 25: Unsupported hardware family ‘vmx-10’.”

    I downgraded the vm version to vmx-09 and it deployed fine. I am now setting it up and testing. I’ll post my results in a few days.

    Thanks again for all the great work..!!

  26. Ok, I have the new appliance posted. It should be able to import directly into VMWare, but I have not been able to test. Please let me know if anyone can get it setup.

  27. I am working on updating the appliance with a bunch of suggestions as well as the new cacti release. I hope to have it available in a day or so

  28. One more question… does this Cacti VM have the syslog plugin..??

    Thanks again..!!
    -CRosaire

  29. This Cacti OVA is still not able to be deployed into a VMware. The error is:

    “The OVF package requires unsupported hardware.”
    “Details: Line 29: Unsupported hardware family ‘virtual box-2.2′”

    Any chance of getting this set up for VMware..??

    Thanks for all your work on this..!!
    -CRosaire

  30. Mobocrazy, may I ask which switched you used on ovftool to create the vmx/vmdk? All my attempts result in a VM which shows up as invalid in vSphere.

  31. I’m real new (as in since I got the OVA running) to Cacti, but my other suggestions so far would be:

    Bigger disk size (64 GB?) — storage is cheap, larger deployments of Cacti may overflow the 20GB disk size. I deploy thin provision almost all the time anyway, and the *nix partitioning model makes it clunky to expand a disk even if the VM platform (like VMware) makes it easy.

    And with a larger disk, why not include a ton more template xmls? They’re fairly small and this way the deployment is much more comprehensive without having to go dig for other templates.

    If I was more Cacti-literate I might have more suggestions.

    If we can figure out the CentOS eth1/2/3/ issue, I would be more than happy to convert from your OVA format and generate a VMware-specific OVA.

    So far this is awesome having all the “hard” work done ahead of time. I love RRD/MRTG systems like this, but hate the labor that goes into building them from all the components. It’s enough work just configuring the network polling and graphs.

  32. This is great feedback. I know I can export a raw vmdk set of files, so I’ll try that and post it to see if that helps. I’ll speak with a friend of mine who knows a lot about CentOS to see if he can think of any solutions. I’ll also include the default_traffic.xml in the template. Good catch! Keep the comments rolling!

  33. After some digging, I managed to run it through VMware’s ovftool which then creates a vmx/vmdk combo which I ran through VMware Converter which then gave me the ESXi VM.

    This worked, but in the process somehow the ethernet interface became eth1 (swapping the default flexible adapter for e1000 turned it into eth2). From what I can tell, this is some kind of Centos thing where it remembers old interfaces. I was just clueful enough to create a new ifconfig_eth1 script and get it working.

    Do you know how to “fix” CentOS so that when you clone (or create an OVA) that it doesn’t do increment the eth port index (eth1, eth2, etc)? I’m thinking that every time a template got rolled out it would be a PITA to have to manually fix the ethernet configuration on the host.

    Also, I think it would make sense to include in any appliance the default_traffic.xml template. I had to manually import this (there was no template for the Dell N3048s) to get a graphs that made sense for my switches.

  34. Any chance of getting a VMware version of this? When I try to deploy it on VMware it tells me it needs virtualbox.

Comments are closed.