<?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>configure cacti on debian 10 Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/configure-cacti-on-debian-10/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Sat, 07 Mar 2020 21:50:11 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.13</generator>
	<item>
		<title>How To Install Cacti Monitoring Server on Debian 10 with Nginx</title>
		<link>https://www.osradar.com/how-to-install-cacti-monitoring-server-on-debian-10-with-nginx/</link>
					<comments>https://www.osradar.com/how-to-install-cacti-monitoring-server-on-debian-10-with-nginx/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Sat, 07 Mar 2020 21:50:08 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Servers]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[cacti monitoring server on debian]]></category>
		<category><![CDATA[configure cacti on debian 10]]></category>
		<category><![CDATA[how to configure cacti on debian 10]]></category>
		<category><![CDATA[how to install cacti monitoring server on debian 10 with nginx]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=18545</guid>

					<description><![CDATA[<p>Today, we are going to learn that How To Install Cacti Monitoring Server on Debian 10 with Nginx. Cacti is a Monitoring server along with the network graphing solution specially designed to harness the power of RRDTool&#8217;s data storage &#38; graphics functionality. You can find the more about Cacti from any search engine. In short, [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-cacti-monitoring-server-on-debian-10-with-nginx/">How To Install Cacti Monitoring Server on Debian 10 with Nginx</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 To <a href="https://www.osradar.com/?p=18545">Install Cacti Monitoring Server on Debian 10</a> with Nginx. Cacti is a Monitoring server along with the network graphing solution specially designed to harness the power of RRDTool&#8217;s data storage &amp; graphics functionality. You can find the more about Cacti from any search engine. In short, Cacti is well maintained Server for the LAN networks to the complex ones. So, here we we learn that how we can install Cacti on our Debian System.</p>



<h2><strong>Step 1: Update System</strong></h2>



<p>As usual, update your system by </p>



<pre class="wp-block-verse">sudo apt udpate </pre>



<h3><strong>Step 2:Install Required Packages</strong></h3>



<p>Install the dependency packages required for cacti if they are not present before.</p>



<pre class="wp-block-verse">sudo apt install software-properties-common<br>sudo apt install nginx<br>sudo apt install curl vim acl composer fping git graphviz imagemagick mariadb-client mariadb-server mtr-tiny nginx-full python-memcache python-mysqldb snmp snmpd whois php-snmp rrdtool librrds-perl</pre>



<h3><strong>Step 3: Install PHP &amp; PHP extensions</strong></h3>



<p>Type the given command to install PHP &amp; its required extensions</p>



<pre class="wp-block-verse">sudo apt -y install php php-common<br>sudo apt -y install php-cli php-fpm php-json php-pdo php-mysql php-zip php-gd  php-mbstring php-curl php-xml php-pear php-bcmath php-gmp php-ldap</pre>



<h3><strong>Step 4: Database Configuration</strong></h3>



<p>Configure the database as we&#8217;ve installed it in step 2. </p>



<pre class="wp-block-verse">sudo systemctl enable mysql<br>sudo systemctl restart mysql<br>sudo mysql -u root -p</pre>



<p>Create Database &amp; User for Cacti</p>



<p>Create a database with name cacti as the demo data also contain database with cacti name. To make our work easier create with cacti name.</p>



<pre class="wp-block-verse">CREATE DATABASE cacti;<br>CREATE USER 'cactiuser'@'localhost' IDENTIFIED BY '<strong>Your_password</strong>';<br>GRANT ALL PRIVILEGES ON cacti.* TO 'cactiuser'@'localhost';<br>FLUSH PRIVILEGES;<br>EXIT</pre>



<p>Now, give the Cacti user access to the MySQL Timezone Database.</p>



<pre class="wp-block-verse">sudo mysql -u root -p mysql &lt; /usr/share/mysql/mysql_test_data_timezone.sql</pre>



<p>Then login to the MariaDB</p>



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



<p>Give Permissions to the cacti user.</p>



<pre class="wp-block-verse">GRANT SELECT ON mysql.time_zone_name TO cactiuser@localhost;<br> ALTER DATABASE cacti CHARACTER SET = 'utf8mb4'  COLLATE = 'utf8mb4_unicode_ci'<br> flush privileges;<br> exit</pre>



<p>Then open the below file &amp; scroll to the <strong>[mysqld] </strong>section </p>



<pre class="wp-block-verse">sudo vim /etc/mysql/mariadb.conf.d/50-server.cnf</pre>



<p>And then do the changes as below:</p>



<pre class="wp-block-verse">[mysqld]<br> ……..<br> collation-server = utf8mb4_unicode_ci<br> character-set-server  = utf8mb4<br> max_heap_table_size = 128M<br> tmp_table_size = 64M<br> join_buffer_size = 64M<br> innodb_file_format = Barracuda<br> innodb_large_prefix = 1<br> innodb_buffer_pool_size = 1GB<br> innodb_buffer_pool_instances = 10<br> innodb_flush_log_at_timeout = 3<br> innodb_read_io_threads = 32<br> innodb_write_io_threads = 16<br> innodb_io_capacity = 5000<br> innodb_io_capacity_max = 10000</pre>



<p>After it restart the MariaDB services.</p>



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



<h3><strong>Step 5: Configuring PHP FPM</strong></h3>



<p>Change the timezone to your&#8217;s in <strong>php.ini</strong> file.</p>



<pre class="wp-block-verse">sudo nano /etc/php/7.3/fpm/php.ini</pre>



<p>Scroll to the <strong>[Date]</strong> section &amp; add your timezone without comment.</p>



<pre class="wp-block-verse">sudo nano /etc/php/7.3/cli/php.ini</pre>



<p>Here also set the above timezone.</p>



<p>And then restart PHP-FPM services</p>



<pre class="wp-block-verse">sudo systemctl restart php7.3-fpm</pre>



<h3><strong>Step 6: Configuring Nginx Server</strong></h3>



<p>Nginx web server is the recommended one. You can choose your desired one. As we&#8217;ve selected the Nginx so we&#8217;ll go through its configuration.</p>



<p>First of all remove the default page of Nginx</p>



<pre class="wp-block-verse">sudo rm /etc/nginx/sites-enabled/default</pre>



<p>Then create a new file </p>



<pre class="wp-block-verse">sudo nano /etc/nginx/conf.d/cacticonfig.conf</pre>



<p>And add the below content.</p>



<pre class="wp-block-verse">server {<br>  listen      80;<br>  server_name <a href="http://osradar.com">example.com</a>;<br>  root        /var/www/html;<br>  index       index.php;<br>  access_log  /var/www/html/log/cactiacess.log;<br>  error_log   /var/www/html/log/cacti.log;<br>  charset utf-8;<br>  gzip on;<br>  gzip_types text/css application/javascript text/javascript application/x-javascript image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon;<br>  location / {<br>    try_files $uri $uri/ /index.php?$query_string;<br>   }<br>   location /api/v0 {<br>    try_files $uri $uri/ /api_v0.php?$query_string;<br>   }<br>   location ~ .php {<br>    include fastcgi.conf;<br>    fastcgi_split_path_info ^(.+.php)(/.+)$;<br>    fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;<br>   }<br>   location ~ /.ht {<br>    deny all;<br>   }<br>  } </pre>



<p>Restart the Nginx services.</p>



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



<h3><strong>Step 7: Installing Cacti</strong></h3>



<p>Go to the latest Cacti release &amp; download it</p>



<pre class="wp-block-verse">curl -O https://www.cacti.net/downloads/cacti-latest.tar.gz</pre>



<p>Extract the downloaded package</p>



<pre class="wp-block-verse">tar -zxvf cacti-latest.tar.gz</pre>



<p>Then move the files to the web root directory &amp; then change the name of the directory.</p>



<pre class="wp-block-verse">sudo mv cacti-1* /var/www/html/<br>sudo mv /var/www/html/cacti-*/ /var/www/html/cacti</pre>



<p>After it change the ownership</p>



<pre class="wp-block-verse">sudo chown -R www-data:www-data /var/www/html</pre>



<p>Now, import the default Cacti Data.</p>



<pre class="wp-block-verse">sudo mysql -u root -p cacti &lt; /var/www/html/cacti/cacti.sql</pre>



<p>Edit the Cacti Configuration file </p>



<pre class="wp-block-verse">sudo vim /var/www/html/cacti/include/config.php</pre>



<p>And set the database info.</p>



<pre class="wp-block-verse">$database_type = "mysql";<br> $database_default = "cacti";<br> $database_hostname = "localhost";<br> $database_username = "cactiuser";<br> $database_password = "your_password"; <br> $database_port = "3306";<br> $database_ssl = false;</pre>



<p>Replace the username <strong>cactiuser</strong> &amp; <strong>password</strong> with your&#8217;s.</p>



<p>After it restart the nginx.</p>



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



<h3><strong>Step 8: Edit crontab file</strong></h3>



<p>Edit the crontab file and add the following to it.</p>



<pre class="wp-block-verse">$ sudo nano /etc/cron.d/cacti<br> */5 * * * * www-data php /var/www/html/cacti/poller.php &gt; /dev/null 2&gt;&amp;1</pre>



<h3><strong>Step 9: Cacti Dashboard</strong></h3>



<p>Go to the web installer &amp; follow the instructions by visiting<strong> http://IP</strong></p>



<p>Enter the default credentials as <strong>admin</strong> for username &amp; password.</p>



<figure class="wp-block-image size-large"><img loading="lazy" width="694" height="380" src="https://www.osradar.com/wp-content/uploads/2020/03/1-2.png" alt="how to install cacti monitoring server on debian 10 with nginx" class="wp-image-18900" srcset="https://www.osradar.com/wp-content/uploads/2020/03/1-2.png 694w, https://www.osradar.com/wp-content/uploads/2020/03/1-2-300x164.png 300w" sizes="(max-width: 694px) 100vw, 694px" /></figure>



<p>Change your password to stay secure.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="693" height="407" src="https://www.osradar.com/wp-content/uploads/2020/03/2-3.png" alt="install cacti monitoring server on debian 10 with nginx" class="wp-image-18901" srcset="https://www.osradar.com/wp-content/uploads/2020/03/2-3.png 693w, https://www.osradar.com/wp-content/uploads/2020/03/2-3-300x176.png 300w" sizes="(max-width: 693px) 100vw, 693px" /></figure></div>



<p>Accept the Licence Agreement &amp; click on <strong>Begin</strong>.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="771" height="573" src="https://www.osradar.com/wp-content/uploads/2020/03/3-3.png" alt="install cacti monitoring server" class="wp-image-18902" srcset="https://www.osradar.com/wp-content/uploads/2020/03/3-3.png 771w, https://www.osradar.com/wp-content/uploads/2020/03/3-3-300x223.png 300w, https://www.osradar.com/wp-content/uploads/2020/03/3-3-768x571.png 768w, https://www.osradar.com/wp-content/uploads/2020/03/3-3-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2020/03/3-3-265x198.png 265w, https://www.osradar.com/wp-content/uploads/2020/03/3-3-485x360.png 485w, https://www.osradar.com/wp-content/uploads/2020/03/3-3-696x517.png 696w, https://www.osradar.com/wp-content/uploads/2020/03/3-3-565x420.png 565w" sizes="(max-width: 771px) 100vw, 771px" /></figure></div>



<p>Choose the mode as dark or default &amp; hit <strong>Begin</strong>.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="698" height="541" src="https://www.osradar.com/wp-content/uploads/2020/03/4.png" alt="accept license agreement  cacti monitoring server" class="wp-image-18903" srcset="https://www.osradar.com/wp-content/uploads/2020/03/4.png 698w, https://www.osradar.com/wp-content/uploads/2020/03/4-300x233.png 300w, https://www.osradar.com/wp-content/uploads/2020/03/4-696x539.png 696w, https://www.osradar.com/wp-content/uploads/2020/03/4-542x420.png 542w" sizes="(max-width: 698px) 100vw, 698px" /></figure></div>



<p>If all the requirements are properly configured you&#8217;ll see the following screen. Then click <strong>Next</strong> if all gives a green thumbs up.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="697" height="542" src="https://www.osradar.com/wp-content/uploads/2020/03/5-2.png" alt="cacti monitoring server on debian 10" class="wp-image-18904" srcset="https://www.osradar.com/wp-content/uploads/2020/03/5-2.png 697w, https://www.osradar.com/wp-content/uploads/2020/03/5-2-300x233.png 300w, https://www.osradar.com/wp-content/uploads/2020/03/5-2-540x420.png 540w" sizes="(max-width: 697px) 100vw, 697px" /></figure></div>



<p>Click <strong>Next</strong>.</p>



<p>Select your Installation type &amp; hit <strong>Next</strong>.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="694" height="536" src="https://www.osradar.com/wp-content/uploads/2020/03/6-1.png" alt="cacti monitoring server" class="wp-image-18905" srcset="https://www.osradar.com/wp-content/uploads/2020/03/6-1.png 694w, https://www.osradar.com/wp-content/uploads/2020/03/6-1-300x232.png 300w, https://www.osradar.com/wp-content/uploads/2020/03/6-1-544x420.png 544w" sizes="(max-width: 694px) 100vw, 694px" /></figure></div>



<p>After Directory Permissions checks. Hit <strong>Next</strong>.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="697" height="534" src="https://www.osradar.com/wp-content/uploads/2020/03/7.png" alt="cacti monitoring server with nginx" class="wp-image-18906" srcset="https://www.osradar.com/wp-content/uploads/2020/03/7.png 697w, https://www.osradar.com/wp-content/uploads/2020/03/7-300x230.png 300w, https://www.osradar.com/wp-content/uploads/2020/03/7-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2020/03/7-548x420.png 548w" sizes="(max-width: 697px) 100vw, 697px" /></figure></div>



<p>Click <strong>Next</strong> to accept the directories to store the binary files of cacti.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="692" height="537" src="https://www.osradar.com/wp-content/uploads/2020/03/8.png" alt="how to install cacti on debian 10" class="wp-image-18907" srcset="https://www.osradar.com/wp-content/uploads/2020/03/8.png 692w, https://www.osradar.com/wp-content/uploads/2020/03/8-300x233.png 300w, https://www.osradar.com/wp-content/uploads/2020/03/8-541x420.png 541w" sizes="(max-width: 692px) 100vw, 692px" /></figure></div>



<p>And then read the Statement carefully &amp; proceed to <strong>Next</strong>.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="695" height="532" src="https://www.osradar.com/wp-content/uploads/2020/03/9.png" alt="how to configure cacti monitoring server on debian 10 with nginx" class="wp-image-18908" srcset="https://www.osradar.com/wp-content/uploads/2020/03/9.png 695w, https://www.osradar.com/wp-content/uploads/2020/03/9-300x230.png 300w, https://www.osradar.com/wp-content/uploads/2020/03/9-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2020/03/9-549x420.png 549w" sizes="(max-width: 695px) 100vw, 695px" /></figure></div>



<p></p>



<p>Select default profiles for poller &amp; networks.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="693" height="532" src="https://www.osradar.com/wp-content/uploads/2020/03/10.png" alt="cacti monitoring server" class="wp-image-18909" srcset="https://www.osradar.com/wp-content/uploads/2020/03/10.png 693w, https://www.osradar.com/wp-content/uploads/2020/03/10-300x230.png 300w, https://www.osradar.com/wp-content/uploads/2020/03/10-80x60.png 80w, https://www.osradar.com/wp-content/uploads/2020/03/10-547x420.png 547w" sizes="(max-width: 693px) 100vw, 693px" /></figure></div>



<p>Select the templates &amp; click <strong>Next</strong>.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="694" height="541" src="https://www.osradar.com/wp-content/uploads/2020/03/16.png" alt="" class="wp-image-18912" srcset="https://www.osradar.com/wp-content/uploads/2020/03/16.png 694w, https://www.osradar.com/wp-content/uploads/2020/03/16-300x234.png 300w, https://www.osradar.com/wp-content/uploads/2020/03/16-539x420.png 539w" sizes="(max-width: 694px) 100vw, 694px" /></figure></div>



<p>It will do the Configuration checks. When finished, just hit <strong>Next</strong>.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="694" height="540" src="https://www.osradar.com/wp-content/uploads/2020/03/15.png" alt="" class="wp-image-18913" srcset="https://www.osradar.com/wp-content/uploads/2020/03/15.png 694w, https://www.osradar.com/wp-content/uploads/2020/03/15-300x233.png 300w, https://www.osradar.com/wp-content/uploads/2020/03/15-540x420.png 540w" sizes="(max-width: 694px) 100vw, 694px" /></figure></div>



<p>Now, confirm the installation by checking the radio button &amp; then click on <strong>Install</strong> to start the Installation process.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="694" height="535" src="https://www.osradar.com/wp-content/uploads/2020/03/14.png" alt="" class="wp-image-18914" srcset="https://www.osradar.com/wp-content/uploads/2020/03/14.png 694w, https://www.osradar.com/wp-content/uploads/2020/03/14-300x231.png 300w, https://www.osradar.com/wp-content/uploads/2020/03/14-545x420.png 545w" sizes="(max-width: 694px) 100vw, 694px" /></figure></div>



<p>Wait until Installation is complete.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="694" height="539" src="https://www.osradar.com/wp-content/uploads/2020/03/13.png" alt="" class="wp-image-18915" srcset="https://www.osradar.com/wp-content/uploads/2020/03/13.png 694w, https://www.osradar.com/wp-content/uploads/2020/03/13-300x233.png 300w, https://www.osradar.com/wp-content/uploads/2020/03/13-541x420.png 541w" sizes="(max-width: 694px) 100vw, 694px" /></figure></div>



<p>When done, do refresh the page &amp; you&#8217;ll see the login page. Provide your username &amp; password to go to the dashboard.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="584" height="461" src="https://www.osradar.com/wp-content/uploads/2020/03/12-1.png" alt="" class="wp-image-18916" srcset="https://www.osradar.com/wp-content/uploads/2020/03/12-1.png 584w, https://www.osradar.com/wp-content/uploads/2020/03/12-1-300x237.png 300w, https://www.osradar.com/wp-content/uploads/2020/03/12-1-532x420.png 532w" sizes="(max-width: 584px) 100vw, 584px" /></figure></div>



<p>You are here to the dashboard. </p>



<div class="wp-block-image"><figure class="aligncenter size-large"><img loading="lazy" width="1023" height="381" src="https://www.osradar.com/wp-content/uploads/2020/03/11.png" alt="cacti monitoring server" class="wp-image-18910" srcset="https://www.osradar.com/wp-content/uploads/2020/03/11.png 1023w, https://www.osradar.com/wp-content/uploads/2020/03/11-300x112.png 300w, https://www.osradar.com/wp-content/uploads/2020/03/11-768x286.png 768w, https://www.osradar.com/wp-content/uploads/2020/03/11-696x259.png 696w" sizes="(max-width: 1023px) 100vw, 1023px" /></figure></div>



<p>So, that&#8217;s how we have Installed &amp; Configured Cacti Server on Debian 10.</p>



<p></p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-cacti-monitoring-server-on-debian-10-with-nginx/">How To Install Cacti Monitoring Server on Debian 10 with Nginx</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-monitoring-server-on-debian-10-with-nginx/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
