{"id":2411,"date":"2016-08-01T00:00:12","date_gmt":"2016-08-01T07:00:12","guid":{"rendered":"http:\/\/192.168.3.4\/?p=2411"},"modified":"2018-01-09T06:50:18","modified_gmt":"2018-01-09T14:50:18","slug":"installing-cacti-on-a-raspberry-pi","status":"publish","type":"post","link":"https:\/\/www.cloudacm.com\/?p=2411","title":{"rendered":"Installing Cacti on a Raspberry Pi"},"content":{"rendered":"<p>Here is some Background before we get started.<\/p>\n<p>I had originally posted about setting up Cacti on the Raspberry Pi a few posts back.\u00a0 Since there was plenty of on line tutorials, I just made references to sites that have since changed their content.\u00a0 When I returned to the subject recently, I found that the steps were plagued with antiquated commands<\/p>\n<p>Ultimately, I was able to find the compile a list of commands that will help you get Cacti operational with minimal effort.\u00a0 The fundamentals should already be in place.\u00a0 If not, these are the steps:<\/p>\n<ol>\n<li>Linux &#8211; Raspberry Pi with running Operating System<\/li>\n<\/ol>\n<ol start=\"2\">\n<li>Apache \u2013 Web services for Linux<\/li>\n<\/ol>\n<pre>sudo apt-get install apache2 -y<\/pre>\n<ol start=\"3\">\n<li>MySQL \u2013 Database back end for Cacti<\/li>\n<\/ol>\n<pre>sudo apt-get install mysql-server php-mysql -y<\/pre>\n<ol start=\"4\">\n<li>PHP \u2013 The scripting language that ties the database to web front end.<\/li>\n<\/ol>\n<pre>sudo apt-get install php libapache2-mod-php -y<\/pre>\n<ol start=\"5\">\n<li>PhpMyAdmin \u2013 Useful, but not essential.<\/li>\n<\/ol>\n<pre>sudo apt-get install phpmyadmin\r\nsudo nano \/etc\/apache2\/apache2.conf<\/pre>\n<p>Insert text<br \/>\n<em>Include \/etc\/phpmyadmin\/apache.conf<\/em><\/p>\n<pre>sudo chown -R www-data:www-data \/usr\/share\/phpmyadmin\r\nsudo chown -R www-data:www-data \/var\/lib\/phpmyadmin\r\nsudo chown -R www-data:www-data \/etc\/phpmyadmin\r\nsudo apt install php-gettext\r\nsudo nano \/etc\/php\/7.0\/apache2\/php.ini<\/pre>\n<p>Modified text<br \/>\n<em>upload_max_filesize = 200M<br \/>\npost_max_size = 200M<\/em><\/p>\n<p>I had done this earlier when setting up the WordPress Sandbox on the Raspberry Pi.\u00a0 So here is the simplified install of Cacti on the Raspberry Pi.<\/p>\n<ol>\n<li>Cacti Dependencies \u2013 these are fundamentals for Cacti to work.<\/li>\n<\/ol>\n<pre>sudo apt-get install mysql-client php-snmp php-gd php-ldap rrdtool snmp snmpd -y<\/pre>\n<p>This took a while to install and prompted me to keep my changes to the modified php.ini file I had done in step 5 above.\u00a0 Next was the actual install of Cacti.<\/p>\n<ol start=\"2\">\n<li>Cacti Installation<\/li>\n<\/ol>\n<pre>sudo apt-get install -y cacti<\/pre>\n<p>The install prompts to configure Cacti, I used dbconfig-common to configure my database.\u00a0 Next, I entered the MySQL root password and set my web server option to Apache2.\u00a0 Now Cacti should be accessible from the web link, http:\/\/raspberrypiip\/cacti.\u00a0 The Cacti Installation Guide should appear.<\/p>\n<p><a href=\"http:\/\/192.168.3.4\/wp-content\/uploads\/2016\/08\/CactiInstall_01.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-2418\" src=\"http:\/\/192.168.3.4\/wp-content\/uploads\/2016\/08\/CactiInstall_01.png\" alt=\"CactiInstall_01\" width=\"514\" height=\"412\" srcset=\"https:\/\/www.cloudacm.com\/wp-content\/uploads\/2016\/08\/CactiInstall_01.png 514w, https:\/\/www.cloudacm.com\/wp-content\/uploads\/2016\/08\/CactiInstall_01-300x240.png 300w, https:\/\/www.cloudacm.com\/wp-content\/uploads\/2016\/08\/CactiInstall_01-337x270.png 337w\" sizes=\"auto, (max-width: 514px) 100vw, 514px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Press the Next &gt;&gt; button.<\/p>\n<p><a href=\"http:\/\/192.168.3.4\/wp-content\/uploads\/2016\/08\/CactiInstall_02.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-2421\" src=\"http:\/\/192.168.3.4\/wp-content\/uploads\/2016\/08\/CactiInstall_02.png\" alt=\"CactiInstall_02\" width=\"515\" height=\"264\" srcset=\"https:\/\/www.cloudacm.com\/wp-content\/uploads\/2016\/08\/CactiInstall_02.png 515w, https:\/\/www.cloudacm.com\/wp-content\/uploads\/2016\/08\/CactiInstall_02-300x154.png 300w\" sizes=\"auto, (max-width: 515px) 100vw, 515px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Select new install then press next.<\/p>\n<p><a href=\"http:\/\/192.168.3.4\/wp-content\/uploads\/2016\/08\/CactiInstall_03.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-2425\" src=\"http:\/\/192.168.3.4\/wp-content\/uploads\/2016\/08\/CactiInstall_03.png\" alt=\"CactiInstall_03\" width=\"519\" height=\"802\" srcset=\"https:\/\/www.cloudacm.com\/wp-content\/uploads\/2016\/08\/CactiInstall_03.png 519w, https:\/\/www.cloudacm.com\/wp-content\/uploads\/2016\/08\/CactiInstall_03-194x300.png 194w, https:\/\/www.cloudacm.com\/wp-content\/uploads\/2016\/08\/CactiInstall_03-175x270.png 175w\" sizes=\"auto, (max-width: 519px) 100vw, 519px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>The dependencies will be validated and if no errors occur, press Finish.<\/p>\n<p><a href=\"http:\/\/192.168.3.4\/wp-content\/uploads\/2016\/08\/CactiInstall_04.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-2428\" src=\"http:\/\/192.168.3.4\/wp-content\/uploads\/2016\/08\/CactiInstall_04.png\" alt=\"CactiInstall_04\" width=\"415\" height=\"257\" srcset=\"https:\/\/www.cloudacm.com\/wp-content\/uploads\/2016\/08\/CactiInstall_04.png 415w, https:\/\/www.cloudacm.com\/wp-content\/uploads\/2016\/08\/CactiInstall_04-300x186.png 300w\" sizes=\"auto, (max-width: 415px) 100vw, 415px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Login with the username admin and the password admin.\u00a0 You&#8217;ll be prompted to change it.\u00a0 Once that is done, you should be in the console view of Cacti, congratulations!<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here is some Background before we get started. I had originally posted about setting up Cacti on the Raspberry Pi a few posts back.\u00a0 Since there was plenty of on line tutorials, I just made references to sites that have since changed their content.\u00a0 When I returned to the subject recently, I found that the steps were plagued with antiquated commands Ultimately, I was able to find the compile a list of commands that will help you get Cacti operational&#8230;<\/p>\n<p class=\"read-more\"><a class=\"btn btn-default\" href=\"https:\/\/www.cloudacm.com\/?p=2411\"> Read More<span class=\"screen-reader-text\">  Read More<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-2411","post","type-post","status-publish","format-standard","hentry","category-rd"],"_links":{"self":[{"href":"https:\/\/www.cloudacm.com\/index.php?rest_route=\/wp\/v2\/posts\/2411","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cloudacm.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cloudacm.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cloudacm.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cloudacm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2411"}],"version-history":[{"count":26,"href":"https:\/\/www.cloudacm.com\/index.php?rest_route=\/wp\/v2\/posts\/2411\/revisions"}],"predecessor-version":[{"id":2483,"href":"https:\/\/www.cloudacm.com\/index.php?rest_route=\/wp\/v2\/posts\/2411\/revisions\/2483"}],"wp:attachment":[{"href":"https:\/\/www.cloudacm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2411"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cloudacm.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2411"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cloudacm.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2411"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}