From 774b7eddf23f18ca0a52ecf911e3fa8c494bdc25 Mon Sep 17 00:00:00 2001 From: James Mills Date: Tue, 19 Jun 2007 23:12:02 +1000 Subject: [PATCH] cacti: NEW port --- cacti/.md5sum | 1 + cacti/INSTALL | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ cacti/Pkgfile | 18 ++++++++++++++++++ 3 files changed, 68 insertions(+) create mode 100644 cacti/.md5sum create mode 100644 cacti/INSTALL create mode 100644 cacti/Pkgfile diff --git a/cacti/.md5sum b/cacti/.md5sum new file mode 100644 index 000000000..55ea305c9 --- /dev/null +++ b/cacti/.md5sum @@ -0,0 +1 @@ +341b5828d95db91f81f5fbba65411d63 cacti-0.8.6i.tar.gz diff --git a/cacti/INSTALL b/cacti/INSTALL new file mode 100644 index 000000000..5639256fb --- /dev/null +++ b/cacti/INSTALL @@ -0,0 +1,49 @@ +INSTALL: + + + 1. Create the MySQL database: + + shell> mysqladmin --user=root create cacti + + 2. Import the default cacti database: + + shell> mysql cacti < cacti.sql + + 3. Optional: Create a MySQL username and password for Cacti. + + shell> mysql --user=root mysql + mysql> GRANT ALL ON cacti.* TO cactiuser@localhost IDENTIFIED BY 'somepassword'; + mysql> flush privileges; + + 4. Edit include/config.php and specify the MySQL user, password and + database for your Cacti configuration. + + $database_default = "cacti"; + $database_hostname = "localhost"; + $database_username = "cactiuser"; + $database_password = "cacti"; + + 5. Set the appropriate permissions on cacti's directories for graph/log + generation. You should execute these commands from inside cacti's + directory to change the permissions. + + shell> chown -R cactiuser rra/ log/ + + (Enter a valid username for cactiuser, this user will also be used in + the next step for data gathering.) + + 6. Add a line to your /etc/crontab file similar to: + + */5 * * * * cactiuser php /var/www/html/cacti/poller.php > /dev/null 2>&1 + + Replace cactiuser with the valid user specified in the previous step. + + Replace /var/www/html/cacti/ with your full Cacti path. + + 7. Point your web browser to: + + http://your-server/cacti/ + + 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. diff --git a/cacti/Pkgfile b/cacti/Pkgfile new file mode 100644 index 000000000..b9cae9bcb --- /dev/null +++ b/cacti/Pkgfile @@ -0,0 +1,18 @@ +# Description: A complete RRDTool-based graphing solution +# URL: http://cacti.net/index.php +# Maintainer: James Mills, prologic at shortcircuit dot net dot au +# Packager: Younes Hafri, ycrux at club-internet dot fr +# +# Depends on: rrdtool, mod_php, mysql + +name=cacti +version=0.8.6i +release=1 +source=(http://www.$name.net/downloads/$name-$version.tar.gz) + +build () { + echo "=========================" + echo " Read the INSTALL file " + echo "=========================" + exit 1 +}