{"id":123,"date":"2019-11-25T16:06:44","date_gmt":"2019-11-25T10:36:44","guid":{"rendered":"https:\/\/chennaiwebhosting.in\/blog\/?p=123"},"modified":"2019-11-25T16:24:50","modified_gmt":"2019-11-25T10:54:50","slug":"installing-cacti-monitoring-tool-on-centos-7","status":"publish","type":"post","link":"https:\/\/chennaiwebhosting.in\/blog\/installing-cacti-monitoring-tool-on-centos-7\/","title":{"rendered":"Installing Cacti Monitoring Tool on CentOS 7"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_80 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/chennaiwebhosting.in\/blog\/installing-cacti-monitoring-tool-on-centos-7\/#Installing_Cacti_Monitoring_Tool_on_CentOS_7\" >Installing Cacti Monitoring Tool on CentOS 7<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/chennaiwebhosting.in\/blog\/installing-cacti-monitoring-tool-on-centos-7\/#Prerequisites_for_installing\" >Prerequisites for installing<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/chennaiwebhosting.in\/blog\/installing-cacti-monitoring-tool-on-centos-7\/#Step_1_%E2%80%93_Installing_Apache\" >Step 1 \u2013 Installing Apache<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/chennaiwebhosting.in\/blog\/installing-cacti-monitoring-tool-on-centos-7\/#Step_2_%E2%80%93_Installing_PHP\" >Step 2 \u2013 Installing PHP<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/chennaiwebhosting.in\/blog\/installing-cacti-monitoring-tool-on-centos-7\/#Step_3_%E2%80%93_Installing_MySQL\" >Step 3 \u2013 Installing MySQL<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/chennaiwebhosting.in\/blog\/installing-cacti-monitoring-tool-on-centos-7\/#Step_4_%E2%80%93_Installing_and_Configuring_Cacti\" >Step 4 \u2013 Installing and Configuring Cacti<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/chennaiwebhosting.in\/blog\/installing-cacti-monitoring-tool-on-centos-7\/#Step_5_%E2%80%93_Configure_Permissions_and_Firewall\" >Step 5 \u2013 Configure Permissions and Firewall<\/a><\/li><\/ul><\/nav><\/div>\n<h4 class=\"fittexted_for_content_h4\"><span class=\"ez-toc-section\" id=\"Installing_Cacti_Monitoring_Tool_on_CentOS_7\"><\/span>Installing Cacti Monitoring Tool on CentOS 7<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Let us see about cacti,\u00a0<a href=\"https:\/\/www.cacti.net\/\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">Cacti<\/a> is a complete front end \u00a0RRDTool(<i>round-robin database tool<\/i>), it stores all of the vital information to create graphs and populate them with data in a MySQL database. Along with this, it is capable\u00a0 to maintain Graphs, Data Sources, and Round Robin Archives in a database, cacti handles the data gathering.<\/p>\n<p>A common usage is to monitor network traffic by polling a network switch or router interface via Simple Network Management Protocol (SNMP)<\/p>\n<p>Now, we can proceed with the steps involved in installing and configuring Cacti.<\/p>\n<h4 id=\"prerequisites\" class=\"fittexted_for_content_h4\"><span class=\"ez-toc-section\" id=\"Prerequisites_for_installing\"><\/span>Prerequisites for installing<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<ul>\n<li>CentOS 7 server<\/li>\n<li>Root privileges<\/li>\n<\/ul>\n<h4 id=\"step-installing-apache\" class=\"fittexted_for_content_h4\"><span class=\"ez-toc-section\" id=\"Step_1_%E2%80%93_Installing_Apache\"><\/span>Step 1 \u2013 Installing Apache<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>It is recommended to update the server before installing any package so that the existing packages and repositories were updated.<\/p>\n<pre># yum -y update<\/pre>\n<p>Once the system updated, we can proceed to install the Apache web server.<\/p>\n<pre># yum -y install httpd<\/pre>\n<p>Now, we can start Apache web server and enable it to start at boot time.<\/p>\n<pre># systemctl start httpd<\/pre>\n<pre># systemctl enable httpd\r\n<\/pre>\n<p>&nbsp;<\/p>\n<h4 id=\"step-installing-php\" class=\"fittexted_for_content_h4\"><span class=\"ez-toc-section\" id=\"Step_2_%E2%80%93_Installing_PHP\"><\/span>Step 2 \u2013 Installing PHP<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Cacti support all the version of PHP greater than 5.3. But in this tutorial, we will install PHP 7.1 . Installing the latest version of PHP will ensure the maximum security and performance of the application.<\/p>\n<p>The default YUM repository of CentOS does not have PHP 7.1 included, hence we need to add the Webtatic repository in our system.<\/p>\n<pre># yum -y install epel-release<\/pre>\n<p>To\u00a0install Webtatic repository, use<\/p>\n<pre># rpm -Uvh https:\/\/mirror.webtatic.com\/yum\/el7\/webtatic-release.rpm<\/pre>\n<pre># yum -y update<\/pre>\n<p>Now, we can install PHP 7.1\u00a0along with all the required dependencies.<\/p>\n<pre># yum -y install php71w php71w-snmp php71w-mysqli php71w-cli php71w-ldap php71w-xml php71w-session php71w-sockets php71w-pcre php71w-gd php71w-dom php71w-posix php71w-mbstring<\/pre>\n<p>Now, the required dependencies has been installed, to check the PHP version use<\/p>\n<pre># php -v<\/pre>\n<p>You should get output similar to this.<\/p>\n<pre>[root@webhostingchennai ~]# php -v\r\nPHP 7.1.6 (cli) (built: Jun 10 2017 07:28:42) ( NTS )\r\nCopyright (c) 1997-2017 The PHP Group\r\nZend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies<\/pre>\n<p>Now we need to do few configurations in PHP.\u00a0Open the PHP configuration file, <span class=\"system\">php.ini<\/span> using your favourite text editor.<\/p>\n<pre># nano \/etc\/php.ini<\/pre>\n<p>Find the following lines and Uncomment the line and set the timezone according to your region, as follows<\/p>\n<pre>[...]\r\n\r\n[Date]\r\n; Defines the default timezone used by the date functions\r\n; http:\/\/php.net\/date.timezone\r\ndate.timezone = Asia\/Kolkata\r\n\r\n[...]\r\n<\/pre>\n<p>Save the PHP configuration file.<\/p>\n<h4 id=\"step-installing-mariadb\" class=\"fittexted_for_content_h4\"><span class=\"ez-toc-section\" id=\"Step_3_%E2%80%93_Installing_MySQL\"><\/span>Step 3 \u2013 Installing MySQL<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Download and add the repository<\/p>\n<pre># wget http:\/\/repo.mysql.com\/mysql-community-release-el7-5.noarch.rpm\r\n# sudo rpm -ivh mysql-community-release-el7-5.noarch.rpm<\/pre>\n<p>Now, we need to update the\u00a0repository<\/p>\n<pre># yum update<\/pre>\n<p>Completing the update, install mysql server and start it<\/p>\n<pre># yum install mysql-server<\/pre>\n<pre># systemctl start mysqld<\/pre>\n<p>Run the <code>mysql_secure_installation<\/code> script to address several security concerns in a default MySQL installation.<\/p>\n<pre>[root@chennaiwebhosting ~]# mysql_secure_installation\r\n\r\n\u00a0\r\n\r\nNOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL\r\nSERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!\r\n\r\nIn order to log into MySQL to secure it, we'll need the current\r\npassword for the root user. If you've just installed MySQL, and\r\nyou haven't set the root password yet, the password will be blank,\r\nso you should just press enter here.\r\n\r\nEnter current password for root (enter for none):\r\nERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)\r\nEnter current password for root (enter for none):\r\nOK, successfully used password, moving on...\r\n\r\nSetting the root password ensures that nobody can log into the MySQL\r\nroot user without the proper authorisation.\r\n\r\nSet root password? [Y\/n]\r\nNew password:\r\nSorry, you can't use an empty password here.\r\n\r\nNew password:\r\nAborting!\r\n\r\nCleaning up...\r\nCleaning up...\r\nWarning: Could not unlink .my.cnf.2462: No such file or directory\r\nWarning: Could not unlink .mysql.2462: No such file or directory\r\n[root@chennaiwebhosting ~]# mysql_secure_installation\r\n\r\n\u00a0\r\n\r\nNOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MySQL\r\nSERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!\r\n\r\nIn order to log into MySQL to secure it, we'll need the current\r\npassword for the root user. If you've just installed MySQL, and\r\nyou haven't set the root password yet, the password will be blank,\r\nso you should just press enter here.\r\n\r\nEnter current password for root (enter for none):\r\nOK, successfully used password, moving on...\r\n\r\nSetting the root password ensures that nobody can log into the MySQL\r\nroot user without the proper authorisation.\r\n\r\nSet root password? [Y\/n] y\r\nNew password:\r\nRe-enter new password:\r\nPassword updated successfully!\r\nReloading privilege tables..\r\n... Success!\r\n\r\nBy default, a MySQL installation has an anonymous user, allowing anyone\r\nto log into MySQL without having to have a user account created for\r\nthem. This is intended only for testing, and to make the installation\r\ngo a bit smoother. You should remove them before moving into a\r\nproduction environment.\r\n\r\nRemove anonymous users? [Y\/n] y\r\n... Success!\r\n\r\nNormally, root should only be allowed to connect from 'localhost'. This\r\nensures that someone cannot guess at the root password from the network.\r\n\r\nDisallow root login remotely? [Y\/n] y\r\n... Success!\r\n\r\nBy default, MySQL comes with a database named 'test' that anyone can\r\naccess. This is also intended only for testing, and should be removed\r\nbefore moving into a production environment.\r\n\r\nRemove test database and access to it? [Y\/n] y\r\n- Dropping test database...\r\nERROR 1008 (HY000) at line 1: Can't drop database 'test'; database doesn't exist\r\n... Failed! Not critical, keep moving...\r\n- Removing privileges on test database...\r\n... Success!\r\n\r\nReloading the privilege tables will ensure that all changes made so far\r\nwill take effect immediately.\r\n\r\nReload privilege tables now? [Y\/n] y\r\n... Success!\r\n\r\nAll done! If you've completed all of the above steps, your MySQL\r\ninstallation should now be secure.\r\n\r\nThanks for using MySQL!\r\n\r\nCleaning up...\r\n[root@chennaiwebhosting ~]#<\/pre>\n<p>To create a database we will need to login to MySQL command line first. Run the below command.<\/p>\n<p>Login to MySQL shell of the root user, it will prompt for the password of the root user. Provide the password to login.<\/p>\n<pre># mysql -u root -p<\/pre>\n<p>Now, we can\u00a0create a new database for your Cacti installation.<\/p>\n<pre># CREATE DATABASE cacti_data;<\/pre>\n<p>Once the database is created we need create a new user and grant all the permissions to the user for the database.<\/p>\n<p>To create a new database user,<\/p>\n<pre># CREATE USER 'cacti_user'@'localhost' IDENTIFIED BY 'StrongPassword';<\/pre>\n<p>Replace \u2018<span class=\"system\">StrongPassword\u2019<\/span> with a very strong password.<\/p>\n<p>Now provide the all the privileges to your database user over the database you have created.<\/p>\n<pre># GRANT ALL PRIVILEGES ON cacti_data.* TO 'cacti_user'@'localhost';<\/pre>\n<p>To apply the changes on the database privileges, run the below command and exit from mysql.<\/p>\n<pre># FLUSH PRIVILEGES;<\/pre>\n<pre># EXIT<\/pre>\n<p>You will also need to populate the time zone table<\/p>\n<pre># mysql_tzinfo_to_sql \/usr\/share\/zoneinfo | mysql -u root -p mysql<\/pre>\n<p>Provide the MySQL root password to proceed.<\/p>\n<p>Once the tables are populated, you will need to provide select access to Cacti user account over the tables. Login to MySQL prompt again using.<\/p>\n<pre># mysql -u root -p<\/pre>\n<p>Now run below commands, this will give SELECT access to\u00a0<span class=\"system\">cacti_user<\/span><\/p>\n<pre># GRANT SELECT ON mysql.time_zone_name TO 'cacti_user'@'localhost';<\/pre>\n<pre># FLUSH PRIVILEGES;<\/pre>\n<pre># EXIT<\/pre>\n<p>&nbsp;<\/p>\n<h4 id=\"step-installing-and-configuring-cacti\" class=\"fittexted_for_content_h4\"><span class=\"ez-toc-section\" id=\"Step_4_%E2%80%93_Installing_and_Configuring_Cacti\"><\/span>Step 4 \u2013 Installing and Configuring Cacti<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Cacti require few more dependencies, run the following command to install them.<\/p>\n<pre># yum -y install net-snmp rrdtool net-snmp-utils<\/pre>\n<p>Now, all the dependencies are ready, we can download the install package from Cacti website.<\/p>\n<pre># cd \/var\/www\/html<\/pre>\n<pre># wget http:\/\/www.cacti.net\/downloads\/cacti-1.1.10.tar.gz<\/pre>\n<p>Extract the archive<\/p>\n<pre># tar xzvf cacti*.tar.gz<\/pre>\n<p>Rename your Cacti folder<\/p>\n<pre># mv cacti-1*\/ cacti\/<\/pre>\n<p>Now import the Cacti database by running<\/p>\n<pre># cd \/var\/www\/html\/cacti<\/pre>\n<p>To\u00a0import the <span class=\"system\">cacti.sql<\/span> database into <span class=\"system\">cacti_data<\/span> using the user root.\u00a0It ask the password of root user before importing the database.<\/p>\n<pre># mysql cacti_data &lt; cacti.sql -u root -p<\/pre>\n<p>Now, we need to edit Cacti configuration file.<\/p>\n<pre># nano \/var\/www\/html\/cacti\/include\/config.php<\/pre>\n<p>Find the following lines and edit them according to your MySQL database credentials.<\/p>\n<pre>\/* make sure these values reflect your actual database\/host\/user\/password *\/\r\n\r\n$database_type = 'mysql';\r\n$database_default = 'cacti_data';\r\n$database_hostname = 'localhost';\r\n$database_username = 'cacti_user';\r\n$database_password = 'StrongPassword';\r\n$database_port = '3306';\r\n$database_ssl = false;\r\n<\/pre>\n<p>Save the file and Exit.<\/p>\n<h4 id=\"step-configure-permissions-and-firewall\" class=\"fittexted_for_content_h4\"><span class=\"ez-toc-section\" id=\"Step_5_%E2%80%93_Configure_Permissions_and_Firewall\"><\/span>Step 5 \u2013 Configure Permissions and Firewall<span class=\"ez-toc-section-end\"><\/span><\/h4>\n<p>Now, we need to modify \u00a0the ownership of the application to web server user<\/p>\n<pre># chown -R apache:apache \/var\/www\/html\/cacti<\/pre>\n<p>We also need to allow HTTP traffic on port <span class=\"system\">80<\/span> through the firewall if you are running. Before that make sure FirewallD is enabled and running else run<\/p>\n<pre><code>systemctl enable firewalld <\/code> <code>systemctl start firewalld<\/code><\/pre>\n<pre># firewall-cmd --zone=public --permanent --add-service=http<\/pre>\n<pre># firewall-cmd --reload<\/pre>\n<p>Now, we need to disable SELinux because Proxy configuration does not work with SELinux policies. To temporary disable SELinux without restarting the server,<\/p>\n<pre># setenforce 0<\/pre>\n<p>Now, let step into creating a user for cacti.<\/p>\n<pre>#\u00a0useradd cactiuser<\/pre>\n<p>Set the appropriate permissions on cacti\u2019s directories for graph\/log generation.<\/p>\n<pre>#\u00a0chown -R cactiuser rra\/ log\/<\/pre>\n<p>Enabling cron, Add the below cron command to your\u00a0<em>\/etc\/crontab<\/em> \u00a0file.<\/p>\n<pre>#\u00a0*\/5 * * * * cactiuser php \/var\/www\/html\/cacti\/poller.php &gt; \/dev\/null 2&gt;&amp;1<\/pre>\n<p>Replace <strong>cactiuser<\/strong> with the valid user you have created.<\/p>\n<p>Now, we can complete the installation using a web browser.<\/p>\n<p><strong>http:\/\/IP_ADDRESS\/cacti<\/strong> ,\u00a0You will now see the following page.<\/p>\n<pre><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-472 size-full alignleft\" src=\"https:\/\/i1.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install1.jpg?resize=1261%2C461\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" srcset=\"https:\/\/i1.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install1.jpg?w=1261&amp;ssl=1 1261w, https:\/\/i1.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install1.jpg?resize=300%2C110&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install1.jpg?resize=768%2C281&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install1.jpg?resize=1024%2C374&amp;ssl=1 1024w\" alt=\"Installing cacti monitoring tool on centos 7\" width=\"867\" height=\"317\" data-attachment-id=\"472\" data-permalink=\"https:\/\/www.webhostingchennai.co.in\/blog\/installing-cacti-monitoring-tool-on-centos-7\/install1\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install1.jpg?fit=1261%2C461&amp;ssl=1\" data-orig-size=\"1261,461\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"install1\" data-image-description=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install1.jpg?fit=300%2C110&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install1.jpg?fit=1024%2C374&amp;ssl=1\" \/><\/pre>\n<p>Accept the license agreement to proceed further.<\/p>\n<p>In next interface you will see the pre-installation, all the required dependencies are met.<\/p>\n<pre><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-473 size-full alignleft\" src=\"https:\/\/i2.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install2.jpg?resize=1086%2C278\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" srcset=\"https:\/\/i2.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install2.jpg?w=1086&amp;ssl=1 1086w, https:\/\/i2.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install2.jpg?resize=300%2C77&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install2.jpg?resize=768%2C197&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install2.jpg?resize=1024%2C262&amp;ssl=1 1024w\" alt=\"Installing cacti monitoring tool on centos 7\" width=\"867\" height=\"222\" data-attachment-id=\"473\" data-permalink=\"https:\/\/www.webhostingchennai.co.in\/blog\/installing-cacti-monitoring-tool-on-centos-7\/install2\/\" data-orig-file=\"https:\/\/i1.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install2.jpg?fit=1086%2C278&amp;ssl=1\" data-orig-size=\"1086,278\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"install2\" data-image-description=\"\" data-medium-file=\"https:\/\/i2.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install2.jpg?fit=300%2C77&amp;ssl=1\" data-large-file=\"https:\/\/i1.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install2.jpg?fit=1024%2C262&amp;ssl=1\" \/><\/pre>\n<p>Proceed to next interface.<\/p>\n<p>In installation type, choose <strong>New Primary Server<\/strong> and proceed next.<\/p>\n<pre><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-474 size-full alignleft\" src=\"https:\/\/i2.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install3.jpg?resize=970%2C499\" sizes=\"auto, (max-width: 970px) 100vw, 970px\" srcset=\"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install3.jpg?w=970&amp;ssl=1 970w, https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install3.jpg?resize=300%2C154&amp;ssl=1 300w, https:\/\/i1.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install3.jpg?resize=768%2C395&amp;ssl=1 768w\" alt=\"Installing cacti monitoring tool on centos 7\" width=\"867\" height=\"446\" data-attachment-id=\"474\" data-permalink=\"https:\/\/www.webhostingchennai.co.in\/blog\/installing-cacti-monitoring-tool-on-centos-7\/install3\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install3.jpg?fit=970%2C499&amp;ssl=1\" data-orig-size=\"970,499\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"install3\" data-image-description=\"\" data-medium-file=\"https:\/\/i1.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install3.jpg?fit=300%2C154&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install3.jpg?fit=970%2C499&amp;ssl=1\" \/><\/pre>\n<p>In next interface, you will need to provide the locations to the binaries. Path to RRDTool and PHP binaries are correct. For all other binaries, provide the path \/usr\/bin\/binary_name. For example, for snapwalk binary, the path is \/usr\/bin\/snmpwalk.<\/p>\n<pre><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-475 size-full alignleft\" src=\"https:\/\/i2.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install4.jpg?resize=592%2C729\" sizes=\"auto, (max-width: 592px) 100vw, 592px\" srcset=\"https:\/\/i2.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install4.jpg?w=592&amp;ssl=1 592w, https:\/\/i1.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install4.jpg?resize=244%2C300&amp;ssl=1 244w\" alt=\"Installing cacti monitoring tool on centos 7\" width=\"592\" height=\"729\" data-attachment-id=\"475\" data-permalink=\"https:\/\/www.webhostingchennai.co.in\/blog\/installing-cacti-monitoring-tool-on-centos-7\/install4\/\" data-orig-file=\"https:\/\/i1.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install4.jpg?fit=592%2C729&amp;ssl=1\" data-orig-size=\"592,729\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"install4\" data-image-description=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install4.jpg?fit=244%2C300&amp;ssl=1\" data-large-file=\"https:\/\/i2.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install4.jpg?fit=592%2C729&amp;ssl=1\" \/><\/pre>\n<p>In next interface, you need to check whether all the folders are writable.<\/p>\n<pre><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-469 size-full\" src=\"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install5.jpg?resize=776%2C449\" sizes=\"auto, (max-width: 776px) 100vw, 776px\" srcset=\"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install5.jpg?w=776&amp;ssl=1 776w, https:\/\/i1.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install5.jpg?resize=300%2C174&amp;ssl=1 300w, https:\/\/i2.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install5.jpg?resize=768%2C444&amp;ssl=1 768w\" alt=\"Installing cacti monitoring tool on centos 7\" width=\"776\" height=\"449\" data-attachment-id=\"469\" data-permalink=\"https:\/\/www.webhostingchennai.co.in\/blog\/installing-cacti-monitoring-tool-on-centos-7\/install5\/\" data-orig-file=\"https:\/\/i1.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install5.jpg?fit=776%2C449&amp;ssl=1\" data-orig-size=\"776,449\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"install5\" data-image-description=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install5.jpg?fit=300%2C174&amp;ssl=1\" data-large-file=\"https:\/\/i1.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install5.jpg?fit=776%2C449&amp;ssl=1\" \/><\/pre>\n<p>In template setup, choose Local Linux Machine and click Finish.<\/p>\n<pre><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-470 size-full\" src=\"https:\/\/i2.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install6.jpg?resize=1096%2C318\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" srcset=\"https:\/\/i2.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install6.jpg?w=1096&amp;ssl=1 1096w, https:\/\/i1.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install6.jpg?resize=300%2C87&amp;ssl=1 300w, https:\/\/i1.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install6.jpg?resize=768%2C223&amp;ssl=1 768w, https:\/\/i2.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install6.jpg?resize=1024%2C297&amp;ssl=1 1024w\" alt=\"Installing cacti monitoring tool on centos 7\" width=\"867\" height=\"251\" data-attachment-id=\"470\" data-permalink=\"https:\/\/www.webhostingchennai.co.in\/blog\/installing-cacti-monitoring-tool-on-centos-7\/install6\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install6.jpg?fit=1096%2C318&amp;ssl=1\" data-orig-size=\"1096,318\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"install6\" data-image-description=\"\" data-medium-file=\"https:\/\/i1.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install6.jpg?fit=300%2C87&amp;ssl=1\" data-large-file=\"https:\/\/i1.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install6.jpg?fit=1024%2C297&amp;ssl=1\" \/><\/pre>\n<p>Now, you will be taken to the login page. Login using username \u2018admin\u2019 and password \u2018admin\u2019,<\/p>\n<p>Now, it will ask you to modify the password, Modify it and you will be taken to dashboard.<\/p>\n<pre><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-471 size-full\" src=\"https:\/\/i1.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install7.jpg?resize=699%2C550\" sizes=\"auto, (max-width: 699px) 100vw, 699px\" srcset=\"https:\/\/i1.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install7.jpg?w=699&amp;ssl=1 699w, https:\/\/i2.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install7.jpg?resize=300%2C236&amp;ssl=1 300w\" alt=\"Installing cacti monitoring tool on centos 7\" width=\"699\" height=\"550\" data-attachment-id=\"471\" data-permalink=\"https:\/\/www.webhostingchennai.co.in\/blog\/installing-cacti-monitoring-tool-on-centos-7\/install7\/\" data-orig-file=\"https:\/\/i1.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install7.jpg?fit=699%2C550&amp;ssl=1\" data-orig-size=\"699,550\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"install7\" data-image-description=\"\" data-medium-file=\"https:\/\/i2.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install7.jpg?fit=300%2C236&amp;ssl=1\" data-large-file=\"https:\/\/i1.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/install7.jpg?fit=699%2C550&amp;ssl=1\" \/><\/pre>\n<p>Installation of Cacti is now finished, you can use the application to monitor the server using interactive graphs as given below.<\/p>\n<pre><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-502 size-full\" src=\"https:\/\/i2.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/Graphs.jpg?resize=1361%2C649\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" srcset=\"https:\/\/i2.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/Graphs.jpg?w=1361&amp;ssl=1 1361w, https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/Graphs.jpg?resize=300%2C143&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/Graphs.jpg?resize=768%2C366&amp;ssl=1 768w, https:\/\/i1.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/Graphs.jpg?resize=1024%2C488&amp;ssl=1 1024w\" alt=\"Installing cacti monitoring tool on centos 7\" width=\"867\" height=\"413\" data-attachment-id=\"502\" data-permalink=\"https:\/\/www.webhostingchennai.co.in\/blog\/installing-cacti-monitoring-tool-on-centos-7\/graphs\/\" data-orig-file=\"https:\/\/i1.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/Graphs.jpg?fit=1361%2C649&amp;ssl=1\" data-orig-size=\"1361,649\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Graphs\" data-image-description=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/Graphs.jpg?fit=300%2C143&amp;ssl=1\" data-large-file=\"https:\/\/i2.wp.com\/www.webhostingchennai.co.in\/blog\/wp-content\/uploads\/2017\/07\/Graphs.jpg?fit=1024%2C488&amp;ssl=1\" \/><\/pre>\n<p>Hope this post helps your need, please share your valuable comments to improve us.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Installing Cacti Monitoring Tool on CentOS 7 Let us see about cacti,\u00a0Cacti is a complete front end \u00a0RRDTool(round-robin database tool), it stores all of the vital information to create graphs and populate them with data in a MySQL database. Along with this, it is capable\u00a0 to maintain Graphs, Data Sources, and Round Robin Archives in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":124,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[27,24],"tags":[44,45,48,46,47],"class_list":["post-123","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cacti","category-monitoring","tag-cacti-installing","tag-how-to-install-cacti","tag-installing-cacti-in-centos","tag-monitoring-tool-cacti","tag-server-monitor"],"_links":{"self":[{"href":"https:\/\/chennaiwebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/123","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chennaiwebhosting.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/chennaiwebhosting.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/chennaiwebhosting.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/chennaiwebhosting.in\/blog\/wp-json\/wp\/v2\/comments?post=123"}],"version-history":[{"count":1,"href":"https:\/\/chennaiwebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/123\/revisions"}],"predecessor-version":[{"id":125,"href":"https:\/\/chennaiwebhosting.in\/blog\/wp-json\/wp\/v2\/posts\/123\/revisions\/125"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/chennaiwebhosting.in\/blog\/wp-json\/wp\/v2\/media\/124"}],"wp:attachment":[{"href":"https:\/\/chennaiwebhosting.in\/blog\/wp-json\/wp\/v2\/media?parent=123"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/chennaiwebhosting.in\/blog\/wp-json\/wp\/v2\/categories?post=123"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/chennaiwebhosting.in\/blog\/wp-json\/wp\/v2\/tags?post=123"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}