--------------------------------
http://forums.cacti.net/post-6184.html
Hi,
you can connect to your cacti database using something like
Code:
mysql cacti
maybe you need to use the
Code:
-u and
Code:
-p flag. When you are connected you can do the following to change your password:
Code:
update user_auth set password=Password('yournewpassord') where username='admin';
or use
Code:
update user_auth set password='' where username='admin';
to erase it. After that you can assign a new password with "User Management" from the Utilities menu.
HTH,
Lars
cacti安装完后就停留在登陆界面,输入默认的用户名密码登陆不进去!centos5下-----信息不全 , 配置问题-----呵呵我也碰到同样的问题。我把解决办法写上来看能不能帮助同样问题的你。:)在login屏幕一直不能登录进去,输入admin密码admin后还会是停止在登录屏幕,要求输入用户和密码.百思不得其解,后面在cacti的官方论坛上找答案,发现有人有同样的问题,他有发apache的日志。突然一想,我也可以看看apache的日志。打开日志一看,发现了问题。查日志:[client 59.41.223.152] PHP Warning: Unknown(): open(/var/lib/php/session/sess_e7efb8dcf3a41b026edb7aecdd7b3404, O_RDWR) failed: Permission denied (13) in Unknown on line 0, referer: http://cacti.abc.com.cn/index.php[client 59.41.223.152] PHP Warning: Unknown(): Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0, referer: http://cacti.abc.com.cn/index.php原来是/var/lib/php/session 对当前运行apache的账户nobody无写权限。chmod 777 session 后。问题消失。
rrd目录下不生成文件,网页显示不出图形
通常情况下,cacti是以web服务的用户来运行的,因此在cacti目录下的log 和 rra 目录及其下的所有文件的所有者应该设置为那么用户(比如www-data)。
因此:
chown -R www-data.www-data $CACTIPATH/log
chown -R www-data.www-data $CACTIPATH/rra
chmod 755 $CACTIPATH/log
chmod 755 $CACTIPATH/rra
还有,如果你用root用户运行过cmd.php,那么有可能在rra目录下生成了拥有者为root的一些rrd文件,你需要将这些文件的所有者改成运行www服务的那么用户。
我干脆将 chmod 777 rrd chmod 777 log
注意:如果是rpm安装的mysql,默认的安装目录在/var/lib/mysql/
手动运行测试/usr/bin/php /....../.../poller.php,如果报错:
FATAL: Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'inc
需要修改/etc/my.conf
改为#socket = /var/lib/mysql/mysql.sock
php-devel这个包也要装php才能正确连数据库
使用uc测试php连数据库