<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Cacti%3A_UBUNTU_20.04_instalasi_Cacti</id>
	<title>Cacti: UBUNTU 20.04 instalasi Cacti - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://lms.onnocenter.or.id/wiki/index.php?action=history&amp;feed=atom&amp;title=Cacti%3A_UBUNTU_20.04_instalasi_Cacti"/>
	<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=Cacti:_UBUNTU_20.04_instalasi_Cacti&amp;action=history"/>
	<updated>2026-04-20T20:33:06Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://lms.onnocenter.or.id/wiki/index.php?title=Cacti:_UBUNTU_20.04_instalasi_Cacti&amp;diff=61507&amp;oldid=prev</id>
		<title>Onnowpurbo: Created page with &quot;Sumber: https://computingforgeeks.com/how-to-install-and-configure-cacti-on-ubuntu-18-04/  Here at computingforgeeks, we like exploring various network and system monitoring t...&quot;</title>
		<link rel="alternate" type="text/html" href="https://lms.onnocenter.or.id/wiki/index.php?title=Cacti:_UBUNTU_20.04_instalasi_Cacti&amp;diff=61507&amp;oldid=prev"/>
		<updated>2020-05-11T05:53:34Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Sumber: https://computingforgeeks.com/how-to-install-and-configure-cacti-on-ubuntu-18-04/  Here at computingforgeeks, we like exploring various network and system monitoring t...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Sumber: https://computingforgeeks.com/how-to-install-and-configure-cacti-on-ubuntu-18-04/&lt;br /&gt;
&lt;br /&gt;
Here at computingforgeeks, we like exploring various network and system monitoring tools. So far we have covered the basic setup and usage of Zabbix, telegraf/Influxdb, Grafana, and Prometheus. Zabbix functionality is similar to Cacti, though Cacti is more fit for network graphing. In this guide, we’ll look at how to install cacti server on Ubuntu 18.04.&lt;br /&gt;
What is Cacti?&lt;br /&gt;
&lt;br /&gt;
Cacti is a completely open-source network monitoring and graphing tool that was designed as a front-end application for the industry-standard data logging tool RRDtool. Cacti harness the power of RRDTool’s data storage and graphing functionality. Some good features of Cacti include:&lt;br /&gt;
&lt;br /&gt;
    Fast polling of metrics&lt;br /&gt;
    Support for multiple data acquisition methods&lt;br /&gt;
    Support for advanced graph templating&lt;br /&gt;
    User management functionality with ACL&lt;br /&gt;
