Cacti Network Grapher Virtual Appliance

cactiWow, it has been a long time since I have posted! It has been a really long time since I posted my MRTG Virtual Appliance. Today I hope to make up for some of that with this post of my Cacti RRDTool based Virtual Appliance. This virtual appliance is based on CentOS 67 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 admin user, which has the password “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. [UPDATE] the new Cacti 1.x does not yet have all the old templates in place.

There is not a ton of documentation, as I simply have not had time. I have put together a minimal troubleshooting section below. If you are already familiar with Cacti it should be a breeze.  If there are any questions, please leave a comment, and I can assist and update as needed.




*** To upgrade a previous version of the appliance follow my step by step instructions.

[Update 11/20/2017]

  • Upgraded to new Cacti and Spine v1.1.28 release 11/19/2017
  • Added Palo Alto Networks (PAN) host template
  • Added F5 BigIP host template
  • Added Advanced Ping latency graph
  • Misc other tweaks

CentOS7 Appliance with v1.1.28 Cacti, OVA is ~1.6g


[Update 10/17/2017]

  • Upgraded to new Cacti and Spine v1.1.26 release 10/15/2017

LEGACY – CentOS7 Appliance with v1.1.26 Cacti, OVA is ~1.6g

 

[Update 8/29/2017]

  • Upgraded to new Cacti and Spine v1.1.20 release 8/25/2017

LEGACY – CentOS7 Appliance with v1.1.20 Cacti, OVA is ~1.6g

 

[Update 6/13/2017]

  • Upgraded to new Cacti and Spine v1.1.13 release 7/13/2017

LEGACY – CentOS7 Appliance with v1.1.13 Cacti, OVA is ~1.6g

 

[Update 6/13/2017]

  • Upgraded to new Cacti and Spine v1.1.10 release 6/11/2017

LEGACY – CentOS7 Appliance with v1.1.10 Cacti, OVA is ~1.6g

 

[Update 6/5/2017]

  • Upgraded to new Cacti and Spine v1.1.9 release 6/4/2017
  • Upgraded plugins to current versions

LEGACY – CentOS7 Appliance with v1.1.9 Cacti, OVA is ~1.6g

[Update 5/22/2017]

  • Upgraded to new Cacti and Spine v1.1.7 release 5/21/2017
  • Adjusted logrotate settings
  • Installed SmokePing and setup a couple sample targets. Can be accessed from browser at /smokeping/smokeping.cgi

LEGACY – CentOS7 Appliance with v1.1.7 Cacti, OVA is ~1.5g

 

[Update 5/8/2017]

  • Upgraded to new Cacti v1.1.6 release 5/7/2017
  • Upgraded to new Spine v1.1.6 release 5/7/2017
  • Fixed Spine permissions issue

LEGACY – CentOS7 Appliance with v1.1.6 Cacti, OVA is ~1.4g
[Update 4/25/2017]

  • Upgraded to new Cacti v1.1.4 release 4/23/2017
  • Building upgrade steps commands that can be used to upgrade exsiting install in place. Will post shortly.

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

[Update 4/11/2017]

  • Upgraded to new Cacti v1.1.2 release 4/2/2017
  • Set SELinux to permissive permanently

Legacy – CentOS7 Appliance with v1.1.2 Cacti, OVA is ~1.4g
[Update 3/20/2017]

  • Upgraded to new Cacti v1.1.0 release 3/17/2017
  • Added VMWare tools to Centos

Legacy – CentOS7 Appliance with v1.1.0 Cacti, OVA is ~1.4g

[Update 2/9/2017]

All new appliance! Now based on CentOS 7 Minimal and the newly released Cacti v1.0.1. This is a great new version of Cacti with many new features, steamlined interface, and built in plugins.

  • Cacti now at the newest 1.0.1, released 2/5/2017
  • Changed to 1m polling as default
  • Added in officially released plugins

Legacy – CentOS7 Appliance with v1.0.1 Cacti, OVA is ~1.1g

[Update 2/7/2017]

I am working on building up the template with the new version of Cacti v1.0.1! pretty exciting stuff they have put together. Check back shortly for the new appliance.

[Update 6/3/2016]

  • Cacti now at the newest 0.8.8.h, released 5/8/2016

Legacy – v2.4 Cacti Appliance Download OVA is ~1.4g
SHA1 checksum: e34340acf60185a7a0c3089e3451191b110db110

[Update 4/11/2016]

  • Cacti now at newest version 0.8.8g, released 02/21/2016
  • Updated CentOS

Legacy – v2.3 Cacti Appliance Download OVA is ~ 1.5g

[Update 8/14/2015] Updates to the appliance.

  • Cacti now at newest version 0.8.8f, released 07/19/2015
  • Resolved the syslog plugin retention issue. The fix is to enable syslog plugin first, then enable all other plugins.
  • Graph zoom issue resolved in cacti 0.8.8f.

Legacy – v2.2 Cacti Virtual Appliance Download OVA is ~1.1g

Please let me know if you have any troubles or suggestions.

[Update: 7/30/2015] I have found that in the current setup syslog will not respect your retention schedule. It seems there is a conflict with another plugin. I am in the process of figuring out which, and then will try and troubleshoot.

