Cacti部署及常用插件安装(3)
之前的几篇文章向大家介绍了如何部署cacti,其实整个过程还是很简单的,那部署完了怎么使用呢?不着急咱们先把常用的一些插件安装好再说。顺便说一下,0.88之前的版本还需要先安装架构扩展包才能再安装插件,但是到了0.88这个版本,本身就已经被集成了,无需再单独安装架构扩展包了。三、常用插件安装
最新版本cacti-0.8.8a 集成了plugin架构扩展,cacti安装完成后就可以安装其他插件
Monitor安装(以图形方式显示设备状态)
# tar zxvf monitor-v1.3-1.tgz
# mv monitor /var/www/html/cacti/plugins/
# cd /var/www/html/cacti/plugins/monitor/
# mysql -ucacti –pp@ssw0rd cacti/dev/null 2>&1
验证一下
先修改/etc/php.ini,否则执行轮询时会报错:
找到date.timezone,去掉前面的注释并
改为
date.timezone = PRC
或
date.timezone = Asia/Shanghai
# cd /var/www/html/cacti/
# php poller.php
12/21/2012 02:11:39 AM - POLLER: Poller WARNING: Cron is out of sync with the Poller Interval!The Poller Interval is '60' seconds, with a maximum of a '300 ' second Cron, but 218 seconds have passed since the last poll!
OK u:0.00 s:0.00 r:0.11
OK u:0.00 s:0.00 r:0.11
OK u:0.00 s:0.00 r:0.11
OK u:0.00 s:0.00 r:0.11
OK u:0.00 s:0.00 r:0.11
OK u:0.00 s:0.00 r:0.11
12/21/2012 02:11:39 AM - SYSTEM STATS: Time:0.2211 Method:spine Processes:1 Thre ads:1 Hosts:2 HostsPerProcess:2 DataSources:7 RRDsProcessed:6
未完待续~
页:
[1]