Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
* installation
using the username and password you provided in debconf (and stored
in the cacti config file /etc/cacti/debian.php), create a database
and load up the cacti skeleton. assuming you chose a database and
user both named 'cacti':
mysql -u root -p -e "create database cacti"
mysql -u root -p -e "grant all privileges on cacti.* to cacti@localhost identified by 'yourpasswordhere'; flush privileges"
zcat /usr/share/doc/cacti/cacti.sql.gz | mysql -u cacti -p cacti
next, go to http://$yourhost/cacti/, and follow the on-screen directions.
But after I have done these steps, I get the following message if I go to http://localhost/cacti/
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
darkstar:~# dpkg -l | grep php
ii libphp-adodb 4.52-1 The 'adodb' database abstraction layer for p
ii php4 4.3.10-16 server-side, HTML-embedded scripting languag
ii php4-cli 4.3.10-16 command-line interpreter for the php4 script
ii php4-common 4.3.10-16 Common files for packages built from the php
ii php4-mysql 4.3.10-16 MySQL module for php4
ii php4-snmp 4.3.10-16 SNMP module for php4
darkstar:~# dpkg -l | grep mysql
ii libdbd-mysql-p 2.9006-1 A Perl5 database interface to the MySQL data
ii libmysqlclient 4.0.24-10 mysql database client library
ii mysql-client 4.0.24-10 mysql database client binaries
ii mysql-common 4.0.24-10 mysql database common files (e.g. /etc/mysql
ii mysql-server 4.0.24-10 mysql database server binaries
ii php4-mysql 4.3.10-16 MySQL module for php4
darkstar:~# dpkg -l | grep rrd
ii cacti 0.8.6c-7sarge2 Frontend to rrdtool for monitoring systems a
ii librrd0 1.0.49-1 Time-series data storage and display system
ii rrdtool 1.0.49-1 Time-series data storage and display system
darkstar:~# dpkg -l | grep kernel-image
ii kernel-image-2 2.6.8-16 Linux kernel image for version 2.6.8 on 386.
Error
You have created a new database, but have not yet imported the 'cacti.sql' file. At the command line, execute the following to continue:
mysql -u cacti -p cacti < cacti.sql
darkstar:/mnt# mysqladmin drop cacti
Dropping the database is potentially a very bad thing to do.
Any data stored in the database will be destroyed.
Do you really want to drop the 'cacti' database [y/N] y
Database "cacti" dropped
darkstar:/mnt# mysql -u root -p -e "create database cacti"
Enter password:
darkstar:/mnt# mysql -u root -p -e "grant all privileges on cacti.* to cacti@localhost identified by 'cacti'; flush privileges"
Enter password:
darkstar:/mnt# zcat /usr/share/doc/cacti/cacti.sql.gz | mysql -u cacti -p cacti
Enter password:
darkstar:/mnt#
After that the cacti intall guide ist asking me some questions if I go to http://localhost/cacti/. So it seems to work. But 3 steps later I could'nt log in at the login-prompt with username/password cacti.
Stilzchen wrote:I dropped the database in a other way, because your way failed every time (with an without password cacti)
Sorry, I forgot that you have to create the db again.
After that the cacti intall guide ist asking me some questions if I go to http://localhost/cacti/. So it seems to work. But 3 steps later I could'nt log in at the login-prompt with username/password cacti.
8. 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.
You should try admin/admin as login/password. I don't know if debian is using other default settings.
BTW: I use cacti on a debian sarge system too. But I always use the recent version from www.cacti.net , not the debian package.