Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


[HOWTO] Redhat 9.0 Cacti Install Guide

 
Post new topic   Reply to topic    Cacti Forum Index -> Informational/HOWTO's
Author Message
Mach



Joined: 21 Jul 2003
Posts: 17
Location: Portland Oregon

PostPosted: Fri Jul 25, 2003 6:46 pm    Post subject: [HOWTO] Redhat 9.0 Cacti Install Guide Reply with quote

Please post here if there are any mistake or if something is wrong. I typed this up real quick. Hopefully it will help a few people. If there is anything I should add post here and I'll edit it.

Thx


Cacti Redhat 9.0 Install Guide

1. Install Redhat 9.0 on a box. To makes thing easier to do select to install mysql sever.

2. Once Redhat is install download the following:
a. Cacti : http://www.raxnet.net/products/cacti/download_cacti.php
b. RRDtool : http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/
c. GCC - 3.2.2-5.rpm : http://linux.engineering.uiowa.edu/redhat/os/redhat-9.0-en/i386/RedHat/RPMS/
d. GCC - C++-3.2.2-5.rpm: http://linux.engineering.uiowa.edu/redhat/os/redhat-9.0-en/i386/RedHat/RPMS/
e. Make-3.79.2-17.rpm : http://linux.engineering.uiowa.edu/redhat/os/redhat-9.0-en/i386/RedHat/RPMS/
f. Mysql-3.23.56-1.9.rpm: http://linux.engineering.uiowa.edu/redhat/os/redhat-9.0-en/i386/RedHat/RPMS/
g. mysql-server-3.23.56-1.9. rpm : http://linux.engineering.uiowa.edu/redhat/os/redhat-9.0-en/i386/RedHat/RPMS/
h. php-4.2.2. rpm : http://linux.engineering.uiowa.edu/redhat/os/redhat-9.0-en/i386/RedHat/RPMS/
i. php-mysql-4.2.2.rpm : http://linux.engineering.uiowa.edu/redhat/os/redhat-9.0-en/i386/RedHat/RPMS/
j. php-snmp-4.2.2.rpm : http://linux.engineering.uiowa.edu/redhat/os/redhat-9.0-en/i386/RedHat/RPMS/

Note: All of these may not be required, but thats what worked out all my problems.

3. Once you have all the rpm's downloaded install them using this command: rpm -i 'filename'
If you run into problems installing the rpms you can do rpm -i --force 'filename' to force the install.
rpm -q file - will display the current version of the rpm installed. Rpm -e 'filename' will remove the rpm.

4. Once all the rpms are install go ahead and unzip Cacti and RRDtool. Use the following command: tar -zxvf 'filename'

5. Follow the instructions that come with RRDtool to install RRDtool.

6.Follow the instructions that come with Cacti to install Cacti.

7. Create a new user account called 'cactiuser' on your box.

8. Once you have RRDtool and cacti installed do the following:
a. Go into the directory where you have cacti - usually /var/www/html/cacti
b. Once there create the mysql database:
shell> mysqladmin --user=root create cacti
shell> mysql cacti < cacti.sql (you must be in the cacti DIR or you will get an error saying cacti.sql not found.)

shell> mysql --uer=root mysql

mysql> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'somepassword';

mysql> flush privileges;

9. Edit the config.php file. Located in the cacti/include directory.
Change the database name, house, username, password as you specified above.

$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cactiuser";
$database_password = "cacti";

10. As root change the permissions the /rra and /log Directories.

shell> chown cactiuser rra/ log/

11. Change user to the user account cactiuser that you created in step 7.

12. Create a crontab which will run the cmd.php every five mintues.

shell > crontab -e
Then press 'insert' on the keyboard - this allows you to type.
*/5 * * * * cactiuser php /var/www/html/cacti/cmd.php > /dev/null 2>&1
Then press ESC - this remove your typing capability.
press: Shift ZZ - this will save and exit the crontab.

13.Point your web browser to and follow the directions:

http://your-server/cacti/
Back to top
egarnel
Cacti Pro User


Joined: 21 Nov 2002
Posts: 630
Location: Austin, TX

PostPosted: Tue Aug 05, 2003 3:27 pm    Post subject: excellent howto Reply with quote

Excuse me if I missed this, but net-snmp should be installed as well, or ucd-snmp for that matter
Back to top
ggg
Guest





PostPosted: Thu Aug 07, 2003 11:32 am    Post subject: Reply with quote

your right netsnmp rpm should be installed.

now if I could edit my god damn posts without getting invalid session I would, but I'm going to stop posting here because invaild session error is pissing me off. I lose everything I type. GRRRRRRRRR
Back to top
argon0
Guest





PostPosted: Fri Mar 12, 2004 7:30 am    Post subject: can you use rpm? Reply with quote

Can you just use the Cacti RPM from the site to install to the default location?
Back to top
Argon0
Guest





PostPosted: Fri Mar 12, 2004 1:19 pm    Post subject: Cacti INstall problems! Reply with quote

hokay... Finally got RRDTOOL and CACTI installed using the RPM packages on Redhat 9.0...

Using the most recent updates (rrdtool-1.0.46-1.i686.rpm & cacti-0.8.5.1.i386.rpm) I've installed all the dependencies, etc, and finally got the rpms to install (I'm quite new to Linux, etc, so forgive me if I make an obvious mistake)....

I followed both your tutorial and the instructions at http://www.raxnet.net/board/viewtopic.php?p=11931#11931, on a Vanilla (but up2dated) Redhat 9.0 box, but whenever I try to go to

http://localhost/cacti/

I just get this message:
Access forbidden!
You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.
If you think this is a server error, please contact the webmaster
Error 403

10.96.24.73
Fri 12 Mar 2004 18:12:17 GMT
Apache/2.0.40 (Red Hat Linux)

I've been trying to get this to work for over a week now! Any help you can give would be gratefully received!!!
Back to top
argon0
Cacti User


Joined: 12 Mar 2004
Posts: 238

PostPosted: Mon Mar 15, 2004 4:01 am    Post subject: In asnwer to both my Questions Reply with quote

1) yup - use the Cacti RPM.... It installs the files to /var/www/http/cacti

2) three things:
(i) Add index.php to the httpd.conf file on the line containing DirectoryIndex.
(ii) Change permissions of the cacti directory so that both apache user and cactiuser can read (at least) the directory
(iii) Don't take the instructions TOO literally... the line:
"mysql> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'somepassword'; " sets up the MYSQL user cactiuser with password of somepassword!! <doh>
the next instruction is to set up the include/config.php file to use the MYSQL database, username, and password you've just set up... NOT the LINUX (i.e. login) user and password you set up at the beginning.... <groan>...

Well I've now just managed to get off the ground - now to work out how to fly this thing!

Argon0
Back to top
amlp



Joined: 06 May 2005
Posts: 2

PostPosted: Fri May 06, 2005 4:45 pm    Post subject: Reply with quote

>> 10. As root change the permissions the /rra and /log Directories.

>> shell> chown cactiuser rra/ log/

what rra/ ? what log/ ? where?

cacti # pwd
/var/www/localhost/htdocs/cacti
cacti # ls -la
total 1
drwxr-xr-x 3 root root 72 May 6 12:04 .
drwxr-xr-x 3 root root 1344 May 6 10:17 ..
drwxr-xr-x 2 root root 80 May 6 12:04 include
leeamlp cacti #
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Informational/HOWTO's All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group