Cacti Network Grapher Virtual Appliance

Wow, 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 6 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 default webpage opens up to some information on usernames/passwords and install locations, etc.

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. There is no requirement for Linux experience for basic operation. If there are any questions, please leave a comment, and I can assist and update as needed.

[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!

v2 Cacti Virtual Appliance Download OVA is ~ 780m

Legacy  v1 Cacti Virtual Appliance download OVA is ~630m

 

 

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.

Web Farm Framework IIS Bindings

Ok, so here is my approach to bindings in IIS using  Web Farm Framework 2.x. I have seen several ways of doing this, but all involved setting up replace rules for WFF and I didn’t want to mess with that.

What I do is, on my controller webserver, I add all of the bindings for each of the machines. In the drop down menu for IP address, you can manually type in the IP, and the server will let you add anything, regardless of it being assigned to the machine. Then IIS will accept the requests for which it has an assigned IP address, the rest will be there but not do anything. These settings will propagate to all of your servers in your WFF Server Farm, and you will be able to maintain your single point of administration for IIS.

WordPress Excerpt on Pages

WordPress is awesome, and I love it, but sometimes little things get taken out that frustrate me.  For example, in v3.1+ they removed the ability to add custom excerpts to pages.  This was a frustration for me, and I of course had to go out to Google to find how to make it work again.  That’s when I quickly found this nice post that clearly detailed how to add it back in.  Nice, easy to follow post with screenshots.  Nice work!

WP Super Cache Preload issues

I’ve been working on one of my other blogs trying to get the preload function working in WP Super Cache.  It seems pretty straight forward, but for some reason there are a couple of issues.

First, the timed preload of cache files does not seem to work reliably.  I had set it to 30 minutes with email notifications, and it would only go once, or twice at the most.  Beyond that it would just not do anything at all.  Once, I even turned off the scheduled preload and it did it anyway!

Secondly, even when doing a manual preload of the cache, the preloaded files get removed from the cache even though the description clearly indicates that supercache files from the preload will not be removed by the garbage collection.  I even went so far as to disable the GC with the same result.

I’ve created a forum post with the hopes of getting some help.  I’ll keep this updated as things hopefully progress…

WordPress nested shortcodes in custom fields

On my hobby blog PortlandBrewpubs.com I have a listing of all the brewpubs in the Portland area.  The list is pretty long (yes, its Beervana!) and quickly became a management headache to keep everything looking uniform.  I was looking around for way to standardize all my posts and ended up fixing up my own solution that was both free, and supportable as near as I can tell.

I started using Custom Fields in WordPress for all of the interesting bits of information in my posts to keep it standard.  I have one for all the useful Pub stats.  Street address, website, phone number, hours, etc.  This way I can fill in a value for each field and know I’m not missing anything.  I then use the very handy plugin Get Custom Field Values to display the fields in my Post.  In the beginning I had all the formatting for every post right in the post body.  This worked pretty well until I wanted to change the layout, at which time I realized it was a pain to update my site.  I would then have to go to every post and replace the body of the post content.  With over 40 pubs in town I didn’t want to have to do that every time.  I had to strategize a way to avoid this moving forward.

Continue reading WordPress nested shortcodes in custom fields

Photography, technology, and whatever else