How to Configure Cacti with Percona Template on CentOS 7 / RHEL 7 / SL 7 / OL 7.Cacti is a network monitoring software that uses the RRDtool which implies the data logging using the graphical method for the system using various shells. It provides advanced graphs with a data monitoring using the user management analysis and provides all features using the Graphical user Interfaces.
- How to Configure Cacti with Percona Template on EL 7
- Step-1: Install the Pre-requested packages
- Step-2: Create Database for Cacti and Configure as below
- Step-3: The Cacti SQL file
- Step-4: Check with Apache Configuration.
- Step-5: View the Cacti Portal
- Step-6: Once get login follow the given steps
- Step-7: Before Creating host please import Percona Templates
- Step-8: Install script from percona downloaded plugins
- Step-9: Now Login into Cacti Portal and select import template option
- Step-10: Before adding device please check if your device is behind firewall then allow port 161 with UDP protocol.
- Step-11: Try to add Host with monitoring templates.
- Step-12: Once done please check with SNMP information for any error
- Step-13: Wait for some time it will it will show the device will be UP and started generating Graphs.
- Final Result
How to Configure Cacti with Percona Template on EL 7
Step-1: Install the Pre-requested packages
- Apache / Httpd
- MySQL / MariaDB
# yum install cacti mariadb-server mariadb httpd php-snmp net-snmp
Step-2: Create Database for Cacti and Configure as below
Configuration Path :
# vim /var/www/cacti/include/config.php
$database_type = "mysql"; $database_default = "cacti"; $database_hostname = "techbrown"; $database_username = "cacti"; $database_password = "cacti"; $database_port = "3306"; $database_ssl = false;
Step-3: The Cacti SQL file
You will find cacti.sql file in
/var/www/cacti/cacti.sql, you need to restore it.
# mysql mysql> use cactidb mysql> source /var/www/cacti/cacti.sql
Step-4: Check with Apache Configuration.
Configuration Path :
# vim /etc/httpd/conf.d/cacti.conf
Alias /cacti/ /var/www/cacti/ <Directory /var/www/cacti/> DirectoryIndex index.php Options -Indexes AllowOverride all order deny,allow deny from all allow from 127.0.0.1 AddType application/x-httpd-php .php php_flag magic_quotes_gpc on php_flag track_vars on </Directory>
Step-5: View the Cacti Portal
Add your IP to view Cacti Portal using URL:
It will prompt you for username and password
By default it would be Username: admin and Password: admin
Step-6: Once get login follow the given steps
Go to setting and find the path of command which should match with your system path as below.
snmpwalk Binary Path:
snmpget Binary Path :
snmpbulkwalk Binary Path:
snmpgetnext Binary Path:
RRDTool Binary Path:
PHP Binary Path:
Cacti Log File Path:
Step-7: Before Creating host please import Percona Templates
Percona Templates are available on web.
Step-8: Install script from percona downloaded plugins
Default Path :
Copy these script into
/var/www/cacti/scripts in Linux.
Step-9: Now Login into Cacti Portal and select import template option
Browse your templates from Percona Directory path :
Step-10: Before adding device please check if your device is behind firewall then allow port 161 with UDP protocol.
Step-11: Try to add Host with monitoring templates.
Devices from Management tab –> Add from
Description and Host-name —-> Select
Templates —> Click on
Step-12: Once done please check with SNMP information for any error
It should be as follows:
Jamplastics SNMP Information System:X86_64 Uptime: 309909770 Hostname: www.techbrown.com Location: Unknown Contact: firstname.lastname@example.org
Step-13: Wait for some time it will it will show the device will be UP and started generating Graphs.
For adding MySQL Template you need to create MySQL User without any permission on destination host server.
Congratulation now you have configured the Cacti with the Percona Template. if you have any issues regarding this topic you can use the comment section below.