免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1666 | 回复: 2
打印 上一主题 下一主题

[其他] 关于cacti数据库问题,虚心请教! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2013-08-31 22:28 |只看该作者 |倒序浏览
公司目前用的cacti是个中文版的,我自己安装了一台备用机器,是从官网下载的最新版本,不过是英文的。现在从正在使用的机器上导出了数据库,然后导入备机出现了问题:
1-导入数据后,模板,图像,以及图像树中有中文的全部显示为问号,*(我安装的备机是可以正常显示中文的,包括图像也可以正常显示中文,)现在请教是要修改哪里的编码才可以正常显示?
2-导入数据库后,crontab停止工作了,不知为何?是需要修改数据库哪里?
3-手动跑poller.php,因为老机器的rra路径和我新安装的rra路径不一样,所以手动poller的时候也显示路径找不到。我导入数据后也Rebuild Poller Cache了,但是里面显示的路径就是有问题的,这个也需要修改数据库哪里呢?

刚上手cacti,请教大家以上三个问题,多谢啦

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
2 [报告]
发表于 2013-09-01 07:51 |只看该作者
貌似第3项与数据库没什么关系。cacti的数据库是单独的,你直接复制过来不就行了。

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
3 [报告]
发表于 2013-09-01 16:34 |只看该作者
这里有个好的样本,可以参考

  1. Download the latest version, and uncompress
  2. EG cd /usr/share
  3. EG wget http://www.cacti.net/downloads/cacti-0.8.7i.tar.gz
  4. EG tar -xzvf cacti-0.8.7i.tar.gz

  5. Update the MySQL config in the new version
  6. EG vi cacti-0.8.7i/include/config.php

  7. Backup your existing database
  8. EG mysqldump -u root -p -l cacti > /home/user/cacti-v0.8.7e.mysql

  9. Check the poller cron job, if the poller.php path is changing, add an entry for the new path (we can remove the old path once everything is working)
  10. EG vi /etc/cron.d/cacti

  11. Check the path that RRA's are expected to go to
  12. Compare the $config["rra_path"] value in /include/global.php, if necessary override in /include/config.php

  13. Check the Apache config

  14. Switch the folders around
  15. EG mv cacti cacti-v0.8.7e
  16. EG mv cacti-0.8.7i cacti

  17. Browse to your installation, and upgrade the database

  18. Once complete go to System Utilities > View Cacti Log File, and check everything is looking OK

  19. Remove additional path from crontab (if you added one)
复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP