{"id":204,"date":"2005-06-05T16:13:58","date_gmt":"2005-06-05T21:13:58","guid":{"rendered":"http:\/\/192.168.33.66\/wp\/?p=204"},"modified":"2005-06-05T16:13:58","modified_gmt":"2005-06-05T21:13:58","slug":"install-cacti-on-redhat-9","status":"publish","type":"post","link":"http:\/\/www.wildow.com\/blog\/?p=204","title":{"rendered":"install cacti on redhat 9"},"content":{"rendered":"<p>How to:<\/p>\n<p>1. install redhat<br \/>\n2. select server<br \/>\n3. pick following options<br \/>\n   web server<br \/>\n   mail server<br \/>\n   php mysql is selected<br \/>\n   sql server make sure mysql is checked<br \/>\n<!--more--><\/p>\n<p>after redhat is installed do the following;<br \/>\n1. install webmin  1.200-1<br \/>\n[root@yourhost \/tmp]# gunzip webmin-1.200.tar.gz<br \/>\n[root@yourhost \/tmp]# tar xf webmin-1.200.tar<br \/>\n[root@yourhost \/tmp]# cd webmin-1.200<br \/>\n[root@yourhost \/tmp\/webmin-1.200]# .\/setup.sh \/usr\/local\/webmin<\/p>\n<p>\n2. install rrdtool 1.0.33<br \/>\nmake<br \/>\nmake install<\/p>\n<p>using webmin install the following under packages  use rpmfind<br \/>\n1. net-snmp-utils\t\tnet-snmp-utils 5.0.9-2.90.1<br \/>\n2. net-snmp\t\t\tnet-snmp 5.0.9-2.90.1<br \/>\n3. php-snmp\t\t\tphp-snmp 4.2.2-17<\/p>\n<p>4. if mysql did not get installed   mysql 3.23.54a-11<br \/>\n\tperl(CGI) is needed by mysql-3.23.54a-11<br \/>\n\tperl-DBD-MySQL perl-DBD-MySQL 2.1021-3<br \/>\nmysql-server-3.23.54a-11.i386.rpm<br \/>\nphp-mysql 4.2.2-17<\/p>\n<p>&#8220;mysql_setpermission&#8221; <\/p>\n<p>\nmake sure the following is running<br \/>\nsshd<br \/>\nmysqld<br \/>\napached<\/p>\n<p>install cacti-0.8.6d.tar.gz  put in \/var\/www\/html directory<br \/>\ndo a tar zxvf cacti-0.8.6d.tar.gz<br \/>\nrename directory to cacti<\/p>\n<p>   1.<\/p>\n<p>      Extract the distribution tarball.<\/p>\n<p>shell> tar xzvf cacti-version.tar.gz<\/p>\n<p>   2.<\/p>\n<p>      Create the MySQL database:<\/p>\n<p>shell> mysqladmin &#8211;user=root create cacti<\/p>\n<p>   3.<\/p>\n<p>      Import the default cacti database:<\/p>\n<p>shell> mysql cacti < cacti.sql\n\n\n   4.\n\n\n      Optional: Create a MySQL username and password for Cacti.\n\n\nshell> mysql &#8211;user=root mysql<br \/>\nmysql> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY &#8216;somepassword&#8217;;<br \/>\nmysql> flush privileges;<\/p>\n<p>   5.<\/p>\n<p>      Edit include\/config.php and specify the MySQL user, password and database for your Cacti configuration.<\/p>\n<p>$database_default = &#8220;cacti&#8221;;<br \/>\n$database_hostname = &#8220;localhost&#8221;;<br \/>\n$database_username = &#8220;cactiuser&#8221;;<br \/>\n$database_password = &#8220;cacti&#8221;;<\/p>\n<p>   6.<\/p>\n<p>      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.<\/p>\n<p>shell> chown -R cactiuser rra\/ log\/<\/p>\n<p>      (Enter a valid username for cactiuser, this user will also be used in the next step for data gathering.)<br \/>\n   7.<\/p>\n<p>      Add a line to your \/etc\/crontab file similar to:<\/p>\n<p>*\/5 * * * * cactiuser php \/var\/www\/html\/cacti\/poller.php > \/dev\/null 2>&#038;1<\/p>\n<p>      Replace cactiuser with the valid user specified in the previous step.<\/p>\n<p>      Replace \/var\/www\/html\/cacti\/ with your full Cacti path.<br \/>\n   8.<\/p>\n<p>      Point your web browser to:<\/p>\n<p>          http:\/\/your-server\/cacti\/<\/p>\n<p>      Log in the with a username\/password of admin. You will be required to change this password immediately. Make sure to fill in all of the path variables carefully and correctly on the following screen.<\/p>\n<p>I quickly fixed it by uncommenting extension=mysql.so in my php.ini file.<\/p>\n<p>i forgot to add the &#8220;extension=mysql.so&#8221; line to the \/etc\/php4\/cli\/php.ini<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to: 1. install redhat 2. select server 3. pick following options web server mail server php mysql is selected sql server make sure mysql is checked<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-204","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/204","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=204"}],"version-history":[{"count":0,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/204\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=204"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=204"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.wildow.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}