[Update: 7/8/2015] Updated many things in the appliance.

  • Cacti now at newest version 0.8.8d, released 06/09/15
  • added Discovery plugin
  • added Syslog plugin
  • added default traffic template
  • added FortiGate template
  • minor tweaks
  • OVA file should now import directly to VMWare

Please let me know if you have any issues, or other suggestions!

Legacy – v2 Cacti Virtual Appliance Download OVA is ~ 780m

Legacy  – v1 Cacti Virtual Appliance download OVA is ~630m

TROUBLESHOOTING

Network interface not showing up after you import the template?
Couple things to check;
Does /etc/udev/rules.d/70-persistent-net.rules exist?
If so, lets move it out of the way (this command moves it to the users home directory);
sudo mv /etc/udev/rules.d/70-persistent-net.rules ~/
Now lets check the interface configuration;
cd /etc/sysconfig/
The “network” file here will be where you control your systems hostname, its default hostname is “cacti-template”, change it freely.  If you don’t mind, you can ignore this file.
cd network-scripts/
In this directory you will have your network interface configuration files;
Loopback = ifcfg-lo
Primary Interface = ifcfg-eth0
If your network interface is not showing up, you may have a MAC address issue.  You will need to update the ifcfg-eth0 configuration with your actual MAC address.  The MAC address field in the ifcfg-eth0 configuration file is;
HWADDR
Get the mac address of the physical network adapter from the virtual machine’s settings, and simply replace the existing entry in ifcfg-eth0 with that MAC address.
Once the /etc/udev/rules.d/70-persistent-net.rules file is moved out of the way, and the ifcfg-eth0 configuration is updated, reboot the system and you should have networking.

 

 

173 thoughts on “Cacti Network Grapher Virtual Appliance”

  1. For those paying attention, Chris and I talked this through offline and came up with a workaround. Instead of expanding the drive, he was able to create a virtual HD, format it and create a directory structure that he pointed a link to for the rra folder in cacti. Sounds like it is working!

  2. There are three i think comments here that is not yet answered regarding “ERROR: opening ‘/var/www/html/cacti-1.1.10/rra/4/16.rrd’: No such file or directory”. can you help us developer?

  3. Hi, why is it if i make a new data source it gives me a path of /3/22.rrd (for example). and when i try to graph it it says “error opening ‘/var/www/html/rra/3/22.rrd”

  4. not so easy to expand drive. I have a free license of ESXi, and only vSphere tools. Hard disk cannot be directly increased due to VM hardware version. Editing the ova directly doesn’t work. vSphere converter can create VMs in older VM version, but they don’t boot. Anyone else have success at making the disk larger? I would consider a donation for an OVA with a 50G disk.

  5. Hi Kevin thanks your interest. I downloand last cacti versiyon but I didnt login with Cacti Cactipw1! to Weblogin . Are you sure username and pasword correct ?

  6. The appliance is deliberately set to a small footprint. It is relatively easy to resize the disks in your VM environment and CentOS so that everyone can do this to suit individual needs. A quick search should get you the commands you need based on your environment. Unfortunately those instructions are beyond the scope of this blog.

  7. Any way to get the disk space a little larger? The extra 3G fills up fast with a few hundred nodes to graph.

  8. @Christoper Smith, I have not had any luck with a syslog alternative. I have also not had much luck with the Cacti Syslog plugin in the new version. To be fair I have not tried very hard either. If you find something let me know!

  9. Hi Kevin,

    I have recently installed “CentOS7_Cacti-v1.1.26.ova” on my network and it seems to send scripted/automated/malicious traffic (HTTP/S) to google resulting google to block my IP.

    https://support.google.com/websearch/answer/86640?hl=en

    I have ran wireshark against the server and it seems to make
    numerous connection attempt to several google IPs.

    You aware of this?

    Can you tell which script or plugin doing it?

    rashed

  10. Great work on these builds, it’s become my new Cacti-EZ! 🙂

    Have you had any luck on a syslog alternative + Cacti? Scratching through the forums, can see “clog” is now native, but am guessing requires massaging native syslog to dump stuff into the Cacti Log (rather hear its a breeze before I start mucking with my install)? Also, noticed this syslog plug-in (@ https://docs.cacti.net/plugin:syslog) is for older versions (pre Cacti 1.0.0)

  11. The cacti username and password does not pass as a password on the console. Would anyone know what the correct password is?

  12. Hi Kevin !
    I downloaded and installed the VM [Update 6/13/2017] and still having same problem !!!
    When I try to make a graph I always get the same error:
    “ERROR: opening ‘/var/www/html/cacti-1.1.10/rra/4/16.rrd’: No such file or directory”
    If I “touch” and create the empty file 16.rrd then I receive the following error
    ERROR: mmaping file ‘/var/www/html/cacti-1.1.10/rra/4/16.rrd’: Invalid argument…

    Can you help me please???

  13. @Kevin I have installed following version to see how weathermap works… and found although in your VM it shows weather map but I can’t get it going.
    Does weathermap supports 0.8.8.h ?
    Cacti now at the newest 0.8.8.h, released 5/8/2016

Leave a Reply

Your email address will not be published. Required fields are marked *