Cacti is a free and open source network monitoring and graphing tool written in PHP. With the help of RRDtool (Round-Robin database tool), Cacti can be used to provide various useful features, including remote and local data collectors, graph templating, network discovery, device management automation, etc.
A fresh CentOS 7 x64 server instance. Say its IP address is 126.96.36.199.
A sudo user.
The server instance has been updated to the latest stable status using the EPEL YUM repo.
Step 1: Setup an up to date LAMP stack
Before you can properly install and run Cacti, you need to setup a LAMP stack or an equivalent web operating environment.
The following will set up an up to date LAMP stack for Cacti, which consists of CentOS 7, Apache 2.4, MariaDB 10.2, and PHP 7.1
# Install Apache 2.4
sudo yum install httpd -y
sudo sed -i 's/^/#&/g' /etc/httpd/conf.d/welcome.conf
sudo sed -i "s/Options Indexes FollowSymLinks/Options FollowSymLinks/" /etc/httpd/conf/httpd.conf
sudo systemctl start httpd.service
sudo systemctl enable httpd.service
Continue reading “Install Cacti 1.1 on CentOS 7” »
You can download the newest version of Cacti from its website.
Install apache webserver with php support, mysql database server, snmp, some php modules and rrdtool.
apt-get install apache2 libapache2-mod-php5 php5 php5-cli php5-mysql php5-gd php5-snmp mysql-client mysql-server libmysqlclient15-dev snmp snmpd rrdtool
Add a user account for cacti. Continue reading “Cacti on Debian (Updated)” »
You need to install the following software on RHEL / Fedora / CentOS Linux:
MySQL Server : Store cacti data.
NET-SNMP server – SNMP (Simple Network Management Protocol) is a protocol used for network management.
PHP with net-snmp module – Access SNMP data using PHP.
Apache / lighttpd / ngnix webserver : Web server to display graphs created with PHP and RRDTOOL. Continue reading “Cacti: How to install on Centos 5.x server” »
Here are a couple of graph templates for the PowerDNS recursor. They need a shell script to be installed on the DNS server, and an net-snmp config change.
Add the following to the snmpd.conf
extend pdns-rec /usr/local/bin/pdns_stats.sh
Put pdns_stats in /usr/local/bin, so that snmpd can find it (rename from pdns_stats.txt). Make it executable.
Then import the templates.
You end up with two graphs – one showing queries/sec + cache efficiency, and another one showing "exceptions" – slow queries, resource limits hit, spoof detection, etc.
You can use the existing templates with the new script, but the new version also allows you to use a couple more templates, which I've attached below. These are 'Performance' which shows the proportion of queries answered in particular time bands, and 'Concurrency' which shows the number of threads running. Continue reading “Cacti: PowerDNS Recursor Templates” »
A Newer version of this document is available at-
The following programs are needed to run cacti:
– apache2 for the web server
– mysql-server for the database
– php5 for the server-based script
– snmp – snmp tools used to collect data to the remote hosts
– rrdtool – a perl script to format collected data to rrdtool files
php5-gd – the graphical library used by a Cacti plugin named php weathermap Continue reading “Cacti: How ton install on a Debian server” »