Open the /etc/snmp/nf file and comment out the line mibs : by adding a # like so: #mibs :
Since Cacti depends upon RRDtool, it must be installed with the following command: sudo apt install rrdtool The installation is taken care of with the following command: sudo apt install snmp snmpd snmp-mibs-downloader Now it's time to install and configure the SNMP service. Restart Apache and MySQL with the following command: systemctl restart mysql apache2 Configure SNMP Mysql -u root -p -e 'grant select on mysql.time_zone_name to next step is to append the following lines to the /etc/mysql//50-server.cnf file: max_heap_table_size = 98M To do this, issue the following commands: mysql -u root -p mysql < /usr/share/mysql/mysql_test_data_timezone.sql Next it is required to set permissions to the new database user according to the correct time zone. Grant all on cacti.* to identified by 'cacti_pass' This is done first by logging into the database with the command: mysql -h localhost -u root -pĪfter you authenticate, issue the following commands to create the new database: create database cacti Type and verify the new password, and then answer the remainder of the questions with the default answers. Since there is no password, hit Enter on your keyboard and then type y to change the root password. The first will be to enter the current password for the root user. The final command will prompt you to answer a few questions.
Update user set plugin='' where user='root' Next we secure the MariaDB root account with the following commands: mysql -h localhost
Install this database with the command: sudo apt install mariadb-server php7.0-mysql To make that happen, we'll configure Cacti to work with MariaDB. With those configurations in place, save and close the file and then restart Apache with the command: sudo systemctl restart apache2 The databaseĬacti stores its data in an RDBMS database. Find out your PHP-friendly timezone from the official PHP timezone listing. If file_uploads isn't set to On, change it. There are two lines to configure in /etc/php/7.0/apache2/php.ini. If you have a firewall running, you'll need to open it up with the following command: sudo ufw allow 80/tcp Configure php Sudo apt install build-essential dos2unix dh-autoreconf help2man libssl-dev libmysql++-dev librrds-perl libsnmp-dev Sudo apt install apache2 libapache2-mod-php7.0 php7.0 php7.0-snmp php7.0-xml php7.0-mbstring php7.0-json php7.0-gd php7.0-gmp php7.0-zip php7.0-ldap php7.0-mcrypt
This can be done with the following three commands: sudo apt install wget patch unzip zip bash-completion Next the necessary dependencies must be installed.
Save and close that file, and then update and upgrade ubuntu with the commands: sudo apt update To do this create a new file with the command sudo nano /etc/apt//cacti.list and add the following content: deb stretch main contrib non-freeĭeb stretch/updates main contrib non-free The first thing to do is to add the necessary repositories to apt. So log into your Ubuntu 16.04 server and prepare to type. The installation is quite involved and the majority of it is handled via the terminal. I'm going to walk you through the process of installing Cacti on Ubuntu 16.04 Server. Cacti makes use of the Simple Network Management Protocol to gather and monitor traffic from network devices, and can be installed on various Linux distributions. Cacti is an open source web-based front end for the RRDtool that stores all the necessary information to display network and system graphics.