&lt;br /&gt;
Cacti provide an intuitive and easy to use web interface which can be used for small LAN installations up to complex networks with thousands of servers and networking devices.&lt;br /&gt;
How to Install Cacti Server on Ubuntu 18.04&lt;br /&gt;
&lt;br /&gt;
Cacti has a number of dependencies that need to be installed and configured before you can deploy Cacti server itself. This guide will cover the installation of these dependencies one by one:&lt;br /&gt;
Step 1: Update system and upgrade all packages&lt;br /&gt;
&lt;br /&gt;
We always start with server packages upgrade to avoid any dependency issues:&lt;br /&gt;
&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get upgrade&lt;br /&gt;
&lt;br /&gt;
Step 2: Install php and required modules&lt;br /&gt;
&lt;br /&gt;
We now need to install php and some php modules required by cacti. Run the following commands to get everything and installed.&lt;br /&gt;
&lt;br /&gt;
$ sudo apt-get -y install php php-mysql php-curl php-net-socket \&lt;br /&gt;
php-gd php-intl php-pear php-imap php-memcache libapache2-mod-php \&lt;br /&gt;
php-pspell php-recode php-tidy php-xmlrpc php-snmp \&lt;br /&gt;
php-mbstring php-gettext php-gmp php-json php-xml php-common&lt;br /&gt;
&lt;br /&gt;
The most important module is php-snmp and php-mysql. Make sure they are installed. You can check your php version using the command:&lt;br /&gt;
&lt;br /&gt;
# php -v&lt;br /&gt;
PHP 7.2.5-0ubuntu0.18.04.1 (cli) (built: May 9 2018 17:21:02) ( NTS )&lt;br /&gt;
Copyright (c) 1997-2018 The PHP Group&lt;br /&gt;
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies&lt;br /&gt;
with Zend OPcache v7.2.5-0ubuntu0.18.04.1, Copyright (c) 1999-2018, by Zend Technologies&lt;br /&gt;
&lt;br /&gt;
Ensure you set correct timezone:&lt;br /&gt;
&lt;br /&gt;
# grep date.timezone /etc/php/7.2/apache2/php.ini &lt;br /&gt;
; http://php.net/date.timezone&lt;br /&gt;
date.timezone = &amp;quot;Africa/Nairobi&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Step 3: Install Apache Web server&lt;br /&gt;
&lt;br /&gt;
The default recommended web server for Cacti is Apache, install it using the commands:&lt;br /&gt;
&lt;br /&gt;
sudo apt-get -y install apache2&lt;br /&gt;
&lt;br /&gt;
After installing Apache, configure basic security by allowing Prod ServerTokens only.&lt;br /&gt;
&lt;br /&gt;
sudo vim /etc/apache2/conf-enabled/security.conf&lt;br /&gt;
&lt;br /&gt;
Change line 25&lt;br /&gt;
&lt;br /&gt;
ServerTokens Prod&lt;br /&gt;
&lt;br /&gt;
This directive configures what you return as the Server HTTP response. Valid options are Full | OS | Minimal | Minor | Major | Prod.&lt;br /&gt;
Set ServerName:&lt;br /&gt;
&lt;br /&gt;
# grep ServerName /etc/apache2/apache2.conf&lt;br /&gt;
ServerName cacti.computingforgeeks.com&lt;br /&gt;
&lt;br /&gt;
Set Server Admin to receive an email in case of issues.&lt;br /&gt;
&lt;br /&gt;
# grep ServerAdmin /etc/apache2/apache2.conf&lt;br /&gt;
ServerAdmin adminuser@computingforgeeks.com&lt;br /&gt;
&lt;br /&gt;
If you have ufw enabled, open http and https ports on the firewall.&lt;br /&gt;
&lt;br /&gt;
# ufw allow http&lt;br /&gt;
Rule added&lt;br /&gt;
Rule added (v6&lt;br /&gt;
&lt;br /&gt;
# ufw allow https&lt;br /&gt;
Rule added&lt;br /&gt;
Rule added (v6)&lt;br /&gt;
&lt;br /&gt;
You need to restart apache web service after making these changes:&lt;br /&gt;
&lt;br /&gt;
$ sudo systemctl restart apache2&lt;br /&gt;
&lt;br /&gt;
Step 3: Install MariaDB server&lt;br /&gt;
&lt;br /&gt;
For the installation of MariaDB on Ubuntu, use my previous guide:&lt;br /&gt;
&lt;br /&gt;
How to Install MariaDB on Ubuntu 18.04 and CentOS 7&lt;br /&gt;
Tune MariaDB database for Cacti&lt;br /&gt;
&lt;br /&gt;
Add the following settings under [mysqld] on the file /e/etc/mysql/mariadb.cnf&lt;br /&gt;
&lt;br /&gt;
max_heap_table_size=128M&lt;br /&gt;
tmp_table_size=128M&lt;br /&gt;
join_buffer_size=64M&lt;br /&gt;
innodb_buffer_pool_size=512M&lt;br /&gt;
innodb_doublewrite=OFF&lt;br /&gt;
innodb_flush_log_at_timeout=3&lt;br /&gt;
innodb_read_io_threads=32&lt;br /&gt;
innodb_write_io_threads=16&lt;br /&gt;
&lt;br /&gt;
Restart mariadb service&lt;br /&gt;
&lt;br /&gt;
$ sudo systemctl restart mysql&lt;br /&gt;
&lt;br /&gt;
To check any of these settings, use mysql select statement, e.g.&lt;br /&gt;
&lt;br /&gt;
MariaDB [(none)]&amp;gt; select @@tmp_table_size;&lt;br /&gt;
+------------------+&lt;br /&gt;
| @@tmp_table_size |&lt;br /&gt;
+------------------+&lt;br /&gt;
| 134217728 |&lt;br /&gt;
+------------------+&lt;br /&gt;
1 row in set (0.00 sec)&lt;br /&gt;
&lt;br /&gt;
Or&lt;br /&gt;
&lt;br /&gt;
MariaDB [(none)]&amp;gt; show variables like &amp;#039;join_buffer_size&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
Once Database server installation is done, you need to create a database for Cacti:&lt;br /&gt;
&lt;br /&gt;
$ mysql -u root -p&lt;br /&gt;
Welcome to the MariaDB monitor. Commands end with ; or \g.&lt;br /&gt;
Your MariaDB connection id is 56&lt;br /&gt;
Server version: 10.3.7-MariaDB-1:10.3.7+maria~bionic-log mariadb.org binary distribution&lt;br /&gt;
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.&lt;br /&gt;
Type &amp;#039;help;&amp;#039; or &amp;#039;\h&amp;#039; for help. Type &amp;#039;\c&amp;#039; to clear the current input statement.&lt;br /&gt;
&lt;br /&gt;
MariaDB [(none)]&amp;gt; create database cacti;&lt;br /&gt;
Query OK, 1 row affected (0.000 sec)&lt;br /&gt;
MariaDB [(none)]&amp;gt; grant all privileges on cacti.* to cacti_user@&amp;#039;localhost&amp;#039; identified by &amp;#039;strongpassword&amp;#039;;&lt;br /&gt;
Query OK, 0 rows affected (0.001 sec)&lt;br /&gt;
MariaDB [(none)]&amp;gt; flush privileges; &lt;br /&gt;
Query OK, 0 rows affected (0.001 sec)&lt;br /&gt;
MariaDB [(none)]&amp;gt; exit &lt;br /&gt;
Bye&lt;br /&gt;
&lt;br /&gt;
Test database connection:&lt;br /&gt;
&lt;br /&gt;
$ mysql -u cacti_user -p&lt;br /&gt;
Enter password: &lt;br /&gt;
Welcome to the MariaDB monitor. Commands end with ; or \g.&lt;br /&gt;
Your MariaDB connection id is 178&lt;br /&gt;
Server version: 10.1.29-MariaDB-6 Ubuntu 18.04&lt;br /&gt;
&lt;br /&gt;
Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.&lt;br /&gt;
&lt;br /&gt;
Type &amp;#039;help;&amp;#039; or &amp;#039;\h&amp;#039; for help. Type &amp;#039;\c&amp;#039; to clear the current input statement.&lt;br /&gt;
&lt;br /&gt;
MariaDB [(none)]&amp;gt; show databases;&lt;br /&gt;
+--------------------+&lt;br /&gt;
| Database |&lt;br /&gt;
+--------------------+&lt;br /&gt;
| cacti |&lt;br /&gt;
| information_schema |&lt;br /&gt;
+--------------------+&lt;br /&gt;
2 rows in set (0.00 sec)&lt;br /&gt;
&lt;br /&gt;
MariaDB [(none)]&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Step 4: Install SNMP and Cacti&lt;br /&gt;
&lt;br /&gt;
The last package installation step is for Cacti and snmp packages. Cacti depend on Snmp and rrdtool tool for its functions. Install these packages using the command:&lt;br /&gt;
&lt;br /&gt;
sudo apt-get install snmp snmpd snmp-mibs-downloader rrdtool cacti cacti-spine&lt;br /&gt;
&lt;br /&gt;
When asked to select the web server, choose Apache.&lt;br /&gt;
&lt;br /&gt;
 +-------------------------+ Configuring cacti +--------------------------+&lt;br /&gt;
   | Please select the web server for which Cacti should be automatically   |&lt;br /&gt;
   | configured.                                                            |&lt;br /&gt;
   |                                                                        |&lt;br /&gt;
   | Select &amp;quot;None&amp;quot; if you would like to configure the web server manually.  |&lt;br /&gt;
   |                                                                        |&lt;br /&gt;
   | Web server:                                                            |&lt;br /&gt;
   |                                                                        |&lt;br /&gt;
   |                                apache2                                 |&lt;br /&gt;
   |                                lighttpd                                |&lt;br /&gt;
   |                                None                                    |&lt;br /&gt;
   |                                                                        |&lt;br /&gt;
   |                                                                        |&lt;br /&gt;
   |                                 &amp;lt;Ok&amp;gt;                                   |&lt;br /&gt;
   |                                                                        |&lt;br /&gt;
   +------------------------------------------------------------------------+&lt;br /&gt;
&lt;br /&gt;
For Database configuration, select no for manual configuration since we have created a database for cacti on&lt;br /&gt;
&lt;br /&gt;
 +---------------------------+ Configuring cacti +---------------------------+&lt;br /&gt;
 |                                                                           |&lt;br /&gt;
 | The cacti package must have a database installed and configured before    |&lt;br /&gt;
 | it can be used.  This can be optionally handled with dbconfig-common.     |&lt;br /&gt;
 |                                                                           |&lt;br /&gt;
 | If you are an advanced database administrator and know that you want to   |&lt;br /&gt;
 | perform this configuration manually, or if your database has already      |&lt;br /&gt;
 | been installed and configured, you should refuse this option.  Details    |&lt;br /&gt;
 | on what needs to be done should most likely be provided in                |&lt;br /&gt;
 | /usr/share/doc/cacti.                                                     |&lt;br /&gt;
 |                                                                           |&lt;br /&gt;
 | Otherwise, you should probably choose this option.                        |&lt;br /&gt;
 |                                                                           |&lt;br /&gt;
 | Configure database for cacti with dbconfig-common?                        |&lt;br /&gt;
 |                                                                           |&lt;br /&gt;
 |                    &amp;lt;Yes&amp;gt;                       &amp;lt;No&amp;gt;                       |&lt;br /&gt;
 |                                                                           |&lt;br /&gt;
 +---------------------------------------------------------------------------+&lt;br /&gt;
&lt;br /&gt;
Wait for the installation to finish then proceed to configure SNMP.&lt;br /&gt;
Step 5: Configure SNMP&lt;br /&gt;
&lt;br /&gt;
Start by enabling the loading of MIBs by commenting out the following line on /etc/snmp/snmp.conf&lt;br /&gt;
&lt;br /&gt;
Change&lt;br /&gt;
&lt;br /&gt;
mibs :&lt;br /&gt;
&lt;br /&gt;
to&lt;br /&gt;
&lt;br /&gt;
# mibs :&lt;br /&gt;
&lt;br /&gt;
Configure SNMP community name by editing /etc/snmp/snmpd.conf&lt;br /&gt;
&lt;br /&gt;
# On line 49 -  Uncomment and change to the name of community string to any name you like.&lt;br /&gt;
# This enable full access from localhost&lt;br /&gt;
&lt;br /&gt;
rocommunity Computingforgeeks localhost&lt;br /&gt;
&lt;br /&gt;
Diable public access by commenting below lines:&lt;br /&gt;
&lt;br /&gt;
rocommunity public default -V systemonly&lt;br /&gt;
rocommunity6 public default -V systemonly&lt;br /&gt;
&lt;br /&gt;
To&lt;br /&gt;
&lt;br /&gt;
# rocommunity public default -V systemonly&lt;br /&gt;
# rocommunity6 public default -V systemonly&lt;br /&gt;
&lt;br /&gt;
Restart snmpd service&lt;br /&gt;
&lt;br /&gt;
$ sudo systemctl restart snmpd&lt;br /&gt;
&lt;br /&gt;
Validate snmp configurations using snmpwalk command line tool:&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
$ sudo snmpwalk -v 2c -c Computingforgeeks localhost system&lt;br /&gt;
SNMPv2-MIB::sysDescr.0 = STRING: Linux cacti 4.15.0-22-generic #24-Ubuntu SMP Wed May 16 12:15:17 UTC 2018 x86_64&lt;br /&gt;
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10&lt;br /&gt;
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (11034) 0:01:50.34&lt;br /&gt;
SNMPv2-MIB::sysContact.0 = STRING: Me &amp;lt;me@example.org&amp;gt;&lt;br /&gt;
SNMPv2-MIB::sysName.0 = STRING: cacti&lt;br /&gt;
SNMPv2-MIB::sysLocation.0 = STRING: Sitting on the Dock of the Bay&lt;br /&gt;
SNMPv2-MIB::sysServices.0 = INTEGER: 72&lt;br /&gt;
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (1) 0:00:00.01&lt;br /&gt;
SNMPv2-MIB::sysORID.1 = OID: SNMP-MPD-MIB::snmpMPDCompliance&lt;br /&gt;
SNMPv2-MIB::sysORID.2 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance&lt;br /&gt;
SNMPv2-MIB::sysORID.3 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance&lt;br /&gt;
SNMPv2-MIB::sysORID.4 = OID: SNMPv2-MIB::snmpMIB&lt;br /&gt;
SNMPv2-MIB::sysORID.5 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup&lt;br /&gt;
SNMPv2-MIB::sysORID.6 = OID: TCP-MIB::tcpMIB&lt;br /&gt;
SNMPv2-MIB::sysORID.7 = OID: IP-MIB::ip&lt;br /&gt;
SNMPv2-MIB::sysORID.8 = OID: UDP-MIB::udpMIB&lt;br /&gt;
SNMPv2-MIB::sysORID.9 = OID: SNMP-NOTIFICATION-MIB::snmpNotifyFullCompliance&lt;br /&gt;
SNMPv2-MIB::sysORID.10 = OID: NOTIFICATION-LOG-MIB::notificationLogMIB&lt;br /&gt;
SNMPv2-MIB::sysORDescr.1 = STRING: The MIB for Message Processing and Dispatching.&lt;br /&gt;
SNMPv2-MIB::sysORDescr.2 = STRING: The management information definitions for the SNMP User-based Security Model.&lt;br /&gt;
SNMPv2-MIB::sysORDescr.3 = STRING: The SNMP Management Architecture MIB.&lt;br /&gt;
SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for SNMPv2 entities&lt;br /&gt;
SNMPv2-MIB::sysORDescr.5 = STRING: View-based Access Control Model for SNMP.&lt;br /&gt;
SNMPv2-MIB::sysORDescr.6 = STRING: The MIB module for managing TCP implementations&lt;br /&gt;
SNMPv2-MIB::sysORDescr.7 = STRING: The MIB module for managing IP and ICMP implementations&lt;br /&gt;
SNMPv2-MIB::sysORDescr.8 = STRING: The MIB module for managing UDP implementations&lt;br /&gt;
SNMPv2-MIB::sysORDescr.9 = STRING: The MIB modules for managing SNMP Notification, plus filtering.&lt;br /&gt;
SNMPv2-MIB::sysORDescr.10 = STRING: The MIB module for logging SNMP Notifications.&lt;br /&gt;
SNMPv2-MIB::sysORUpTime.1 = Timeticks: (1) 0:00:00.01&lt;br /&gt;
SNMPv2-MIB::sysORUpTime.2 = Timeticks: (1) 0:00:00.01&lt;br /&gt;
SNMPv2-MIB::sysORUpTime.3 = Timeticks: (1) 0:00:00.01&lt;br /&gt;
SNMPv2-MIB::sysORUpTime.4 = Timeticks: (1) 0:00:00.01&lt;br /&gt;
SNMPv2-MIB::sysORUpTime.5 = Timeticks: (1) 0:00:00.01&lt;br /&gt;
SNMPv2-MIB::sysORUpTime.6 = Timeticks: (1) 0:00:00.01&lt;br /&gt;
SNMPv2-MIB::sysORUpTime.7 = Timeticks: (1) 0:00:00.01&lt;br /&gt;
SNMPv2-MIB::sysORUpTime.8 = Timeticks: (1) 0:00:00.01&lt;br /&gt;
SNMPv2-MIB::sysORUpTime.9 = Timeticks: (1) 0:00:00.01&lt;br /&gt;
SNMPv2-MIB::sysORUpTime.10 = Timeticks: (1) 0:00:00.01&lt;br /&gt;
&lt;br /&gt;
Remember to replace Computingforgeeks with the name of your community string.&lt;br /&gt;
Step 6: Configure Cacti Server&lt;br /&gt;
&lt;br /&gt;
From here, we have to configure database settings for Cacti and initiate setup on the web interface. Change db settings on the file /usr/share/cacti/site/include/config.php.&lt;br /&gt;
&lt;br /&gt;
# On line 49 - Change cacti database connection info&lt;br /&gt;
$database_type = &amp;quot;mysqli&amp;quot;;&lt;br /&gt;
$database_default = &amp;quot;cacti&amp;quot;;&lt;br /&gt;
$database_hostname = &amp;quot;localhost&amp;quot;;&lt;br /&gt;
$database_username = &amp;quot;cacti_user&amp;quot;;&lt;br /&gt;
$database_password = &amp;quot;strongpassword&amp;quot;;&lt;br /&gt;
$database_port = &amp;quot;3306&amp;quot;;&lt;br /&gt;
$database_ssl = false;&lt;br /&gt;
&lt;br /&gt;
Replace cacti_user with database user you created on Step 3 and strongpassword with cacti database user password.&lt;br /&gt;
Import cacti Mysql database schema:&lt;br /&gt;
&lt;br /&gt;
$ mysql -u cacti_user -p cacti &amp;lt; /usr/share/doc/cacti/cacti.sql &lt;br /&gt;
Enter password:&lt;br /&gt;
&lt;br /&gt;
Replace cacti_user with database user and cacti with the database name.&lt;br /&gt;
Setup mysql timezone for cacti database user&lt;br /&gt;
&lt;br /&gt;
# mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root -p mysql&lt;br /&gt;
Enter password: &lt;br /&gt;
Warning: Unable to load &amp;#039;/usr/share/zoneinfo/leap-seconds.list&amp;#039; as time zone. Skipping it.&lt;br /&gt;
&lt;br /&gt;
Grant cacti MySQL database user access to TimeZone database:&lt;br /&gt;
&lt;br /&gt;
# mysql -u root -p&lt;br /&gt;
Enter password: &lt;br /&gt;
Welcome to the MariaDB monitor. Commands end with ; or \g.&lt;br /&gt;
Your MariaDB connection id is 202&lt;br /&gt;
Server version: 10.1.29-MariaDB-6 Ubuntu 18.04&lt;br /&gt;
&lt;br /&gt;
Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.&lt;br /&gt;
&lt;br /&gt;
Type &amp;#039;help;&amp;#039; or &amp;#039;\h&amp;#039; for help. Type &amp;#039;\c&amp;#039; to clear the current input statement.&lt;br /&gt;
&lt;br /&gt;
MariaDB [(none)]&amp;gt; &lt;br /&gt;
MariaDB [(none)]&amp;gt; GRANT SELECT ON mysql.time_zone_name TO cacti_user@localhost;&lt;br /&gt;
Query OK, 0 rows affected (0.00 sec)&lt;br /&gt;
&lt;br /&gt;
MariaDB [(none)]&amp;gt; flush privileges;&lt;br /&gt;
Query OK, 0 rows affected (0.00 sec)&lt;br /&gt;
&lt;br /&gt;
MariaDB [(none)]&amp;gt; exit&lt;br /&gt;
Bye&lt;br /&gt;
&lt;br /&gt;
Configure Cacti apache site Access control (Optional) :&lt;br /&gt;
&lt;br /&gt;
If you would like to restrict access to Cacti Web interface, edit the file /etc/apache2/conf-available/cacti.conf and comment out the line:&lt;br /&gt;
&lt;br /&gt;
Require all granted&lt;br /&gt;
&lt;br /&gt;
Then configure as below:&lt;br /&gt;
&lt;br /&gt;
# Change line 7&lt;br /&gt;
#Require all granted&lt;br /&gt;
Require host localhost&lt;br /&gt;
Require ip 192.168.1.0/24&lt;br /&gt;
&lt;br /&gt;
Replace 192.168.1.0/24 with your trusted subnet. You can also add a single IP like below:&lt;br /&gt;
&lt;br /&gt;
Require ip 192.168.1.20&lt;br /&gt;
Require ip 172.16.20.30&lt;br /&gt;
&lt;br /&gt;
You need to restart apache service after making above modifications,&lt;br /&gt;
&lt;br /&gt;
$ sudo systemctl restart apache2&lt;br /&gt;
&lt;br /&gt;
Set directory permissions&lt;br /&gt;
&lt;br /&gt;
sudo chown -R www-data:www-data  /opt/cacti/&lt;br /&gt;
&lt;br /&gt;
Step 7: Start Initial Cacti Setup&lt;br /&gt;
&lt;br /&gt;
Open your favorite web browser and navigate to  “http://(Cacti server’s hostname or IP address)/cacti/” from a client system authorized on Cacti server.&lt;br /&gt;
&lt;br /&gt;
Tick Accept GPL License Agreement then click “Begin” button to proceed. Cacti will check if all requirements are satisfied. You may need to make some changes depending on warnings level.&lt;br /&gt;
&lt;br /&gt;
Click Next button to go to the next stage.&lt;br /&gt;
&lt;br /&gt;
You will be asked to select server installation type:&lt;br /&gt;
&lt;br /&gt;
    New Primary Server – Choose this for the Primary site.&lt;br /&gt;
    New Remote Poller – Remote Pollers are used to access networks that are not readily accessible to the Primary site.&lt;br /&gt;
&lt;br /&gt;
Since this is our first server, Choose “New  Primary Server” then click Next&lt;br /&gt;
&lt;br /&gt;
Confirm that all binaries all located and click Next.&lt;br /&gt;
&lt;br /&gt;
Take note of directories that need to have read-only permissions after installation and click Next.&lt;br /&gt;
&lt;br /&gt;
You are now on the final stage, finish the installation by clicking the Finish button to get the login page.&lt;br /&gt;
&lt;br /&gt;
The default logins are:&lt;br /&gt;
&lt;br /&gt;
username: admin&lt;br /&gt;
Password: admin&lt;br /&gt;
&lt;br /&gt;
When prompted to change the password for the admin user, provide a new password and confirm.You will then get access to Cacti interface which looks like below:&lt;br /&gt;
&lt;br /&gt;
Step 8: Monitor Local Cacti Server&lt;br /&gt;
&lt;br /&gt;
Add the local Cacti server for monitoring.  Login to Cacti as admin user and go to:&lt;br /&gt;
&lt;br /&gt;
Console &amp;gt; Devices &amp;gt; + (Add device)&lt;br /&gt;
&lt;br /&gt;
Fill server details and scroll down and click “Save” button.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Referensi==&lt;br /&gt;
&lt;br /&gt;
* https://computingforgeeks.com/how-to-install-and-configure-cacti-on-ubuntu-18-04/&lt;br /&gt;
&lt;br /&gt;
==Pranala Menarik==&lt;br /&gt;
&lt;br /&gt;
* [[Cacti]]&lt;/div&gt;</summary>
		<author><name>Onnowpurbo</name></author>
	</entry>
</feed>