{"id":101,"date":"2011-02-09T15:16:26","date_gmt":"2011-02-09T15:16:26","guid":{"rendered":"http:\/\/gigihfordanama.wordpress.com\/?p=101"},"modified":"2012-08-08T00:14:47","modified_gmt":"2012-08-08T00:14:47","slug":"bandwdith-monitoring-using-cacti-on-freebsd","status":"publish","type":"post","link":"https:\/\/dosen.unila.ac.id\/gigih\/2011\/02\/09\/bandwdith-monitoring-using-cacti-on-freebsd\/","title":{"rendered":"Bandwdith Monitoring using CACTI on FreeBSD"},"content":{"rendered":"<p>Sekelumit tentang pengalaman pribadi ketika meng-install cacti di mesin FreeBSD 6.2 Stable, mudah-mudahan catatan kecil ini bisa bermanfaat .<\/p>\n<ul>\n<li>Admin_Katro# cd \/usr\/ports\/databases\/mysql50-server<br \/>\nAdmin_Katro# make &amp;&amp; make install clean<br \/>\nAdmin_Katro# cd \/usr\/ports\/net-mgmt\/net-snmp4<br \/>\nAdmin_Katro# make &amp;&amp; make install clean<br \/>\nAdmin_Katro# cd \/usr\/ports\/net\/rrdtool<br \/>\nAdmin_Katro# make &amp;&amp; make install clean<br \/>\nAdmin_Katro# cd \/usr\/ports\/www\/apache22<br \/>\nAdmin_Katro# make &amp;&amp; make install clean<br \/>\nAdmin_Katro# cd \/usr\/ports\/lang\/php4<br \/>\nAdmin_Katro# make &amp;&amp; make install clean<br \/>\nAdmin_Katro# cd \/usr\/ports\/lang\/php4-extensions<br \/>\nAdmin_Katro# make &amp;&amp; make install clean<\/li>\n<li>Get The last version of cacti\u00a0 wget <a href=\"http:\/\/cacti.net\/\">http:\/\/cacti.net\/<!--more--><\/a> Extract the distribution tarball.<\/li>\n<\/ul>\n<ol>\n<li>\n<pre><strong>shell&gt; tar xzvf cacti-version.tar.gz <\/strong><\/pre>\n<\/li>\n<li>Create the MySQL database:\n<pre><strong>shell&gt; mysqladmin --user=root create cacti <\/strong>\n<\/pre>\n<\/li>\n<li>\n<pre>Copy cacti to your htmldata \u00a0<strong>shell&gt; cp -rv cacti-version \/usr\/local\/www\/apache22\/data\/<\/strong><\/pre>\n<\/li>\n<li>\n<pre>Go To Your cacti folder <strong>shell&gt; cd\u00a0 \/usr\/local\/www\/apache22\/data\/<\/strong><\/pre>\n<\/li>\n<li>Import the default cacti database:\n<pre><strong>shell&gt; mysql cacti &lt; cacti.sql <\/strong><\/pre>\n<\/li>\n<li>Optional: Create a MySQL username and password for Cacti.\n<pre><strong>shell&gt; mysql --user=root mysql\nmysql&gt; GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'somepassword';\nmysql&gt; flush privileges; <\/strong><\/pre>\n<\/li>\n<li>Edit include\/config.php and specify the MySQL user, password and database for your Cacti configuration.\n<pre><strong>$database_default = \"cacti\";\n$database_hostname = \"localhost\";\n$database_username = \"cactiuser\";\n$database_password = \"cacti\"; <\/strong><\/pre>\n<\/li>\n<li>Set the appropriate permissions on cacti&#8217;s directories for graph\/log generation. You should execute these commands from inside cacti&#8217;s directory to change the permissions.\n<pre><strong>shell&gt; chown -R cactiuser rra\/ log\/ <\/strong><\/pre>\n<p>(Enter a valid username for <strong>cactiuser<\/strong>, this user will also be used in the next step for data gathering.)<\/li>\n<li>Add a line to your <strong>\/etc\/crontab<\/strong> file similar to:\n<pre><strong>*\/5 * * * * cactiuser php \/usr\/local\/www\/apache22\/data\/cacti-version\/poller.php &gt; \/dev\/null 2&gt;&amp;1<\/strong>\n<\/pre>\n<p>Replace <strong>cactiuser<\/strong> with the valid user specified in the previous step.<\/p>\n<p>&nbsp;<\/li>\n<li>Point your web browser to:\n<p><a name=\"AEN131\"><\/a><\/p>\n<blockquote><p><strong>http:\/\/your-server\/cacti-version\/<\/strong><\/p><\/blockquote>\n<\/li>\n<li>Jangan lupa disalah satu langkah install cacti nanti ada opsi untuk mengecek apakah semua \u201cpath binary\u201d dah sesuai atau belum (dah ditemukan atau belum), jika masih ada yg belum ditemukan (\u201dnot found\u201d) silahkan periksa kembali instalasi Anda, mungkin ada step yang terlewatkan, jika semua path binary dah ditemukan (\u201dfound\u201d) silahkan teruskan instalasi hingga finish. Jika instalasi berhasil maka akan muncul form login cacti, untuk pertama kali, silahkan Anda login dengan username = <strong>admin<\/strong> dan password = <strong>admin<\/strong>, setelah itu cacti akan meminta Anda mengubah password Anda.Setelah Anda berhasil login, langakah selanjutnya adalah meng-edit configuration cacti agar menampilkan grafik seperti yang Anda inginkan.<\/li>\n<li>\n<pre>Doneeeeee<\/pre>\n<\/li>\n<li>\n<pre>Contoh  aplikasi yang udah gw jalanain  <a href=\"http:\/\/noc.unila.ac.id\/cacti\/netmon.php\">http:\/\/noc.unila.ac.id\/cacti\/netmon.php<\/a><\/pre>\n<\/li>\n<li>\n<pre>Please Leave A Comment If You are still confuse......\u00a0 Cheerrr<img decoding=\"async\" src=\"http:\/\/unilanet.unila.ac.id\/%7Egigih\/mambots\/editors\/tinymce\/jscripts\/tiny_mce\/plugins\/emotions\/images\/smiley-cool.gif\" border=\"0\" alt=\"Cool\" \/> <img decoding=\"async\" src=\"http:\/\/unilanet.unila.ac.id\/%7Egigih\/mambots\/editors\/tinymce\/jscripts\/tiny_mce\/plugins\/emotions\/images\/smiley-cool.gif\" border=\"0\" alt=\"Cool\" \/><\/pre>\n<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>Sekelumit tentang pengalaman pribadi ketika meng-install cacti di mesin FreeBSD 6.2 Stable, mudah-mudahan catatan kecil ini bisa bermanfaat . Admin_Katro# cd \/usr\/ports\/databases\/mysql50-server Admin_Katro# make &amp;&amp; make install clean Admin_Katro# cd \/usr\/ports\/net-mgmt\/net-snmp4 Admin_Katro# make &amp;&amp; make install clean Admin_Katro# cd \/usr\/ports\/net\/rrdtool Admin_Katro# make &amp;&amp; make install clean Admin_Katro# cd \/usr\/ports\/www\/apache22 Admin_Katro# make &amp;&amp; make install clean &hellip; <a href=\"https:\/\/dosen.unila.ac.id\/gigih\/2011\/02\/09\/bandwdith-monitoring-using-cacti-on-freebsd\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Bandwdith Monitoring using CACTI on FreeBSD&#8221;<\/span><\/a><\/p>\n","protected":false},"author":25,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1348,5],"tags":[],"class_list":["post-101","post","type-post","status-publish","format-standard","hentry","category-kiat-sukses-menjadi-seorang-network-engineer-2","category-old-post-dari-unilanet"],"_links":{"self":[{"href":"https:\/\/dosen.unila.ac.id\/gigih\/wp-json\/wp\/v2\/posts\/101"}],"collection":[{"href":"https:\/\/dosen.unila.ac.id\/gigih\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dosen.unila.ac.id\/gigih\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dosen.unila.ac.id\/gigih\/wp-json\/wp\/v2\/users\/25"}],"replies":[{"embeddable":true,"href":"https:\/\/dosen.unila.ac.id\/gigih\/wp-json\/wp\/v2\/comments?post=101"}],"version-history":[{"count":0,"href":"https:\/\/dosen.unila.ac.id\/gigih\/wp-json\/wp\/v2\/posts\/101\/revisions"}],"wp:attachment":[{"href":"https:\/\/dosen.unila.ac.id\/gigih\/wp-json\/wp\/v2\/media?parent=101"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dosen.unila.ac.id\/gigih\/wp-json\/wp\/v2\/categories?post=101"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dosen.unila.ac.id\/gigih\/wp-json\/wp\/v2\/tags?post=101"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}