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
This tutorial will walk you through how to create Raspberry Pi SD card via Linux command line (Ubuntu 12.04 LTS)
Instructions for creating the SD card on Windows or Mac are found here
Download desired image via torrent or direct download and place in your Downloads directory:
Continue reading How To Create Raspberry Pi SD card via Linux Command Line
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