<?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>installation guide for cacti Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/installation-guide-for-cacti/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Wed, 26 Feb 2020 08:39:58 +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 and Configure Cacti on Ubuntu 18.04</title>
		<link>https://www.osradar.com/how-to-install-and-configure-cacti-on-ubuntu-18-04/</link>
					<comments>https://www.osradar.com/how-to-install-and-configure-cacti-on-ubuntu-18-04/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Wed, 26 Feb 2020 08:39:55 +0000</pubDate>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Cacti graphics & networking tool]]></category>
		<category><![CDATA[how to install cacti on ubuntu]]></category>
		<category><![CDATA[install cacti on ubuntu 18.04]]></category>
		<category><![CDATA[installation guide for cacti]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=18415</guid>

					<description><![CDATA[<p>Today, we are going to learn that how we can Install Cacti on Ubuntu 18.04. Before proceeding further let&#8217;s have a short introduction on Cacti. Introduction Cacti is a totally open-source network monitoring and graphing tool designed as a front-end software for the industry-trendy information logging tool RRDtool. Cacti harness the Power of RRDtool’s data [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-and-configure-cacti-on-ubuntu-18-04/">How To Install and Configure Cacti on Ubuntu 18.04</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Today, we are going to learn that how we can<a href="https://www.osradar.com/?p=18415"> Install Cacti on Ubuntu 18.04.</a> Before proceeding further let&#8217;s have a short introduction on Cacti.</p>



<h3><strong>Introduction</strong></h3>



<p>Cacti is a totally open-source network monitoring and graphing tool designed as a front-end software for the industry-trendy information logging tool RRDtool. Cacti harness the Power of RRDtool’s data storage and graphing functionality. Some suitable features of Cacti consist of:</p>



<ul><li>Rapid polling of metrics</li><li>Assist for multiple information acquisition strategies</li><li>Support for advanced graph template</li><li>Consumer control functionality with ACL</li></ul>



<p>Cacti offer an intuitive and smooth to use internet interface which may be used for small LAN installations up to complicated networks with lots of servers and networking devices. So, now we are going to start the installation of Cacti on Ubuntu 18.04.</p>



<h3><strong>Step 1: Update &amp; Upgrade Your System</strong></h3>



<p>As usual, we do update &amp; upgrade your Ubuntu 18.04 system to avoid any issues by typing</p>



<pre class="wp-block-verse">sudo apt-get udpate &amp;&amp; sudo apt-get upgrade</pre>



<h3><strong>Step 2: Installing PHP &amp; Extensions</strong></h3>



<p>To install Cacti, we need the help of PHP and some extensions of PHP as they are the important part for the installation of Cacti on Ubuntu 18.04. Just fire the following command to install all of the required tools.</p>



<pre class="wp-block-verse">sudo apt-get -y install php php-mysql php-curl php-net-socket \<br> php-gd php-intl php-pear php-imap php-memcache libapache2-mod-php \<br> php-pspell php-recode php-tidy php-xmlrpc php-snmp \<br> php-mbstring php-gettext php-gmp php-json php-xml php-common</pre>



<p>From the above extensions, the most necessary tools are <strong>php-snmp &amp; php-mysql</strong>. So, double check that all these are installed successfully. After the installation of these tools, check the version of php you&#8217;ve just installed.</p>



<pre class="wp-block-verse">php -v</pre>



<p>Open the file <strong>/etc/php/7.2/apache2/php.ini </strong>and set your correct timezone. You can view the current timezone by typing</p>



<pre class="wp-block-verse">grep date.timezone /etc/php/7.2/apache2/php.ini</pre>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="583" height="61" src="https://www.osradar.com/wp-content/uploads/2020/02/grep-date-time.png" alt="" class="wp-image-18418" srcset="https://www.osradar.com/wp-content/uploads/2020/02/grep-date-time.png 583w, https://www.osradar.com/wp-content/uploads/2020/02/grep-date-time-300x31.png 300w" sizes="(max-width: 583px) 100vw, 583px" /></figure></div>



<h3><strong>Step 3: Installing Apache Server</strong></h3>



<p>Apache is one of the best web server that suits with the Cacti. So, install it by running</p>



<pre class="wp-block-verse">sudo apt-get -y install apache2</pre>



<p>As the installation of Apache done, apply a security configuration to the Apache by permitting Prod ServerTokens only. Open the security.conf file with your favorite editor.</p>



<pre class="wp-block-verse">sudo nano /etc/apache2/conf-enabled/security.conf</pre>



<p>And then change the line 18 to </p>



<pre class="wp-block-verse">ServerTokens Prod</pre>



<p>Allow firewall to open http &amp; https ports if you have enabled ufw.</p>



<pre class="wp-block-verse">ufw allow http<br>ufw allow https</pre>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="387" height="157" src="https://www.osradar.com/wp-content/uploads/2020/02/firewall-rules-cacti.png" alt="" class="wp-image-18419" srcset="https://www.osradar.com/wp-content/uploads/2020/02/firewall-rules-cacti.png 387w, https://www.osradar.com/wp-content/uploads/2020/02/firewall-rules-cacti-300x122.png 300w" sizes="(max-width: 387px) 100vw, 387px" /></figure></div>



<p>Then, restart the Apache service to take effect of the required changes by hitting</p>



<pre class="wp-block-verse">sudo systemctl restart apache2</pre>



<h3><strong>Step 4: Install Database MariaDB</strong></h3>



<p>Make sure that you&#8217;ve already installed MariaDB on your Ubuntu system. If you don&#8217;t know how to install it, then follow the below link to go to the MariaDB installation page first &amp; then continue from here to Install Cacti on Ubunut 18.04.</p>



<p><a href="https://www.osradar.com/install-mariadb-10-4-ubuntu-18-04/">How To Install MariaDB on Ubuntu 18.04</a></p>



<p>After installing the database MariaDB, edit the file <strong>/etc/mysql/mariadb/mariadb.conf</strong>. </p>



<p>And under <strong>[mysqld] </strong>change the following setting to work properly.</p>



<pre class="wp-block-verse">max_heap_table_size=128M<br> tmp_table_size=128M<br> join_buffer_size=64M<br> innodb_buffer_pool_size=512M<br> innodb_doublewrite=OFF<br> innodb_flush_log_at_timeout=3<br> innodb_read_io_threads=32<br> innodb_write_io_threads=16</pre>



<p>Then restart MariaDB services.</p>



<pre class="wp-block-verse">sudo systemctl restart mysql</pre>



<p>As the services restarted , create a new Database for Cacti:</p>



<pre class="wp-block-verse">mysql -u root -p</pre>



<pre class="wp-block-verse">create database cacti;<br>grant all privileges on cacti.* to osradar@'localhost' identified by 'yourpassword';<br>flush privileges;<br>quit;</pre>



<p>After it test the DB connection</p>



<pre class="wp-block-verse">mysql -u osradar -p<br>show databases;</pre>



<figure class="wp-block-image size-large"><img loading="lazy" width="725" height="381" src="https://www.osradar.com/wp-content/uploads/2020/02/mysql-cacti-database.png" alt="" class="wp-image-18417" srcset="https://www.osradar.com/wp-content/uploads/2020/02/mysql-cacti-database.png 725w, https://www.osradar.com/wp-content/uploads/2020/02/mysql-cacti-database-300x158.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/mysql-cacti-database-696x366.png 696w" sizes="(max-width: 725px) 100vw, 725px" /></figure>



<h3><strong>Step 5: Install Cacti on Ubuntu 18.04</strong></h3>



<p>Now, after completing the all requirements needed for the installation of Cacti proceed towards the Cacti installation.<br> As stated earlier, Cacti depends upon <strong>Snmp &amp; rrdtool </strong>tool for its function. So, install them by</p>



<pre class="wp-block-verse">sudo apt-get install snmp snmpd snmp-mibs-downloader rrdtool cacti cacti-spine</pre>



<p>When prompted to choose the web server, select <strong>Apache</strong>.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="710" height="564" src="https://www.osradar.com/wp-content/uploads/2020/02/how-to-install-cacti-on-ubuntu-18.04.png" alt="" class="wp-image-18421" srcset="https://www.osradar.com/wp-content/uploads/2020/02/how-to-install-cacti-on-ubuntu-18.04.png 710w, https://www.osradar.com/wp-content/uploads/2020/02/how-to-install-cacti-on-ubuntu-18.04-300x238.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/how-to-install-cacti-on-ubuntu-18.04-696x553.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/how-to-install-cacti-on-ubuntu-18.04-529x420.png 529w" sizes="(max-width: 710px) 100vw, 710px" /></figure></div>



<p>For Database Configuration, choose the option no for manually configuring as we have already created DB for Cacti. So, choose no </p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="712" height="557" src="https://www.osradar.com/wp-content/uploads/2020/02/configuring-cacti-database.png" alt="" class="wp-image-18422" srcset="https://www.osradar.com/wp-content/uploads/2020/02/configuring-cacti-database.png 712w, https://www.osradar.com/wp-content/uploads/2020/02/configuring-cacti-database-300x235.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/configuring-cacti-database-696x544.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/configuring-cacti-database-537x420.png 537w" sizes="(max-width: 712px) 100vw, 712px" /></figure></div>



<p>Wait for few moments to finish the Installation process &amp; then proceed towards the SNMP configuration.</p>



<h3><strong>Step 6: Configuring SNMP</strong></h3>



<p>Comment the following line mibs: on <strong>/etc/snmp/snmp.conf</strong> file</p>



<p>Change <strong>mibs</strong> to <strong>#mibs</strong></p>



<p>Edit the file <strong>/etc/snmp/snmpd.conf</strong> &amp; go to line 49 to configure the SNMP community name.</p>



<pre class="wp-block-verse">rocommunity OSRadar localhost</pre>



<p>Note:Use your desired name</p>



<p>Disable the community access by commenting the following lines</p>



<pre class="wp-block-verse">Change<br> rocommunity public default -V systemonly<br> rocommunity6 public default -V systemonly<br> To<br> <strong>#rocommunity public default -V systemonly<br> #rocommunity6 public default -V systemonly</strong></pre>



<p>Then restart snmpd services.</p>



<pre class="wp-block-verse">sudo systemctl restart snmpd</pre>



<p>Run the snmpwalk command line tool to validate the snmp configuration as seen below:</p>



<p> sudo snmpwalk -v 2c -c OSRadar localhost system </p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="727" height="567" src="https://www.osradar.com/wp-content/uploads/2020/02/install-cacti-on-ubuntu-18.04-with-snmpd.png" alt="" class="wp-image-18423" srcset="https://www.osradar.com/wp-content/uploads/2020/02/install-cacti-on-ubuntu-18.04-with-snmpd.png 727w, https://www.osradar.com/wp-content/uploads/2020/02/install-cacti-on-ubuntu-18.04-with-snmpd-300x234.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/install-cacti-on-ubuntu-18.04-with-snmpd-696x543.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/install-cacti-on-ubuntu-18.04-with-snmpd-539x420.png 539w" sizes="(max-width: 727px) 100vw, 727px" /></figure></div>



<p>Note: Don&#8217;t forget to change OSRadar with the name of your community string as you entered earlier.</p>



<h3><strong>Step 7: Configuring Cacti Server</strong></h3>



<p>Now, it&#8217;s time to finish the installation of Cacti Server on Ubuntu 18.04. Go to the file <strong>/usr/share/cacti/site/include/config.php</strong></p>



<p>And on line no 49 change the cacti database connection info as highlighted.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="712" height="366" src="https://www.osradar.com/wp-content/uploads/2020/02/change-cacti-setting-.png" alt="" class="wp-image-18425" srcset="https://www.osradar.com/wp-content/uploads/2020/02/change-cacti-setting-.png 712w, https://www.osradar.com/wp-content/uploads/2020/02/change-cacti-setting--300x154.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/change-cacti-setting--696x358.png 696w" sizes="(max-width: 712px) 100vw, 712px" /></figure></div>



<p>Note: Make sure to change the <strong>osradar</strong> user with the user you&#8217;ve created during database creation for Cacti.</p>



<p>Then import the Cacti MySQL database schema</p>



<pre class="wp-block-verse">mysql -u osradar -p cacti &lt;/usr/share/doc/cacti/cacti.sql</pre>



<p><strong>Provide your user name </strong></p>



<p>And setup mysql timezone</p>



<p>Firstly grant Cacti MySQL database user access to Timezone database by</p>



<pre class="wp-block-verse">mysql -u root -p</pre>



<pre class="wp-block-verse">GRANT SELECT ON mysql.time_zone_name TO osradar@localhost;<br>Flush privileges;<br>QUIT;</pre>



<p>And then setup the mysql timezone</p>



<pre class="wp-block-verse">mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root -p mysql </pre>



<h3><strong>Step 8: Finalizing Cacti Installation </strong></h3>



<p>As we&#8217;ve done all the necessary steps to Install &amp; Configure Cacti on our Ubuntu system. So, now we are going to test our Installation. Go to your browser and type <strong>locahost/cacti</strong> or <strong>127.0.0.1/</strong>cacti to finalized our Installation.</p>



<p>Accept the License Agreement and hit <strong>Begin</strong> button.</p>



<p>Then it will verify the requirements if they are okay.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="731" height="540" src="https://www.osradar.com/wp-content/uploads/2020/02/pre-checks-cacti.png" alt="" class="wp-image-18428" srcset="https://www.osradar.com/wp-content/uploads/2020/02/pre-checks-cacti.png 731w, https://www.osradar.com/wp-content/uploads/2020/02/pre-checks-cacti-300x222.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/pre-checks-cacti-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2020/02/pre-checks-cacti-696x514.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/pre-checks-cacti-569x420.png 569w" sizes="(max-width: 731px) 100vw, 731px" /></figure>



<p>Make sure that all requirements are okay.</p>



<p>And then hit &#8220;<strong>Next</strong>&#8220;</p>



<p>Here Select the type of Server, as we are going to Install our first Server so I&#8217;m selecting the Primary Server.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="728" height="543" src="https://www.osradar.com/wp-content/uploads/2020/02/Cacti-Server-as-primary-server.png" alt="" class="wp-image-18429" srcset="https://www.osradar.com/wp-content/uploads/2020/02/Cacti-Server-as-primary-server.png 728w, https://www.osradar.com/wp-content/uploads/2020/02/Cacti-Server-as-primary-server-300x224.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/Cacti-Server-as-primary-server-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2020/02/Cacti-Server-as-primary-server-265x198.png 265w, https://www.osradar.com/wp-content/uploads/2020/02/Cacti-Server-as-primary-server-696x519.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/Cacti-Server-as-primary-server-563x420.png 563w" sizes="(max-width: 728px) 100vw, 728px" /></figure>



<p>Then press <strong>&#8220;Next&#8221;</strong> button.</p>



<p>And check the Directory Permissions.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="734" height="542" src="https://www.osradar.com/wp-content/uploads/2020/02/check-dictonirary-checks.png" alt="" class="wp-image-18430" srcset="https://www.osradar.com/wp-content/uploads/2020/02/check-dictonirary-checks.png 734w, https://www.osradar.com/wp-content/uploads/2020/02/check-dictonirary-checks-300x222.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/check-dictonirary-checks-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2020/02/check-dictonirary-checks-696x514.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/check-dictonirary-checks-569x420.png 569w" sizes="(max-width: 734px) 100vw, 734px" /></figure></div>



<p>After it press &#8220;<strong>Next</strong>&#8220;.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="736" height="540" src="https://www.osradar.com/wp-content/uploads/2020/02/cacti-final-step.png" alt="" class="wp-image-18431" srcset="https://www.osradar.com/wp-content/uploads/2020/02/cacti-final-step.png 736w, https://www.osradar.com/wp-content/uploads/2020/02/cacti-final-step-300x220.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/cacti-final-step-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2020/02/cacti-final-step-696x511.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/cacti-final-step-572x420.png 572w" sizes="(max-width: 736px) 100vw, 736px" /></figure>



<p>Then click on the <strong>Finish</strong> button to finish the installation.</p>



<p>On the next page you&#8217;ll be asked to provide details of username &amp; password. Provide admin  admin in both fields. Then click on login. </p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="729" height="544" src="https://www.osradar.com/wp-content/uploads/2020/02/cacti-dashboard.png" alt="" class="wp-image-18434" srcset="https://www.osradar.com/wp-content/uploads/2020/02/cacti-dashboard.png 729w, https://www.osradar.com/wp-content/uploads/2020/02/cacti-dashboard-300x224.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/cacti-dashboard-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2020/02/cacti-dashboard-265x198.png 265w, https://www.osradar.com/wp-content/uploads/2020/02/cacti-dashboard-696x519.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/cacti-dashboard-563x420.png 563w" sizes="(max-width: 729px) 100vw, 729px" /></figure></div>



<p>For security reasons, you&#8217;ll be asked to change the password. So, choose the stronger password and then click &#8220;<strong>Save</strong>&#8220;.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="728" height="539" src="https://www.osradar.com/wp-content/uploads/2020/02/change-password.png" alt="" class="wp-image-18435" srcset="https://www.osradar.com/wp-content/uploads/2020/02/change-password.png 728w, https://www.osradar.com/wp-content/uploads/2020/02/change-password-300x222.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/change-password-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2020/02/change-password-485x360.png 485w, https://www.osradar.com/wp-content/uploads/2020/02/change-password-696x515.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/change-password-567x420.png 567w" sizes="(max-width: 728px) 100vw, 728px" /></figure></div>



<p>Now, you&#8217;ll be directed to the Cacti Console. </p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="737" height="547" src="https://www.osradar.com/wp-content/uploads/2020/02/cli-cacti.png" alt="" class="wp-image-18436" srcset="https://www.osradar.com/wp-content/uploads/2020/02/cli-cacti.png 737w, https://www.osradar.com/wp-content/uploads/2020/02/cli-cacti-300x223.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/cli-cacti-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2020/02/cli-cacti-265x198.png 265w, https://www.osradar.com/wp-content/uploads/2020/02/cli-cacti-485x360.png 485w, https://www.osradar.com/wp-content/uploads/2020/02/cli-cacti-696x517.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/cli-cacti-566x420.png 566w" sizes="(max-width: 737px) 100vw, 737px" /></figure></div>



<p>Then Navigate to &#8220;<strong>Console&gt;Devices</strong>&#8221; and add a new device to monitor it.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="733" height="538" src="https://www.osradar.com/wp-content/uploads/2020/02/new-device.png" alt="" class="wp-image-18437" srcset="https://www.osradar.com/wp-content/uploads/2020/02/new-device.png 733w, https://www.osradar.com/wp-content/uploads/2020/02/new-device-300x220.png 300w, https://www.osradar.com/wp-content/uploads/2020/02/new-device-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2020/02/new-device-696x511.png 696w, https://www.osradar.com/wp-content/uploads/2020/02/new-device-572x420.png 572w" sizes="(max-width: 733px) 100vw, 733px" /></figure></div>



<p>So, this is how we can Install Cacti on our Ubuntu 18.04.</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-and-configure-cacti-on-ubuntu-18-04/">How To Install and Configure Cacti on Ubuntu 18.04</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-and-configure-cacti-on-ubuntu-18-04/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
