[root@test05 bin]# ./smokeping --check
ERROR: /usr/local/smokeping/etc/config (Slaves): mandatory variable 'secrets' not defined
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

 

 *** Slaves ***

secrets=/usr/local/smokeping/etc/smokeping_secrets.dist

chmod 600 /usr/local/smokeping/etc/smokeping_secrets.dist

文档未做主从模式,网上的文档也都将slaves下所有的选项都给屏蔽,我将其全部屏蔽后就会出现上面的问题,解决方法是将secrets文件重新指定并设置600权限

 

[Tue Jul 12 21:19:06 2011] [error] [client 192.168.1.12] File does not exist: /usr/local/smokeping/htdocs/cache, referer: http://192.168.1.236/smokeping.cgi
 页面浏览现象为图片全部为红叉

 

mkdir /usr/local/smokeping/htdocs/cache

chown –R apache:apache /usr/local/smokeping/htdocs/cache

 

[Tue Jul 12 21:19:09 2011] [error] [client 192.168.1.12] [Tue Jul 12 21:19:09 2011] smokeping.cgi [client 192.168.1.12]: Can't call method "_pings" on an undefined value at /usr/local/smokeping/lib/Smokeping.pm line 837., referer: http://192.168.1.236/smokeping.cgi

 

类似的错误基本上都是配置文件有些问题,参考一下 config 文件 , 自己配置的时候也未做其他修改莫名的就好了。

 

ERROR: Cannot update /opt/dashboard/rrd/Disk/192.168.120.168_disk_1.rrd with
'1228032301:24:24' illegal attempt to update using time 1228032301 when last
update time is 1228050001 (minimum one second step)

 

这是因为系统时间不对造成的,起初模拟的时候时间是美国时间,然后又改为了中国时间。更新图片的时候会报错, ./smokeping --debug 的时候就会发现(这个数据是网上的,自己的 debug 报错找不到了)。 ntpdate 更新时间,并且删除 /usr/local/smokeping/var ; /usr/local/smokeping/htdocs/var; /usr/local/smokeping/htdocs/cache 下的内容,重新启动 smokeping ,等至少 15 分钟即可。