Install Cacti On CentOS
In this how-to, we are going to show you how to install and set up a complete network monitoring application called Cacti using Net-SNMP tool on RHEL, CentOS and Fedora systems using YUM and DNF package manager tool.
Install Cacti On CentOS
Cacti monitors various metrics such as CPU, memory and bandwidth utilization, disk space, filesystems and running processes to mention a few. You can monitor devices such as servers, routers, switches and even firewalls. Additionally, you can configure alerts such that in case of system downtime, you can receive notifications on email. In this guide, we will walk you through the installation of the Cacti monitoring tool on CentOS 8 / RHEL 8. At the time of penning down this tutorial, the latest Cacti version is version 1.2.14.
Cacti is a web-based graphing tool, and therefore, we need to install a web server on which the monitoring tool will run on. Here, we are going to install the Apache web server. To do so, execute the command:
The choice between MySQL server and MariaDB is normally down to the OSmaintainers if you use one of the predefined LAMP setup installations. If youare deciding between these yourself, you should research this via yourfavorite search engine.
For systemd unit's file install, you will need to modify theincluded units file to following your install locationand desired user and group's to run the Cacti poller as.To complete the task, follow the procedure below:
Now that we have extracted the cacti files, we can move on preparing the database for the final installation step. Your first step should be securing the mysql database. The following command will help you with this task on a CentOS system. Make sure to select a strong password for root, e.g. MyN3wpassw0rd
With the last command, you should be seeing a mysql prompt where you can enter mysql commands. Here we are going to create the special cacti user. That user only needs to be able to connect from the local system and should have a strong password as well. Enter the following commands and make sure to replace the password:
So, we will use the Remi repository to install PHP 7.x.if(typeof ez_ad_units != 'undefined')ez_ad_units.push([[336,280],'itzgeek_com-medrectangle-4','ezslot_3',159,'0','0']);__ez_fad_position('div-gpt-ad-itzgeek_com-medrectangle-4-0');
Use the yum command on CentOS / RHEL to install Cacti package.if(typeof ez_ad_units != 'undefined')ez_ad_units.push([[728,90],'itzgeek_com-large-leaderboard-2','ezslot_1',119,'0','0']);__ez_fad_position('div-gpt-ad-itzgeek_com-large-leaderboard-2-0');
Edit the Apache configuration file to perform the remote installation.if(typeof ez_ad_units != 'undefined')ez_ad_units.push([[300,250],'itzgeek_com-large-mobile-banner-1','ezslot_7',121,'0','0']);__ez_fad_position('div-gpt-ad-itzgeek_com-large-mobile-banner-1-0');
Clicking on the Get Started on the above page will take you directly to the Cacti dashboard. Otherwise, you can log in to Cacti with the user name and the password you set during the Cacti installation.
Edit the Apache configuration file to perform the remote installation.if(typeof ez_ad_units != 'undefined')ez_ad_units.push([[300,250],'itzgeek_com-leader-1','ezslot_9',120,'0','0']);__ez_fad_position('div-gpt-ad-itzgeek_com-leader-1-0');
Cacti is a robust, powerful, and extensible monitoring solution with network graphic functionalities. It is open-source and translated to different languages adding to its versatility. Cacti uses a hybrid Role/Realm-based authorization system to grant users access to its various components once a user is authenticated. It is ideal for LAN-sized installations up to complex networks with tens of thousands of devices. Check below for more of our articles;
(adsbygoogle=window.adsbygoogle).push(); Cacti is one of best monitoring tool used to monitor network, CPU load, memory, Disk and other services. Cacti uses PHP for front end, RRDTool for graphing and mysql for storage. Cacti installation on centos requires LAMP setup and SNMP.
Before installing cacti, first we need to setup apache with php, mysql and SNMP services. you can also refer this post (Installing Apache2 , Mysql server and PHP on Centos 6 (LAMP)) for complete LAMP setup.
Install cacti on centos 6. Step 1 Issue the below command to install apache, php and mysql. [root@krizna ]# yum install mysql-server mysql php php-mysql httpd Step 2 Start mysql and apache service [root@krizna ]# chkconfig --level 235 httpd on [root@krizna ]# service httpd start [root@krizna ]# chkconfig --level 235 mysqld on [root@krizna ]# service mysqld start
Step 5 Now install SNMP by typing the below command. [root@krizna ]# yum install net-snmp-utils php-snmp net-snmp-libs Step 6 Rename the original snmpd.conf file and create a new one . [root@krizna ]# mv /etc/snmp/snmpd.conf snmpd.conf.org [root@krizna ]# touch /etc/snmp/snmpd.conf Step 7 Add the below lines to /etc/snmp/snmpd.conf ( New file ).
For installing cacti through yum , you must enable EPEL repository. you can find latest EPEL repository rpm here ( -release.html ) Step 10 Install the latest EPEL rpm . [root@krizna ]# rpm -ivh -release-6-8.noarch.rpm Step 11 Install cacti through yum [root@krizna ]# yum install cacti
Step 12 Now import cacti database tables from the file cacti.sql . Issue the below command to find the location of cacti.sql file. [root@krizna ]# rpm -ql cacti grep cacti.sql /usr/share/doc/cacti-0.8.8a/cacti.sql Issue the below command to import tables to cactidb [root@krizna ]# mysql -u root -p cactidb Step 13 Now open /etc/cacti/db.php file and edit the below lines .
Cacti is an open source web based network monitoring and system monitoring graphing tool. Its enables a user to poll services at regular intervals and create graphs on resulting data using RRDtool. We use cacti as a graph time-series data of metrics such as network bandwidth utilization, CPU load, running processes, disk space etc.
Open file /etc/cron.d/cacti uncomment the below line. The poller.php script runs every 5mins and collects data of known host which is used by Cacti application to display graphs like below:-
Check all box and click on Finish After that you will get log windows of cacti. Cacti default login user name and password is (admin/admin). Login with this username and password. After that you will get the new windows like below. Where you have to set your new password for cacti.
In this tutorial we are going to show how to install cacti network monitoring tool on CentOS 7 Linux. as you may know, Cacti network monitoring tool is one of the monitoring tools that can be implemented on Linux servers. Cacti has a web-based management environment and templates for different operating systems and devices. It has made the monitoring process easy and powerful. In Cacti it is possible to access graphs provided specificly for different individuals and companies with their own username.
To launch the Cacti service, you first need to have the software package installed . It is as follows and is done with the following command. first install mariadb. to know about installing, refer to Database replication with mariadb on CentOS 7 linux
Here we use csf as firewall and since cacti is a Web-based service, then port 80 must be open on the firewall. to know how to install and configure csf please refer to How to install CSF on CentOS 7 Linux
open the Cacti Cron file located in the path /etc/cron.d/cacti to apply the scheduling settings and activate the following line to script related to Poller.php script run every five minutes and collect the data:
Learn how to install and Configuring Cacti on Centos 8. The importance and necessity of using network monitoring software is not hidden from any network expert. Because in real time, you can be informed about the status of servers, switches and routers, or in other words, all network equipment, and if a problem occurs, it can be solved in the shortest time. Cacti is a web-based open source tool that monitors computer networks. In this article, we try to introduce you to how to install and Configuring Cacti on Centos 8. You can visit the packages available in Eldernode to purchase a CentOS VPS server.
Cacti software connects to your devices using the SNMP protocol and checks them during the interval set by you. This software is based on PHP/MySQL, which is mainly installed on Linux operating systems and uses RRDTool software to present its graphs. This software also allows you to provide a monitoring panel to your customers. In this software, you can specify which ports your subscriber will have access to after logging in. Here are some features of cacti:
This approach is helpful for those cases when the domain name example.com already has an installed website, for example a blog or another web system, and we would like to access Cacti from example.com/cacti.
Open your web browser and type the domain name in order to access the Cacti Monitoring Server. In our case this is: example.com/cacti. The first time when you open this domain you will see the screen displayed below.
Before I forget, I need to remind you that you will want to be able to access cacti after it is installed, so, be sure to modify your iptables firewall to allow access to your Apache httpd port.// //
Cacti was written in php and therefore, we need to install php. Cacti also uses snmp to communicate to most of the devices it will monitor, and rrdtool to create the graphs so we need to install some SNMP and rrdtool packages: 350c69d7ab