ZenoSS忘记admin密码的解决方法

ZenoSS忘记admin密码的解决方法

Filed under: IT, 系统管理 |  

昨天晚上收到老大的邮件,问我ZenoSS监控系统做的如何了。
猛然一惊,好久了呢,当时只是装好后测试效果,没大规模的在服务器机群上应用,后来又有很多事,就给丢一边,现在都忘的差不多了
赶紧找出以前的安装文档,还好,一切都还在
输入地址,出现了似曾熟悉的登录界面,

可是怎么输入都提示不对,看来是忘记了密码了 -_-”
然后查数据库,结果没那个表,怎么办呢?
既然没在数据库中,那应该是在某个文件里面,到安装目录下执行:

grep -r “admin” .

好多呢,慢慢找,终于发现有这样的一个东东:

./bin/zpasswd.py: pw = write_generated_password(home, ac_path, ‘admin’)
./bin/zpasswd.py: The initial user name and password are ‘admin’
./bin/zenpass:echo -n ‘Password for the Zenoss “admin” user: ‘
./bin/zenpass:$ZOPEHOME/bin/zpasswd.py -u admin -p $ZOPEPASSWORD inituser

嘿嘿,看来还真是这样的呢
赶紧到bin目录下执行zenpass

[root@mailcorp bin]# ./zenpass
Password for the Zenoss “admin” user:
./zenpass: line 23: /bin/zpasswd.py: No such file or directory
./zenpass: line 24: zopectl: command not found
./zenpass: line 25: zopectl: command not found

???怎么会没这个文件呢?奇怪
突然想起,所有的zenoss命令都必须在zenoss用户环境下才能执行,即使是root也不可以
使用zenoss用户登录,再次执行zenpass:

[zenoss@mailcorp ~]$ /opt/zenoss/bin/zenpass
Password for the Zenoss “admin” user:
. . daemon process stopped
. daemon process started, pid=7812

重新设置admin密码后,登录后台,一切正常 :-)
还好我每次安装软件之后都有相应的操作文档,否则。。。。(*^__^*) 嘻嘻……


Del.icio.us Google书签 Digg Live Bookmark Technorati Furl Yahoo书签 Facebook 百度搜藏 新浪ViVi 365Key网摘 天极网摘 和讯网摘 博拉网 POCO网摘 添加到饭否 QQ书签 Digbuzz我挖网

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

If you want to leave a feedback to this post or to some other user´s comment, simply fill out the form below.

(required)

(required)