如果忘记密码不能登入cacti
用root用户进入系统
[root@localhsot]# mysql -u root -p
mysql> show databases;
mysql> use cacti;
mysql> show tables;
mysql> select * from user_auth;
mysql> update user_auth set password=md5("cactipasswd") where id='1';
[root@www ~]# chkconfig httpd on
[root@www ~]# chkconfig mysqld on
[root@www ~]# vim /etc/snmp/snmpd.conf
62 access notConfigGroup "" any noauth exact all none none
85view all included .1 80
[root@www ~]# chkconfig snmpd on
[root@www ~]# service snmpd restart
停止 snmpd: [失败]
启动 snmpd: [确定]
[root@www ~]# service httpd start
启动 httpd: [确定]
[root@www ~]# service mysqld start
初始化 MySQL 数据库: Installing MySQL system tables...
The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
[确定]
启动 MySQL: [确定]
[root@www ]# yum localinstall rrdt* --nogpgcheck
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Local Package Process
Examining rrdtool-1.4.4-1.el5.wrl.i386.rpm: rrdtool-1.4.4-1.wrl.i386
Marking rrdtool-1.4.4-1.el5.wrl.i386.rpm to be installed
rhel-cluster | 1.1 kB 00:00
rhel-clusterstorage | 1.1 kB 00:00
rhel-server | 1.1 kB 00:00
rhel-vt | 1.1 kB 00:00
Examining rrdtool-perl-1.4.4-1.el5.wrl.i386.rpm: rrdtool-perl-1.4.4-1.wrl.i386
Marking rrdtool-perl-1.4.4-1.el5.wrl.i386.rpm to be installed
Examining rrdtool-ruby-1.4.4-1.el5.wrl.i386.rpm: rrdtool-ruby-1.4.4-1.wrl.i386
Marking rrdtool-ruby-1.4.4-1.el5.wrl.i386.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package rrdtool.i386 0:1.4.4-1.wrl set to be updated
---> Package rrdtool-perl.i386 0:1.4.4-1.wrl set to be updated
---> Package rrdtool-ruby.i386 0:1.4.4-1.wrl set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
rrdtool i386 1.4.4-1.wrl /rrdtool-1.4.4-1.el5.wrl.i386 2.6 M
rrdtool-perl i386 1.4.4-1.wrl /rrdtool-perl-1.4.4-1.el5.wrl.i386 94 k
rrdtool-ruby i386 1.4.4-1.wrl /rrdtool-ruby-1.4.4-1.el5.wrl.i386 26 k
Total size: 2.7 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : rrdtool 1/3
Installing : rrdtool-ruby 2/3
Installing : rrdtool-perl 3/3
[root@www html]# useradd cacti
[root@www html]# passwd cacti
Changing password for user cacti.
New UNIX password:
BAD PASSWORD: it is too short
Retype new UNIX password:
passwd: all authentication tokens updated successfully.