{"id":11499,"date":"2019-03-14T09:34:09","date_gmt":"2019-03-14T09:34:09","guid":{"rendered":"http:\/\/www.appservgrid.com\/paw92\/?p=11499"},"modified":"2019-03-14T09:34:09","modified_gmt":"2019-03-14T09:34:09","slug":"install-cacti-network-monitoring-on-rhel-centos-7-x-6-x-5-x-and-fedora-24-12","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/14\/install-cacti-network-monitoring-on-rhel-centos-7-x-6-x-5-x-and-fedora-24-12\/","title":{"rendered":"Install Cacti (Network Monitoring) on RHEL\/CentOS 7.x\/6.x\/5.x and Fedora 24-12"},"content":{"rendered":"<p><strong>Cacti<\/strong>\u00a0tool is an open source web based network monitoring and system monitoring graphing solution for\u00a0<strong>IT<\/strong>business. Cacti enables a user to poll services at regular intervals to create graphs on resulting data using\u00a0<strong>RRDtool<\/strong>. Generally, it is used to graph time-series data of metrics such as\u00a0<strong>network bandwidth utilization<\/strong>,\u00a0<strong>CPU load<\/strong>,\u00a0<strong>running processes<\/strong>,\u00a0<strong>disk space<\/strong>\u00a0etc.<\/p>\n<div id=\"attachment_1001\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Install-Cacti.jpg\"><img decoding=\"async\" class=\"size-medium wp-image-1001\" title=\"Install Cacti in Linux\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Install-Cacti-300x224.jpg\" sizes=\"(max-width: 300px) 100vw, 300px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Install-Cacti-300x224.jpg 300w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Install-Cacti-320x240.jpg 320w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Install-Cacti.jpg 526w\" alt=\"Install Cacti in Linux\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Install Cacti in RHEL \/ CentOS \/ Fedora<\/p>\n<\/div>\n<p>In this how-to we are going to show you how to install and setup complete network monitoring application called\u00a0<strong>Cacti<\/strong>\u00a0using\u00a0<strong>Net-SNMP<\/strong>\u00a0tool on\u00a0<strong>RHEL 7.x\/6.x\/5.x<\/strong>,\u00a0<strong>CentOS 7.x\/6.x\/5.x<\/strong>\u00a0and\u00a0<strong>Fedora 24-12<\/strong>\u00a0systems using\u00a0<strong>YUM<\/strong>\u00a0and\u00a0<a href=\"https:\/\/www.tecmint.com\/dnf-commands-for-fedora-rpm-package-management\/\" target=\"_blank\" rel=\"noopener\">DNF<\/a>\u00a0(Fedora 23 onwards) package manager tool.<\/p>\n<h4>Cacti Required Packages<\/h4>\n<p>The Cacti required following packages to be installed on your Linux operating systems like\u00a0<strong>RHEL<\/strong>\u00a0\/\u00a0<strong>CentOS<\/strong>\u00a0\/\u00a0<strong>Fedora<\/strong>.<\/p>\n<ol>\n<li><strong>Apache<\/strong>\u00a0: A Web server to display network graphs created by\u00a0<strong>PHP<\/strong>\u00a0and\u00a0<strong>RRDTool<\/strong>.<\/li>\n<li><strong>MySQL<\/strong>\u00a0: A Database server to store cacti information.<\/li>\n<li><strong>PHP<\/strong>\u00a0: A script module to create graphs using\u00a0<strong>RRDToo<\/strong>l.<\/li>\n<li><strong>PHP-SNMP<\/strong>\u00a0: A\u00a0<strong>PHP<\/strong>\u00a0extension for\u00a0<strong>SNMP<\/strong>\u00a0to access data.<\/li>\n<li><strong>NET-SNMP<\/strong>\u00a0: A SNMP (<strong>Simple Network Management Protocol<\/strong>) is used to manage network.<\/li>\n<li><strong>RRDTool<\/strong>\u00a0: A database tool to manage and retrieve time series data like\u00a0<strong>CPU load<\/strong>,\u00a0<strong>Network Bandwidth<\/strong>\u00a0etc.<\/li>\n<\/ol>\n<h3>Installing Cacti Required Packages on RHEL \/ CentOS \/ Fedora<\/h3>\n<p>First, we need to install following dependency packages one-by-one using\u00a0<strong>YUM<\/strong>\u00a0package manager tool.<\/p>\n<h4>Install Apache<\/h4>\n<pre># yum install httpd httpd-devel\r\n\r\n--------- <strong>On Fedora 22+ releases<\/strong> --------- \r\n# dnf install httpd httpd-devel<\/pre>\n<div id=\"attachment_12078\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Install-Apache-in-CentOS-6.png\"><img decoding=\"async\" class=\"size-medium wp-image-12078\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Install-Apache-in-CentOS-6.png\" sizes=\"(max-width: 720px) 100vw, 720px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Install-Apache-in-CentOS-6.png 720w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Install-Apache-in-CentOS-6-620x344.png 620w\" alt=\"Install Apache in CentOS 6 and 7\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Apache Web Server Installation<\/p>\n<\/div>\n<h4>Install MySQL<\/h4>\n<pre># yum install mysql mysql-server      [<strong>On RHEL\/CentOS 6\/5 and Fedora 12-18<\/strong>]\r\n<\/pre>\n<div id=\"attachment_12077\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Install-MySQL-in-CentOS-6.png\"><img decoding=\"async\" class=\"size-medium wp-image-12077\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Install-MySQL-in-CentOS-6.png\" sizes=\"(max-width: 720px) 100vw, 720px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Install-MySQL-in-CentOS-6.png 720w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Install-MySQL-in-CentOS-6-620x344.png 620w\" alt=\"MySQL Installation in CentOS 6\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">MySQL Installation<\/p>\n<p><strong>MariaDB<\/strong>\u00a0is a community-developed fork of the MySQL database project, and provides a replacement for MySQL. Previously the official supported database was MySQl under\u00a0<strong>RHEL\/CentOS 6.x\/5.x<\/strong>\u00a0and\u00a0<strong>Fedora<\/strong>.<\/p>\n<p>Recently,\u00a0<strong>RedHat<\/strong>\u00a0makes a new transaction from MySQl to MariaDB, as MariaDB is the default implementation of MySQL in\u00a0<strong>RHEL\/CentOS 7.x<\/strong>\u00a0and\u00a0<strong>Fedora 19<\/strong>\u00a0onwards..<\/p>\n<pre># yum install mariadb-server -y\t\t[<strong>On RHEL\/CentOS 7.x and Fedora 19 onwards<\/strong>]\r\n# dnf install mariadb-server -y         [<strong>On Fedora 22+ onwards<\/strong>]\r\n<\/pre>\n<div id=\"attachment_12083\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Install-MariaDB-in-CentOS-7.png\"><img decoding=\"async\" class=\"size-medium wp-image-12083\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Install-MariaDB-in-CentOS-7.png\" sizes=\"(max-width: 720px) 100vw, 720px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Install-MariaDB-in-CentOS-7.png 720w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Install-MariaDB-in-CentOS-7-620x344.png 620w\" alt=\"Install MariaDB in CentOS 7\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Installation of MariaDB Database<\/p>\n<\/div>\n<h4>Install PHP<\/h4>\n<pre># yum install php-mysql php-pear php-common php-gd php-devel php php-mbstring php-cli\r\n\r\n--------- <strong>On Fedora 22+ releases<\/strong> --------- \r\n# dnf install php-mysql php-pear php-common php-gd php-devel php php-mbstring php-cli\r\n<\/pre>\n<div id=\"attachment_12079\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Install-PHP-in-CentOS-6.png\"><img decoding=\"async\" class=\"size-medium wp-image-12079\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Install-PHP-in-CentOS-6.png\" sizes=\"(max-width: 720px) 100vw, 720px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Install-PHP-in-CentOS-6.png 720w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Install-PHP-in-CentOS-6-620x344.png 620w\" alt=\"Install PHP in CentOS 6 and 7\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">PHP Installation with Modules<\/p>\n<\/div>\n<h4>Install PHP-SNMP<\/h4>\n<pre># yum install php-snmp\r\n# dnf install php-snmp         [<strong>On Fedora 22+ onwards<\/strong>]\r\n<\/pre>\n<div id=\"attachment_12080\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Install-SNMP-in-CentOS.png\"><img decoding=\"async\" class=\"size-medium wp-image-12080\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Install-SNMP-in-CentOS.png\" sizes=\"(max-width: 720px) 100vw, 720px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Install-SNMP-in-CentOS.png 720w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Install-SNMP-in-CentOS-620x344.png 620w\" alt=\"Install SNMP in CentOS\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">SNMP Installation<\/p>\n<\/div>\n<h4>Install NET-SNMP<\/h4>\n<pre># yum install net-snmp-utils net-snmp-libs\r\n# dnf install net-snmp-utils net-snmp-libs         [<strong>On Fedora 22+ onwards<\/strong>]\r\n<\/pre>\n<div id=\"attachment_12081\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Install-SNMP-Utils.png\"><img decoding=\"async\" class=\"size-medium wp-image-12081\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Install-SNMP-Utils.png\" sizes=\"(max-width: 720px) 100vw, 720px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Install-SNMP-Utils.png 720w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Install-SNMP-Utils-620x344.png 620w\" alt=\"Install SNMP Utils\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Install SNMP Utils<\/p>\n<\/div>\n<h4>Install RRDTool<\/h4>\n<pre># yum install rrdtool\r\n# dnf install rrdtool         [<strong>On Fedora 22+ onwards<\/strong>]<\/pre>\n<div id=\"attachment_12082\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Install-Rrdtool.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-12082\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Install-Rrdtool.png\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Install-Rrdtool.png 720w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Install-Rrdtool-620x344.png 620w\" alt=\"Install Rrdtool\" width=\"620\" height=\"344\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Install Rrdtool<\/p>\n<\/div>\n<h3>Staring Apache, MySQL and SNMP Services<\/h3>\n<p>Once you\u2019ve installed all the required software\u2019s for\u00a0<strong>Cacti<\/strong>\u00a0installation, lets start them one-by-one using following commands.<\/p>\n<h5>On RHEL\/CentOS 6.x\/5.x and Fedora 18-12<\/h5>\n<pre>[root@tecmint ~]# service httpd start\r\n[root@tecmint ~]# service mysqld start\r\n[root@tecmint ~]# service snmpd start\r\n<\/pre>\n<div id=\"attachment_12084\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Start-Services-in-CentOS-6.png\"><img decoding=\"async\" class=\"size-medium wp-image-12084\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Start-Services-in-CentOS-6.png\" sizes=\"(max-width: 720px) 100vw, 720px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Start-Services-in-CentOS-6.png 720w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Start-Services-in-CentOS-6-620x344.png 620w\" alt=\"Start Services in CentOS 6\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Start Services Using init<\/p>\n<\/div>\n<h5>On RHEL\/CentOS 7.x and Fedora 19 Onwards<\/h5>\n<pre>[root@tecmint ~]# systemctl start httpd.service\r\n[root@tecmint ~]# systemctl start mariadb.service\r\n[root@tecmint ~]# systemctl start snmpd.service\r\n<\/pre>\n<div id=\"attachment_12085\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Start-Services-in-CentOS-7.png\"><img decoding=\"async\" class=\"size-medium wp-image-12085\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Start-Services-in-CentOS-7.png\" sizes=\"(max-width: 720px) 100vw, 720px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Start-Services-in-CentOS-7.png 720w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Start-Services-in-CentOS-7-620x344.png 620w\" alt=\"Start Services in CentOS 7\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Start Services Using systemctl<\/p>\n<\/div>\n<h3>Configure System Start-up Links<\/h3>\n<p>Configuring\u00a0<strong>Apache<\/strong>,\u00a0<strong>MySQL<\/strong>\u00a0and\u00a0<strong>SNMP<\/strong>\u00a0Services to start on boot.<\/p>\n<h5>On RHEL\/CentOS 6.x\/5.x and Fedora 18-12<\/h5>\n<pre>[root@tecmint ~]# \/sbin\/chkconfig --levels 345 httpd on\r\n[root@tecmint ~]# \/sbin\/chkconfig --levels 345 mysqld on\r\n[root@tecmint ~]# \/sbin\/chkconfig --levels 345 snmpd on\r\n<\/pre>\n<div id=\"attachment_12086\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/On-Services-in-CentOS-6.png\"><img decoding=\"async\" class=\"size-medium wp-image-12086\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/On-Services-in-CentOS-6.png\" sizes=\"(max-width: 720px) 100vw, 720px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/On-Services-in-CentOS-6.png 720w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/On-Services-in-CentOS-6-620x344.png 620w\" alt=\"Enable Services at Boot in CentOS\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Enable Services at Boot Using chkconfig<\/p>\n<\/div>\n<h5>On RHEL\/CentOS 7.x and Fedora 19 Onwards<\/h5>\n<pre>[root@tecmint ~]# systemctl enable httpd.service\r\n[root@tecmint ~]# systemctl enable mariadb.service\r\n[root@tecmint ~]# systemctl enable snmpd.service\r\n<\/pre>\n<div id=\"attachment_12087\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Enable-Services-at-Boot-in-CentOS-7.png\"><img decoding=\"async\" class=\"size-medium wp-image-12087\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Enable-Services-at-Boot-in-CentOS-7.png\" sizes=\"(max-width: 720px) 100vw, 720px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Enable-Services-at-Boot-in-CentOS-7.png 720w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Enable-Services-at-Boot-in-CentOS-7-620x344.png 620w\" alt=\"Enable Services at Boot in CentOS 7\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Enable Services at Boot Using systemctl<\/p>\n<\/div>\n<h3>Install Cacti on RHEL \/ CentOS \/ Fedora<\/h3>\n<p>Here, you need to install and enable\u00a0<a href=\"https:\/\/www.tecmint.com\/how-to-enable-epel-repository-for-rhel-centos-6-5\/\" target=\"_blank\" rel=\"noopener\">EPEL Repository<\/a>. Once you\u2019ve enabled repository, type the following command to install Cacti application.<\/p>\n<pre># yum install cacti\r\n# dnf install cacti         [<strong>On Fedora 22+ onwards<\/strong>]<\/pre>\n<h4>Sample Output:<\/h4>\n<pre>Loaded plugins: fastestmirror, langpacks\r\nepel\/x86_64\/metalink                                                                                                                                                  | 4.7 kB  00:00:00\r\nepel                                                                                                                                                                  | 4.4 kB  00:00:00\r\n(1\/2): epel\/x86_64\/group_gz                                                                                                                                           | 250 kB  00:00:03\r\n(2\/2): epel\/x86_64\/primary_db                                                                                                                                         | 4.0 MB  00:02:20\r\n(1\/2): epel\/x86_64\/updateinfo                                                                                                                                         | 315 kB  00:00:09\r\n(2\/2): epel\/x86_64\/pkgtags                                                                                                                                            | 1.4 MB  00:00:59\r\nLoading mirror speeds from cached hostfile\r\n * base: centos.excellmedia.net\r\n * epel: ftp.cuhk.edu.hk\r\n * extras: centos.excellmedia.net\r\n * updates: centos.excellmedia.net\r\nResolving Dependencies\r\n--&gt; Running transaction check\r\n---&gt; Package cacti.noarch 0:0.8.8b-7.el7 will be installed\r\n--&gt; Processing Dependency: rrdtool for package: cacti-0.8.8b-7.el7.noarch\r\n--&gt; Processing Dependency: net-snmp-utils for package: cacti-0.8.8b-7.el7.noarch\r\n--&gt; Running transaction check\r\n---&gt; Package net-snmp-utils.x86_64 1:5.7.2-18.el7 will be installed\r\n---&gt; Package rrdtool.x86_64 0:1.4.8-8.el7 will be installed\r\n--&gt; Finished Dependency Resolution\r\n\r\nDependencies Resolved\r\n\r\n=============================================================================================================================================================================================\r\n Package                                           Arch                                      Version                                           Repository                               Size\r\n=============================================================================================================================================================================================\r\nInstalling:\r\n cacti                                             noarch                                    0.8.8b-7.el7                                      epel                                    2.1 M\r\nInstalling for dependencies:\r\n net-snmp-utils                                    x86_64                                    1:5.7.2-18.el7                                    base                                    195 k\r\n rrdtool                                           x86_64                                    1.4.8-8.el7                                       base                                    368 k\r\n\r\nTransaction Summary\r\n=============================================================================================================================================================================================\r\nInstall  1 Package (+2 Dependent packages)\r\n\r\nTotal download size: 2.7 M\r\nInstalled size: 7.2 M\r\nIs this ok [y\/d\/N]: y\r\nDownloading packages:\r\n(1\/3): net-snmp-utils-5.7.2-18.el7.x86_64.rpm                                                                                                                         | 195 kB  00:00:04\r\nwarning: \/var\/cache\/yum\/x86_64\/7\/epel\/packages\/cacti-0.8.8b-7.el7.noarch.rpm: Header V3 RSA\/SHA256 Signature, key ID 352c64e5: NOKEY==============-        ]  56 kB\/s | 2.4 MB  00:00:05 ETA\r\nPublic key for cacti-0.8.8b-7.el7.noarch.rpm is not installed\r\n(2\/3): cacti-0.8.8b-7.el7.noarch.rpm                                                                                                                                  | 2.1 MB  00:00:53\r\n(3\/3): rrdtool-1.4.8-8.el7.x86_64.rpm                                                                                                                                 | 368 kB  00:02:47\r\n---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------\r\nTotal                                                                                                                                                         16 kB\/s | 2.7 MB  00:02:47\r\nRetrieving key from file:\/\/\/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-EPEL-7\r\nImporting GPG key 0x352C64E5:\r\n Userid     : \"Fedora EPEL (7) &lt;epel@fedoraproject.org&gt;\"\r\n Fingerprint: 91e9 7d7c 4a5e 96f1 7f3e 888f 6a2f aea2 352c 64e5\r\n Package    : epel-release-7-5.noarch (installed)\r\n From       : \/etc\/pki\/rpm-gpg\/RPM-GPG-KEY-EPEL-7\r\nIs this ok [y\/N]: y\r\nRunning transaction check\r\nRunning transaction test\r\nTransaction test succeeded\r\nRunning transaction\r\nWarning: RPMDB altered outside of yum.\r\n  Installing : rrdtool-1.4.8-8.el7.x86_64                                                                                                                                                1\/3\r\n  Installing : 1:net-snmp-utils-5.7.2-18.el7.x86_64                                                                                                                                      2\/3\r\n  Installing : cacti-0.8.8b-7.el7.noarch                                                                                                                                                 3\/3\r\n\/var\/tmp\/rpm-tmp.mR0t1v: line 1: fg: no job control\r\nwarning: %post(cacti-0.8.8b-7.el7.noarch) scriptlet failed, exit status 1\r\nNon-fatal POSTIN scriptlet failure in rpm package cacti-0.8.8b-7.el7.noarch\r\n  Verifying  : 1:net-snmp-utils-5.7.2-18.el7.x86_64                                                                                                                                      1\/3\r\n  Verifying  : rrdtool-1.4.8-8.el7.x86_64                                                                                                                                                2\/3\r\n  Verifying  : cacti-0.8.8b-7.el7.noarch                                                                                                                                                 3\/3\r\n\r\nInstalled:\r\n  cacti.noarch 0:0.8.8b-7.el7\r\n\r\nDependency Installed:\r\n  net-snmp-utils.x86_64 1:5.7.2-18.el7                                                              rrdtool.x86_64 0:1.4.8-8.el7\r\n\r\nComplete!\r\n<\/pre>\n<h3>Configuring MySQL Server for Cacti Installation<\/h3>\n<p>We need to configure\u00a0<strong>MySQL<\/strong>\u00a0for\u00a0<strong>Cacti<\/strong>, to do this we need to set password for our newly installed\u00a0<strong>MySQL<\/strong>\u00a0server and then we will create\u00a0<strong>Cacti<\/strong>\u00a0database with user\u00a0<strong>Cacti<\/strong>. If you\u2019re\u00a0<strong>MySQL<\/strong>\u00a0is already password protected, then don\u2019t need to set it again.<\/p>\n<h4>Set MySQL Password<\/h4>\n<p>To set new password for\u00a0<strong>MySQL<\/strong>\u00a0server, use the following command. (<strong>Note<\/strong>\u00a0:\u00a0<strong>This is for new MySQL installation only<\/strong>).<\/p>\n<pre>[root@tecmint ~]# mysqladmin -u root password <strong>YOUR-PASSWORD-HERE<\/strong><\/pre>\n<h4>Create MySQL Cacti Database<\/h4>\n<p>Login into\u00a0<strong>MySQL<\/strong>\u00a0server with newly created password and create\u00a0<strong>Cacti<\/strong>\u00a0database with user\u00a0<strong>Cacti<\/strong>\u00a0and set the password for it.<\/p>\n<h5>On RHEL\/CentOS 6.x\/5.x and Fedora 18-12<\/h5>\n<pre>[root@tecmint ~]# <strong>mysql -u root -p<\/strong>\r\nEnter password:\r\nWelcome to the MySQL monitor.  Commands end with ; or \\g.\r\nYour MySQL connection id is 3\r\nServer version: 5.1.73 Source distribution\r\nCopyright (c) 2000, 2013, Oracle and\/or its affiliates. All rights reserved.\r\nOracle is a registered trademark of Oracle Corporation and\/or its\r\naffiliates. Other names may be trademarks of their respective\r\nowners.\r\n\r\nType 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.\r\n\r\nmysql&gt; <strong>create database cacti<\/strong>;\r\nQuery OK, 1 row affected (0.00 sec)\r\n\r\nmysql&gt; <strong>GRANT ALL ON cacti.* TO cacti@localhost IDENTIFIED BY 'tecmint'<\/strong>;\r\nQuery OK, 0 rows affected (0.00 sec)\r\n\r\nmysql&gt; <strong>FLUSH privileges<\/strong>;\r\nQuery OK, 0 rows affected (0.00 sec)\r\n\r\nmysql&gt; <strong>quit<\/strong>;\r\nBye\r\n<\/pre>\n<h5>On RHEL\/CentOS 7.x and Fedora 19 Onwards<\/h5>\n<pre>[root@tecmint ~]# mysql -u root -p\r\nEnter password:\r\nWelcome to the MariaDB monitor.  Commands end with ; or \\g.\r\nYour MariaDB connection id is 3\r\nServer version: 5.5.41-MariaDB MariaDB Server\r\nCopyright (c) 2000, 2014, Oracle, MariaDB Corporation Ab and others.\r\nType 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.\r\n\r\nMariaDB [(none)]&gt; <strong>create database cacti<\/strong>;\r\nQuery OK, 1 row affected (0.00 sec)\r\n\r\nMariaDB [(none)]&gt; <strong>GRANT ALL ON cacti.* TO cacti@localhost IDENTIFIED BY 'tecmint'<\/strong>;\r\nQuery OK, 0 rows affected (0.00 sec)\r\n\r\nMariaDB [(none)]&gt; <strong>FLUSH privileges<\/strong>;\r\nQuery OK, 0 rows affected (0.00 sec)\r\n\r\nMariaDB [(none)]&gt; <strong>quit<\/strong>;\r\nBye\r\n<\/pre>\n<h4>Install Cacti Tables to MySQL<\/h4>\n<p>Find out the database file path using\u00a0<strong>RPM<\/strong>\u00a0command, to install cacti tables into newly created\u00a0<strong>Cacti<\/strong>\u00a0database, use the following command.<\/p>\n<pre># rpm -ql cacti | grep cacti.sql<\/pre>\n<h5>Sample Output:<\/h5>\n<pre>\/usr\/share\/doc\/cacti-0.8.8b\/cacti.sql\r\nOR\r\n\/usr\/share\/doc\/cacti\/cacti.sql<\/pre>\n<p>Now we\u2019ve of the location of\u00a0<strong>Cacti.sql<\/strong>\u00a0file, type the following command to install tables, here you need to type the Cacti user\u00a0<strong>password<\/strong>.<\/p>\n<pre>[root@tecmint ~]# mysql -u cacti -p cacti &lt; \/usr\/share\/doc\/cacti-0.8.8b\/cacti.sql\r\nEnter password:<\/pre>\n<h4>Configure MySQL settings for Cacti<\/h4>\n<p>Open the file called\u00a0<strong>\/etc\/cacti\/db.php<\/strong>\u00a0with any editor.<\/p>\n<pre># vi \/etc\/cacti\/db.php<\/pre>\n<p>Make the following changes and save the file. Make sure you set password correctly.<\/p>\n<pre>\/* make sure these values reflect your actual database\/host\/user\/password *\/\r\n$database_type = \"<strong>mysql<\/strong>\";\r\n$database_default = \"<strong>cacti<\/strong>\";\r\n$database_hostname = \"<strong>localhost<\/strong>\";\r\n$database_username = \"<strong>cacti<\/strong>\";\r\n$database_password = \"<strong>your-password-here<\/strong>\";\r\n$database_port = \"3306\";\r\n$database_ssl = false;<\/pre>\n<h3>Configuring Firewall for Cacti<\/h3>\n<h5>On RHEL\/CentOS 6.x\/5.x and Fedora 18-12<\/h5>\n<pre>[root@tecmint ~]# iptables -A INPUT -p udp -m state --state NEW --dport 80 -j ACCEPT\r\n[root@tecmint ~]# iptables -A INPUT -p tcp -m state --state NEW --dport 80 -j ACCEPT\r\n[root@tecmint ~]# service iptables save\r\n<\/pre>\n<h5>On RHEL\/CentOS 7.x and Fedora 19 Onwards<\/h5>\n<pre>[root@tecmint ~]# firewall-cmd --permanent --zone=public --add-service=http\r\n[root@tecmint ~]# firewall-cmd --reload\r\n<\/pre>\n<h3>Configuring Apache Server for Cacti Installation<\/h3>\n<p>Open file called\u00a0<strong>\/etc\/httpd\/conf.d\/cacti.conf<\/strong>\u00a0with your choice of editor.<\/p>\n<pre># vi \/etc\/httpd\/conf.d\/cacti.conf\r\n<\/pre>\n<p>You need to enabled access to\u00a0<strong>Cacti<\/strong>\u00a0application for your local network or per IP level. For example we&#8217;ve enabled access to our local LAN network\u00a0<strong>172.16.16.0\/20<\/strong>. In your case, it would be different.<\/p>\n<pre>Alias \/cacti    \/usr\/share\/cacti\r\n\u00a0\r\n&lt;Directory \/usr\/share\/cacti\/&gt;\r\n        Order Deny,Allow\r\n        Deny from all\r\n        Allow from <strong>172.16.16.0\/20<\/strong>\r\n&lt;\/Directory&gt;\r\n<\/pre>\n<p>In latest version of Apache (ex:\u00a0<strong>Apache 2.4<\/strong>), you may need to change according to the following settings.<\/p>\n<pre>Alias \/cacti    \/usr\/share\/cacti\r\n\r\n&lt;Directory \/usr\/share\/cacti\/&gt;\r\n        &lt;IfModule mod_authz_core.c&gt;\r\n                # httpd 2.4\r\n                <strong>Require all granted<\/strong>\r\n        &lt;\/IfModule&gt;\r\n        &lt;IfModule !mod_authz_core.c&gt;\r\n                # httpd 2.2\r\n                Order deny,allow\r\n                Deny from all\r\n                Allow from all\r\n        &lt;\/IfModule&gt;\r\n&lt;\/Directory&gt;\r\n<\/pre>\n<p>Finally, restart the\u00a0<strong>Apache<\/strong>\u00a0service.<\/p>\n<pre>[root@tecmint ~]# service httpd restart\t\t\t\t[On RHEL\/CentOS 6.x\/5.x and Fedora 18-12]\r\n\r\n[root@tecmint ~]# systemctl restart httpd.service\t\t[On RHEL\/CentOS 7.x and Fedora 19 onwards]\r\n<\/pre>\n<h3>Setting Cron for Cacti<\/h3>\n<p>Open file\u00a0<strong>\/etc\/cron.d\/cacti<\/strong>.<\/p>\n<pre># vi \/etc\/cron.d\/cacti<\/pre>\n<p>Uncomment the following line. The\u00a0<strong>poller.php<\/strong>\u00a0script runs every\u00a0<strong>5mins<\/strong>\u00a0and collects data of known host which is used by Cacti application to display graphs.<\/p>\n<pre>#*\/5 * * * *    cacti   \/usr\/bin\/php \/usr\/share\/cacti\/poller.php &gt; \/dev\/null 2&gt;&amp;1<\/pre>\n<h3>Running Cacti Installer Setup<\/h3>\n<p>Finally, Cacti is ready, just go to\u00a0<strong>http:\/\/YOUR-IP-HERE\/cacti\/<\/strong>\u00a0&amp; follow the installer instruction through the following screens. Click\u00a0<strong>Next<\/strong>\u00a0button.<\/p>\n<div id=\"attachment_994\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Cacti-Installer.jpg\"><img decoding=\"async\" class=\"size-full wp-image-994\" title=\"Cacti Installer Screen\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Cacti-Installer.jpg\" sizes=\"(max-width: 595px) 100vw, 595px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Cacti-Installer.jpg 595w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Cacti-Installer-300x226.jpg 300w\" alt=\"Cacti Installer Screen\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Cacti Setup Screen<\/p>\n<\/div>\n<p>Please choose installation Type as &#8220;<strong>New Install<\/strong>&#8220;.<\/p>\n<div id=\"attachment_995\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Cacti-New-Install.jpg\"><img decoding=\"async\" class=\"size-full wp-image-995\" title=\"Cacti New Install Setup\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Cacti-New-Install.jpg\" sizes=\"(max-width: 558px) 100vw, 558px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Cacti-New-Install.jpg 558w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Cacti-New-Install-300x241.jpg 300w\" alt=\"Cacti New Install Setup\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Select Cacti New Install<\/p>\n<\/div>\n<p>Make sure all the following values are correct before continuing. Click\u00a0<strong>Finish<\/strong>\u00a0button.<\/p>\n<div id=\"attachment_996\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Cacti-Installation.jpg\"><img decoding=\"async\" class=\"size-full wp-image-996\" title=\"Cacti Installation\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Cacti-Installation.jpg\" sizes=\"(max-width: 630px) 100vw, 630px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Cacti-Installation.jpg 630w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Cacti-Installation-300x204.jpg 300w\" alt=\"Cacti Installation\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Cacti Installation Directories<\/p>\n<\/div>\n<p>Cacti Login Screen, enter username as admin and password as admin.<\/p>\n<div id=\"attachment_997\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Cacti-Login.jpg\"><img decoding=\"async\" class=\"size-full wp-image-997\" title=\"Cacti Login Screen\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Cacti-Login.jpg\" sizes=\"(max-width: 588px) 100vw, 588px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Cacti-Login.jpg 588w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Cacti-Login-300x229.jpg 300w\" alt=\"Cacti Login Screen\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Cacti Login Screen<\/p>\n<\/div>\n<p>Once you&#8217;ve entered username and password, it will ask you to enter a new password for cacti.<\/p>\n<div id=\"attachment_998\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Cacti-Password.jpg\"><img decoding=\"async\" class=\"size-full wp-image-998\" title=\"Set Cacti Password\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Cacti-Password.jpg\" sizes=\"(max-width: 586px) 100vw, 586px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Cacti-Password.jpg 586w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Cacti-Password-300x230.jpg 300w\" alt=\"Set Cacti Password\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Cacti Force Password Screen<\/p>\n<\/div>\n<p>Cacti Console Screen.<\/p>\n<div id=\"attachment_999\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Cacti-Console.jpg\"><img decoding=\"async\" class=\"size-full wp-image-999\" title=\"Cacti Console\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Cacti-Console.jpg\" sizes=\"(max-width: 630px) 100vw, 630px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Cacti-Console.jpg 630w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Cacti-Console-300x202.jpg 300w\" alt=\"Cacti Console\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Cacti Console Screen<\/p>\n<\/div>\n<h3>How to Create New Graphs<\/h3>\n<p>To create graphs, Click on\u00a0<strong>New Graphs<\/strong>\u00a0&#8211;&gt;\u00a0<strong>Select Host<\/strong>\u00a0&#8211;&gt;\u00a0<strong>Select SNMP<\/strong>\u00a0&#8211;\u00a0<strong>Interface Statistics<\/strong>\u00a0and Select a graph type\u00a0<strong>In\/Out Bits<\/strong>. Click on\u00a0<strong>Create<\/strong>\u00a0button. Please refer screen below.<\/p>\n<div id=\"attachment_1000\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Cacti-Create-Graph.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-1000\" title=\"Create Graphs in Cacti\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Cacti-Create-Graph.jpg\" sizes=\"auto, (max-width: 630px) 100vw, 630px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Cacti-Create-Graph.jpg 630w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Cacti-Create-Graph-300x190.jpg 300w\" alt=\"Create Graphs in Cacti\" width=\"630\" height=\"399\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">How to Create Graphs in Cacti<\/p>\n<\/div>\n<div id=\"attachment_12088\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Cacti-Monitoring-Graphs.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-12088\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Cacti-Monitoring-Graphs-620x423.png\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Cacti-Monitoring-Graphs-620x423.png 620w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Cacti-Monitoring-Graphs-1024x699.png 1024w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2012\/09\/Cacti-Monitoring-Graphs.png 1152w\" alt=\"Cacti Monitoring Graphs\" width=\"620\" height=\"423\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Cacti Monitoring Graphs<\/p>\n<\/div>\n<p>For more information and usage please visit the\u00a0<a href=\"https:\/\/www.cacti.net\/\" target=\"_blank\" rel=\"noopener\">Cacti Page<\/a>.<\/p>\n<p><a style=\"font-size: 1rem;\" href=\"https:\/\/www.tecmint.com\/install-cacti-network-monitoring-on-rhel-centos-6-3-5-8-and-fedora-17-12\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Cacti\u00a0tool is an open source web based network monitoring and system monitoring graphing solution for\u00a0ITbusiness. Cacti enables a user to poll services at regular intervals to create graphs on resulting data using\u00a0RRDtool. Generally, it is used to graph time-series data of metrics such as\u00a0network bandwidth utilization,\u00a0CPU load,\u00a0running processes,\u00a0disk space\u00a0etc. Install Cacti in RHEL \/ CentOS &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/14\/install-cacti-network-monitoring-on-rhel-centos-7-x-6-x-5-x-and-fedora-24-12\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Install Cacti (Network Monitoring) on RHEL\/CentOS 7.x\/6.x\/5.x and Fedora 24-12&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-11499","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/11499","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=11499"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/11499\/revisions"}],"predecessor-version":[{"id":11500,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/11499\/revisions\/11500"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=11499"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=11499"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=11499"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}