<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Install Cacti on Centos7 Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/install-cacti-on-centos7/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Thu, 21 Jun 2018 20:41:39 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How to install Cacti on Centos 7</title>
		<link>https://www.osradar.com/how-to-install-cacti-on-centos-7/</link>
					<comments>https://www.osradar.com/how-to-install-cacti-on-centos-7/#respond</comments>
		
		<dc:creator><![CDATA[Mel]]></dc:creator>
		<pubDate>Tue, 29 May 2018 09:02:04 +0000</pubDate>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Cacati on Linux]]></category>
		<category><![CDATA[Install Cacti on Centos7]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=3227</guid>

					<description><![CDATA[<p>Cacti is a complete network graphing solution designed to harness the power of RRDTool&#8217;s data storage and graphing functionality. Cacti provides a fast poller, advanced graph templating, multiple data acquisition methods, and user management features out of the box. All of this is wrapped in an intuitive, easy to use interface that makes sense for [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-cacti-on-centos-7/">How to install Cacti on Centos 7</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Cacti is a complete network graphing solution designed to harness the power of RRDTool&#8217;s data storage and graphing functionality. Cacti provides a fast poller, advanced graph templating, multiple data acquisition methods, and user management features out of the box. All of this is wrapped in an intuitive, easy to use interface that makes sense for LAN-sized installations up to complex networks with thousands of devices.</p>
<p><img loading="lazy" class="alignnone wp-image-3480 size-full" src="https://www.osradar.com/wp-content/uploads/2018/05/featured-2-e1527482622637.png" alt="" width="959" height="531" /></p>
<p>How to To install Cacti on your CentOS 7.</p>
<p>we will follow below steps.</p>
<p><strong>Step 01: First we need t install following dependency packages using yum package manager tool</strong></p>
<pre># yum install httpd httpd-devel -y</pre>
<p>Step 02: Install mariadb</p>
<pre># yum install mariadb-server -y</pre>
<p><strong>Step 03: Install php</strong></p>
<pre># yum install php-mysql php-pear php-common php-gd php-devel php php-mbstring php-cli -y</pre>
<p><strong>Step 04: Install php-SNMP</strong></p>
<pre># yum install php-snmp -y</pre>
<p><strong>Step 05: Install net-snmp</strong></p>
<p># yum install net-snmp-utils net-snmp-libs -y</p>
<p><strong>Step 06: Install RRDTool</strong></p>
<pre># yum install rrdtool -y</pre>
<p><strong>Step07: Let&#8217;s install cacti now</strong></p>
<pre># yum install cacti -y</pre>
<p>If it does not work then we have to enable EPEL repository</p>
<pre>#wget http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
# rpm -ivh epel-release-latest-7.noarch.rpm</pre>
<p>After this install cacti</p>
<p><strong>Step 08: Configure MySQL</strong></p>
<pre>#mysql_secure_installation</pre>
<p><strong>Step 09: Create cacti database</strong></p>
<pre>#mysql -u root -p</pre>
<pre>&gt;create database cacti;
&gt;grant all on cacti.* to mahbub@localhost identified by "test123";
&gt;FLUSH Privileges;
&gt;exit</pre>
<p><strong>Step 10: Install cacti tables on MySql</strong></p>
<pre># mysql -u mahbub -p cacti &lt; /usr/share/doc/cacti-1.1.37/cacti.sql</pre>
<p>Step 11: Open file /etc/cacti/db.php with any editor</p>
<p>Make following changes and save. Make sure you set password correctly.</p>
<p>Also make sure those values reflect your actual database /host/user/password</p>
<pre>#vim /etc/cacti/db.php

$database_type="mysql";
$database_default="cacti";
$database_hostname="localhost";
$database_username="mahbub";
$database_password="test123";</pre>
<p><strong>Step 12: Now configure Apache for cacti.</strong></p>
<p>Open file called /etc/httpd/conf.d/cacti.conf</p>
<pre>#vim /etc/httpd/conf.d/cacti.conf</pre>
<p>We will change</p>
<pre>&lt;Directory /usr/share/cacti/&gt;
&lt;IfModule mod_authz_core.c&gt;
# httpd 2.4
Require all <strong>granted</strong>

&lt;/IfModule&gt;
&lt;IfModule !mod_authz_core.c&gt;
# httpd 2.2
Order deny,allow
Deny from all
Allow from <strong>all
</strong>        &lt;/IfModule&gt;
&lt;/Directory&gt;</pre>
<p>Step 13: <strong>The newly created database user (</strong><em><strong>mahbub</strong></em><strong>) should have access to the mysql.time_zone_name Table</strong><strong>. To do that, import the</strong><strong> mysql_test_data_timezone.sql</strong><strong> to </strong><strong>mysql</strong><strong> database first.</strong></p>
<pre>#mysql -u root -p mysql &lt; /usr/share/mysql/mysql_test_data_timezone.sql

# mysql -u root -p</pre>
<p>Grant the permission to cactiuser (mahbub)</p>
<pre>&gt;GRANT SELECT ON mysql.time_zone_name TO mahbub@localhost;
&gt;flush privileges;
&gt;exit</pre>
<p>&nbsp;</p>
<p><strong>Step 14: Cacti recommend changing MySQL variables settings for better performances</strong>.</p>
<p>Edit configuration file depends on the operating system.</p>
<pre># vim /etc/my.cnf.d/server.cnf</pre>
<p>Add variables in <strong>[mysqld]</strong> section.</p>
<pre>collation-server = utf8_general_ci
init-connect='SET NAMES utf8'
character-set-server = utf8
max_heap_table_size = 128M
max_allowed_packet = 16777216
tmp_table_size = 64M
join_buffer_size = 64M
innodb_file_per_table = on
innodb_buffer_pool_size = 512M
innodb_doublewrite = off
innodb_additional_mem_pool_size = 80M
innodb_lock_wait_timeout = 50
innodb_flush_log_at_trx_commit = 2</pre>
<p><strong>Step 15:  Set the timezone by editing /etc/php.ini file.</strong></p>
<pre># vim /etc/php.ini</pre>
<p>Update the timezone as follows</p>
<pre>date.timezone = US/Central</pre>
<p><strong>Step 16: Now we will start Apache, MySQL and SNMP services</strong></p>
<pre>#systemctl start httpd.service
#systemctl start mariadb.service
#systemctl start snmpd.service</pre>
<p><strong>Step 17: enable service for start-up</strong></p>
<pre>#systemctl enable httpd.service
#systemctl enable mariadb.service
#systemctl enable snmpd.service</pre>
<p>&nbsp;</p>
<p><strong>Step 18: Configure the firewall to allow HTTP service.</strong></p>
<pre>#firewall-cmd --permanent --add-service=http#firewall-cmd --reload</pre>
<p>Step 19: It is recommended to <a href="https://www.itzgeek.com/how-tos/linux/centos-how-tos/disable-selinux-on-centos-6-disable-selinux-on-rhel-6.html"><strong>permanently disable SELinux</strong></a> for Cacti to work correctly. To temporarily disable the SELinux, run the following command in the terminal.</p>
<pre>#setenforce 0</pre>
<p><strong>Step 20: Create Cron for cacti</strong></p>
<p>Open file /etc/cron.d/cacti</p>
<p>And uncomment</p>
<pre>#vim /etc/cron.d/cacti

*/5 * * * *     cacti   /usr/bin/php /usr/share/cacti/poller.php &gt; /dev/null 2&gt;&amp;1</pre>
<p>&nbsp;</p>
<p>Step 21: Now go to web browser and type localhost/cacti and hit enter</p>
<p>cacti installation page will appear.Accept License agreement and begin installation.<img loading="lazy" class="alignnone wp-image-3508 size-full" src="https://www.osradar.com/wp-content/uploads/2018/05/Browser-1.png" alt="" width="685" height="437" srcset="https://www.osradar.com/wp-content/uploads/2018/05/Browser-1.png 685w, https://www.osradar.com/wp-content/uploads/2018/05/Browser-1-300x191.png 300w, https://www.osradar.com/wp-content/uploads/2018/05/Browser-1-658x420.png 658w" sizes="(max-width: 685px) 100vw, 685px" /></p>
<p>Complete installation as per instructions.</p>
<p><img loading="lazy" class="alignnone wp-image-3509 size-full" src="https://www.osradar.com/wp-content/uploads/2018/05/Cacti_1.png" alt="" width="800" height="531" srcset="https://www.osradar.com/wp-content/uploads/2018/05/Cacti_1.png 800w, https://www.osradar.com/wp-content/uploads/2018/05/Cacti_1-300x199.png 300w, https://www.osradar.com/wp-content/uploads/2018/05/Cacti_1-768x510.png 768w, https://www.osradar.com/wp-content/uploads/2018/05/Cacti_1-696x462.png 696w, https://www.osradar.com/wp-content/uploads/2018/05/Cacti_1-633x420.png 633w" sizes="(max-width: 800px) 100vw, 800px" /></p>
<p><img loading="lazy" class="alignnone wp-image-3510 size-full" src="https://www.osradar.com/wp-content/uploads/2018/05/Cacti_2.png" alt="" width="800" height="349" srcset="https://www.osradar.com/wp-content/uploads/2018/05/Cacti_2.png 800w, https://www.osradar.com/wp-content/uploads/2018/05/Cacti_2-300x131.png 300w, https://www.osradar.com/wp-content/uploads/2018/05/Cacti_2-768x335.png 768w, https://www.osradar.com/wp-content/uploads/2018/05/Cacti_2-696x304.png 696w" sizes="(max-width: 800px) 100vw, 800px" /></p>
<p><img loading="lazy" class="alignnone wp-image-3511 size-full" src="https://www.osradar.com/wp-content/uploads/2018/05/Cacti_3.png" alt="" width="800" height="349" srcset="https://www.osradar.com/wp-content/uploads/2018/05/Cacti_3.png 800w, https://www.osradar.com/wp-content/uploads/2018/05/Cacti_3-300x131.png 300w, https://www.osradar.com/wp-content/uploads/2018/05/Cacti_3-768x335.png 768w, https://www.osradar.com/wp-content/uploads/2018/05/Cacti_3-696x304.png 696w" sizes="(max-width: 800px) 100vw, 800px" /></p>
<p><img loading="lazy" class="alignnone wp-image-3512 size-full" src="https://www.osradar.com/wp-content/uploads/2018/05/Cacti_4.png" alt="" width="800" height="349" srcset="https://www.osradar.com/wp-content/uploads/2018/05/Cacti_4.png 800w, https://www.osradar.com/wp-content/uploads/2018/05/Cacti_4-300x131.png 300w, https://www.osradar.com/wp-content/uploads/2018/05/Cacti_4-768x335.png 768w, https://www.osradar.com/wp-content/uploads/2018/05/Cacti_4-696x304.png 696w" sizes="(max-width: 800px) 100vw, 800px" /></p>
<p><img loading="lazy" class="alignnone wp-image-3513 size-full" src="https://www.osradar.com/wp-content/uploads/2018/05/Cacti_5.png" alt="" width="800" height="349" srcset="https://www.osradar.com/wp-content/uploads/2018/05/Cacti_5.png 800w, https://www.osradar.com/wp-content/uploads/2018/05/Cacti_5-300x131.png 300w, https://www.osradar.com/wp-content/uploads/2018/05/Cacti_5-768x335.png 768w, https://www.osradar.com/wp-content/uploads/2018/05/Cacti_5-696x304.png 696w" sizes="(max-width: 800px) 100vw, 800px" /></p>
<p><img loading="lazy" class="alignnone wp-image-3514 size-full" src="https://www.osradar.com/wp-content/uploads/2018/05/Cacti_6.png" alt="" width="800" height="349" srcset="https://www.osradar.com/wp-content/uploads/2018/05/Cacti_6.png 800w, https://www.osradar.com/wp-content/uploads/2018/05/Cacti_6-300x131.png 300w, https://www.osradar.com/wp-content/uploads/2018/05/Cacti_6-768x335.png 768w, https://www.osradar.com/wp-content/uploads/2018/05/Cacti_6-696x304.png 696w" sizes="(max-width: 800px) 100vw, 800px" /></p>
<p><img loading="lazy" class="alignnone wp-image-3515 size-full" src="https://www.osradar.com/wp-content/uploads/2018/05/Cacti_7.png" alt="" width="800" height="381" srcset="https://www.osradar.com/wp-content/uploads/2018/05/Cacti_7.png 800w, https://www.osradar.com/wp-content/uploads/2018/05/Cacti_7-300x143.png 300w, https://www.osradar.com/wp-content/uploads/2018/05/Cacti_7-768x366.png 768w, https://www.osradar.com/wp-content/uploads/2018/05/Cacti_7-696x331.png 696w" sizes="(max-width: 800px) 100vw, 800px" /></p>
<p><img loading="lazy" class="alignnone wp-image-3516 size-full" src="https://www.osradar.com/wp-content/uploads/2018/05/Cacti_8.png" alt="" width="800" height="375" srcset="https://www.osradar.com/wp-content/uploads/2018/05/Cacti_8.png 800w, https://www.osradar.com/wp-content/uploads/2018/05/Cacti_8-300x141.png 300w, https://www.osradar.com/wp-content/uploads/2018/05/Cacti_8-768x360.png 768w, https://www.osradar.com/wp-content/uploads/2018/05/Cacti_8-696x326.png 696w" sizes="(max-width: 800px) 100vw, 800px" /></p>
<p><img loading="lazy" class="alignnone wp-image-3517 size-full" src="https://www.osradar.com/wp-content/uploads/2018/05/Cacti_9.png" alt="" width="800" height="286" srcset="https://www.osradar.com/wp-content/uploads/2018/05/Cacti_9.png 800w, https://www.osradar.com/wp-content/uploads/2018/05/Cacti_9-300x107.png 300w, https://www.osradar.com/wp-content/uploads/2018/05/Cacti_9-768x275.png 768w, https://www.osradar.com/wp-content/uploads/2018/05/Cacti_9-696x249.png 696w" sizes="(max-width: 800px) 100vw, 800px" /></p>
<p><img loading="lazy" class="alignnone wp-image-3518 size-full" src="https://www.osradar.com/wp-content/uploads/2018/05/LoginPage.png" alt="" width="800" height="531" srcset="https://www.osradar.com/wp-content/uploads/2018/05/LoginPage.png 800w, https://www.osradar.com/wp-content/uploads/2018/05/LoginPage-300x199.png 300w, https://www.osradar.com/wp-content/uploads/2018/05/LoginPage-768x510.png 768w, https://www.osradar.com/wp-content/uploads/2018/05/LoginPage-696x462.png 696w, https://www.osradar.com/wp-content/uploads/2018/05/LoginPage-633x420.png 633w" sizes="(max-width: 800px) 100vw, 800px" /></p>
<p>From web browser visit localhost/cacti/index.php</p>
<p>In your cacti login page provide default user name &#8220;admin&#8221; and default password &#8220;admin&#8221;. You have to change password for the first time.</p>
<p>After login to cacti you will get cacti dashboard, where you can add devices and create graphs.</p>
<p>At the left side of dashboard you will all options to implement.</p>
<p><img loading="lazy" class="alignnone wp-image-3524 size-full" src="https://www.osradar.com/wp-content/uploads/2018/05/Dashboard.png" alt="" width="800" height="531" srcset="https://www.osradar.com/wp-content/uploads/2018/05/Dashboard.png 800w, https://www.osradar.com/wp-content/uploads/2018/05/Dashboard-300x199.png 300w, https://www.osradar.com/wp-content/uploads/2018/05/Dashboard-768x510.png 768w, https://www.osradar.com/wp-content/uploads/2018/05/Dashboard-696x462.png 696w, https://www.osradar.com/wp-content/uploads/2018/05/Dashboard-633x420.png 633w" sizes="(max-width: 800px) 100vw, 800px" /></p>
<p>To add a device:</p>
<p>Click on Management then device and at the right corner click on (+) add to add a device.</p>
<p><img loading="lazy" class="alignnone wp-image-3519 size-full" src="https://www.osradar.com/wp-content/uploads/2018/05/Add-Device.png" alt="" width="800" height="531" srcset="https://www.osradar.com/wp-content/uploads/2018/05/Add-Device.png 800w, https://www.osradar.com/wp-content/uploads/2018/05/Add-Device-300x199.png 300w, https://www.osradar.com/wp-content/uploads/2018/05/Add-Device-768x510.png 768w, https://www.osradar.com/wp-content/uploads/2018/05/Add-Device-696x462.png 696w, https://www.osradar.com/wp-content/uploads/2018/05/Add-Device-633x420.png 633w" sizes="(max-width: 800px) 100vw, 800px" /></p>
<p><img loading="lazy" class="alignnone wp-image-3520 size-full" src="https://www.osradar.com/wp-content/uploads/2018/05/Add-Device_Router.png" alt="" width="800" height="531" srcset="https://www.osradar.com/wp-content/uploads/2018/05/Add-Device_Router.png 800w, https://www.osradar.com/wp-content/uploads/2018/05/Add-Device_Router-300x199.png 300w, https://www.osradar.com/wp-content/uploads/2018/05/Add-Device_Router-768x510.png 768w, https://www.osradar.com/wp-content/uploads/2018/05/Add-Device_Router-696x462.png 696w, https://www.osradar.com/wp-content/uploads/2018/05/Add-Device_Router-633x420.png 633w" sizes="(max-width: 800px) 100vw, 800px" /></p>
<p>After provide required information at the right bottom corner click on create.</p>
<p><img loading="lazy" class="alignnone wp-image-3521 size-full" src="https://www.osradar.com/wp-content/uploads/2018/05/Add-Device_Router_Create.png" alt="" width="1185" height="480" srcset="https://www.osradar.com/wp-content/uploads/2018/05/Add-Device_Router_Create.png 1185w, https://www.osradar.com/wp-content/uploads/2018/05/Add-Device_Router_Create-300x122.png 300w, https://www.osradar.com/wp-content/uploads/2018/05/Add-Device_Router_Create-768x311.png 768w, https://www.osradar.com/wp-content/uploads/2018/05/Add-Device_Router_Create-1024x415.png 1024w, https://www.osradar.com/wp-content/uploads/2018/05/Add-Device_Router_Create-696x282.png 696w, https://www.osradar.com/wp-content/uploads/2018/05/Add-Device_Router_Create-1068x433.png 1068w, https://www.osradar.com/wp-content/uploads/2018/05/Add-Device_Router_Create-1037x420.png 1037w" sizes="(max-width: 1185px) 100vw, 1185px" /></p>
<p>To create graph: First go to console then click &#8220;Create graphs for your new devices&#8221;.</p>
<p>Select your previous added device then select graph types and then click on save.</p>
<p><img loading="lazy" class="alignnone wp-image-3522 size-full" src="https://www.osradar.com/wp-content/uploads/2018/05/Create_Graph_Start.png" alt="" width="1357" height="273" srcset="https://www.osradar.com/wp-content/uploads/2018/05/Create_Graph_Start.png 1357w, https://www.osradar.com/wp-content/uploads/2018/05/Create_Graph_Start-300x60.png 300w, https://www.osradar.com/wp-content/uploads/2018/05/Create_Graph_Start-768x155.png 768w, https://www.osradar.com/wp-content/uploads/2018/05/Create_Graph_Start-1024x206.png 1024w, https://www.osradar.com/wp-content/uploads/2018/05/Create_Graph_Start-696x140.png 696w, https://www.osradar.com/wp-content/uploads/2018/05/Create_Graph_Start-1068x215.png 1068w" sizes="(max-width: 1357px) 100vw, 1357px" /></p>
<p><img loading="lazy" class="alignnone wp-image-3523 size-full" src="https://www.osradar.com/wp-content/uploads/2018/05/Create_Graph.png" alt="" width="800" height="531" srcset="https://www.osradar.com/wp-content/uploads/2018/05/Create_Graph.png 800w, https://www.osradar.com/wp-content/uploads/2018/05/Create_Graph-300x199.png 300w, https://www.osradar.com/wp-content/uploads/2018/05/Create_Graph-768x510.png 768w, https://www.osradar.com/wp-content/uploads/2018/05/Create_Graph-696x462.png 696w, https://www.osradar.com/wp-content/uploads/2018/05/Create_Graph-633x420.png 633w" sizes="(max-width: 800px) 100vw, 800px" /></p>
<p>Those are very simple ways to you add your network devices for monitoring. You will also get more advance features on cacti to get better monitoring of your network.</p>
<p>Enjoy Cacti Network Monitoring.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-cacti-on-centos-7/">How to install Cacti on Centos 7</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-cacti-on-centos-7/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
