Cacti Installation Manual
Cacti Installation Manual
Linux OS
b. Cacti
c. Apache
d. Mysqld
e. Snmp
f. RRDTool
1|Page
Cacti Monitoring Server
I. Software Requirement for Cacti
# yum update
#yum install -y mysql mysql-server httpd mod_ssl php php-snmp php-mysql net-snmp net-snmp-utils
+ Install rrdtool
#vim /etc/yum.repos.d/dag.repo
[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
gpgkey=http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
enabled=1
3. Download and extract Cacti. Then, rename folder name and move to/var/www/html/cacti
4. Create database and put any password for Cacti Webserver, in here I just password “123456”
as example only.
2|Page
Cacti Monitoring Server
5. Edit include/config.php and specify the MySQL user, password and database for your Cacti
configuration.
# vim /var/www/html/cacti/include/config.php
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cacti";
$database_password = "123456";
$database_port = "3306";
$database_ssl = false;
# vim /etc/cron.d/cacti
# /etc/init.d/httpd restart
# /etc/init.d/mysqld restart
# /etc/init.d/snmpd restart
# /etc/init.d/crond restart
9. Opent web browser and point your web browser to, then follow the screen:
http://yourcactiserver/cacti
3|Page
Cacti Monitoring Server
- Select new” installation” then click “next”
4|Page
Cacti Monitoring Server
- Username & password to login is “admin”, then the server will ask to change the password
- This step shows how to add new device to Cacti Server. Go to “Devices” then click “Add”
5|Page
Cacti Monitoring Server
- Fill some info look like sample screen below, then click “Create”
- To verify the SNMP protocol get the right info from device, via checking the sample highlight
screen below
6|Page
Cacti Monitoring Server
- To make monitor the data statistic of the device, we need to add “SNMP – Interface Statistic”
then create graph and select the interface which we want to monitor
7|Page
Cacti Monitoring Server
- Select “Create Graph for the host” then selects the interface of the device to monitor the interface
statistic.
8|Page
Cacti Monitoring Server
- Now the way of creating graph completed, we need to place the device to graph tree.
9|Page
Cacti Monitoring Server
II. Weathermap Tools in Cacti System
//$cacti_base = 'C:/httpd-.2_x64/htdocs/cacti';
$cacti_base = “/var/www/html/cacti”;
//$cacti_url = http://Support.company.net/cacti/;
$cacti_url = http://Server-IP/cacti;
// $mapdir= $cacti_base.'/plugins/weathermap/configs';
$mapdir= “/var/www/html/cacti/plugins/wethermap/configs”;
~
// sensible defaults
$mapdir= “/var/www/html/cacti/plugins/wethermap/configs”;
$cacti_base = “/var/www/html/cacti/”;
$cacti_url = "http://Server-IP/cacti/";
10 | P a g e
Cacti Monitoring Server
[root@localhost weathermap] # vi /etc/crontab
~
# Cacti
*/5 * * * * cacti php /var/www/html/cacti/poller.php > /dev/null 2>&1
# Cacti - Weathermap
*/5 * * * * cacti php /var/www/html/cacti/plugins/weathermap/weathermap-cacti-rebuild.php
$plugins = array();
$plugins[] = 'Update';
$plugins[] = 'loginmod';
$plugins[] = 'hostinfo';
$plugins[] = 'docs';
$plugins[] = 'tools';
$plugins[] = 'settings';
$plugins[] = 'watermark';
$plugins[] = 'realtime';
$plugins[] = 'monitor';
$plugins[] = 'weathermap';
11 | P a g e
Cacti Monitoring Server
12 | P a g e
Cacti Monitoring Server
13 | P a g e