In this post we will continue optimizing Cacti with How to install Cacti Spine on Raspberry Pi.
As per Cacti.net:
“Spine, formerly Cactid, is a poller for Cacti that primarily strives to be as fast as possible. For this reason it is written in native C, makes use of POSIX threads, and is linked directly against the net-snmp library for minimal SNMP polling overhead.”
Generally, Spine is used in large Cacti installs, where many devices need to be polled in under 300 seconds. When you expand the amount of devices you are monitoring the polling cycle gets longer and when using php.cmd it can get close to the 300 second window quite fast. Enter Spine.
In our case although I am monitoring a small network, we want to make sure the polling is completed as quickly as possible to ensure we return our precious CPU back to the Raspberry Pi for other processes.
Continue reading Cacti Pi – How To Install Cacti Spine on Raspberry Pi
After successfully installing Cacti on my RPi and letting it poll for a few cycles with the default local host device setup, it was apparent that it was a little sluggish. Nothing terribly bad, but obvious when compared to my other deployments, which is understandable considering RPi’s specs.
At first I considered perhaps I had made a mistake not going with lighttpd over apache2, however I quickly found another optimization option….
This tutorial includes some interesting info on reclaiming some RAM reserved for graphics processing…which RPi as a server really doesn’t require.
Continue reading Cacti Pi – Optimized
UPDATE: I am revisiting this article as it is a few years old now. Currently working through updated steps on Ubuntu 16.04LTS.
Hint, you will need php5.6, not php7.0, as it seems Cacti is broken on php7.0
How to install Cacti on Raspberry Pi running Raspbian Wheezy
apt-get install apache2
apt-get install php5
apt-get install mysql-client mysql-server
*you will be prompted to set a password for the mysql root user. take note of this as you will need it later!*
apt-get install php5-mysql php5-snmp rrdtool snmp snmpd
Run the following command to confirm required php modules are present:
mysql (For configuration, see note below)
SNMP (For configuration, see note below)
LDAP (Required only when using LDAP authentication)
GD (Required only for some Plugins)
Continue reading Cacti Pi – How to Install Cacti on Raspberry Pi
My Raspberry Pi setup (so far)
2 Raspberry Pi set up as headless servers in beautiful Built-To-Spec cases.
16GB Sandisk SD
Raspbian Wheezy 2012-07-15
Serving Cacti which is monitoring performance of both Pi
16GB Kingston SD
Raspbian Wheezy 2012-08-16
Freshly installed and awaiting lighttpd install to compare against apache2
Wordpress site host
Correcting Cacti Timezone
Battled a super annoying issue with what appeared to be Cacti not displaying graphs, which after half a day of messing around ended up being a timezone setting…..grrrrrrrrrrrr
After discovering Cacti was indeed graphing my expected values, just 4 hours ahead of my local time (EDT, America/Toronto) I realized cacti.log was showing UTC timestamps.
After confirming my Linux system time:
pi@raspberrypi ~ $ date
Fri Aug 17 04:39:13 EDT 2012
I dug around on cacti.net and found instructions on updating php.ini with timezone values:
Continue reading Cacti Pi – Correcting Cacti Timezone