Then modify Apache’s configuration file to enable remote access to Cacti. Next, use the following command to import the default database tables: $ mysql -u root -p cactidb /dev/null 2>&1 But before that, run the following command to determine the path of the default cacti database: $ rpm -ql cacti | grep cacti.sql Then, import the default cacti database tables into the mariadb cacti database you created above. Next, verify the installation of cacti as shown: $ rpm -qi cacti
Next, we install the Cacti monitoring tool as shown: $ sudo dnf install cacti -y The Cacti package is available in the EPEL ( Extra Packages for Enterprise Linux) repository. Step 6: Installing and Configuring the Cacti Monitoring Tool # pool_size/128 for less than 1GB of memory $ sudo vi /etc/my.cnf.d/mariadb-server.cnf $ mysql -u root -p mysql GRANT SELECT ON mysql.time_zone_name TO įor optimal performance, you need to add the following configuration in the mariadb-server.cnf file under the section as shown. Then, import the mysql test data timezone.sql file into the mysql database. MariaDB > GRANT ALL ON cactidb.* TO IDENTIFIED BY 'passwd123' We now need to create a database and user for cacti and grant all the necessary privileges to the cacti user. Start and enable snmpd with the commands: $ sudo systemctl start snmpd $ sudo dnf install -y net-snmp net-snmp-utils net-snmp-libs rrdtool Now we will install SNMP and RRDtool, which are required for gathering and analyzing system metrics. $ sudo dnf module reset phpĪfter that, install PHP and required extensions with the commands below: $ sudo dnf install sudo dnf install -y php php-Įnable the php-fpm service by executing the command: $ sudo systemctl enable -now php-fpm Then, enable the DNF module for PHP installation. First, add the Remi repository: $ sudo dnf install dnf-utils Next, start and enable mariadb to start on boot as shown: $ sudo systemctl start mariadbĬacti is written in PHP, and therefore, we need to install PHP and the required PHP dependencies. $ sudo dnf install -y mariadb-server mariadb We will install and use Mariadb as our database server. Next, start and enable the webserver with the commands: $ sudo systemctl start httpdĬacti require its own database to store the data it collects. Run the following command to install an Apache webserver: $ sudo dnf install httpd -y Step 1: Install Apache Web ServerĬacti is a web-based tool, so we must set up a web server on which Cacti will run.
In this guide, you will learn how to install the Cacti monitoring tool on Rocky Linux and AlmaLinux. It’s essential in monitoring and ensuring IT infrastructure is functioning as desired. It displays information such as network bandwidth utilization and CPU load in a graph format. Cacti uses the SNMP protocol to monitor devices such as routers, servers, and switches. It was designed as a front-end application for data logging using RRDtool. Categories Linux Tutorials, Ubuntu Tags Install java on Ubuntu, Java, Ubuntu, Ubuntu 14.Cacti is an open-source web-based network monitoring and graphing tool written in PHP. For additional help or useful information, we recommend you to check the official Java web site. Thanks for using this tutorial for installing Oracle Java (JDK) 8 on Ubuntu 14.04 system. Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)Ĭongratulation’s! You have successfully installed Java. Java(TM) SE Runtime Environment (build 1.8.0_40-b25) Sudo aptitude -y install oracle-java8-installer
sudo add-apt-repository -y ppa:webupd8team/javaĪfter added the PPA, run commands below one by one to install Java JDK 8: sudo apt-get update Add the webupd8team Java PPA repository in your system. Remove the OpenJDK from the system, if you have it already installed. I will show you through the step by step installation Java JDK 8 on a Ubuntu 14.04 server. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. This article assumes you have at least basic knowledge of linux, know how to use the shell, and most importantly, you host your site on your own VPS. There are many programs and scripts that require java to run it, but usually Java is not installed by default on VPS or Dedicated Server. In this tutorial we will show you how to install and configuration of Java on your Ubuntu 14.04 server.