参考url:http://www.wedebugyou.com/2012/11/how-to-install-and-configure-smokeping-on-centos-6/
遇到的问题,我在使用smokeping最新版的时候安装完一直报:
Software error:
Attempt to reload Carp/Heavy.pm aborted.
Compilation failed in require at (eval 18) line 2.
For help, please send mail to the webmaster (root@localhost), giving this error message and the time and date of the error.
Software error:
[Thu Nov 6 15:03:57 2014] (eval 18): Attempt to reload Carp/Heavy.pm aborted.
[Thu Nov 6 15:03:57 2014] (eval 18): Compilation failed in require at (eval 18) line 2.
后来测试发现 http 安装一个 mod_fcgid 模块,然后重启httpd 就好了,老版本好像没这个问题,我用的是smokeping-2.6.11 版本。
特此记录下。
后来在查看对比的图形时,一直发现没有数据。后来才知道,config中host 写slave一定要注意。
host = /jk/dx-chat85/sxbj~SL-SOCKET-CDN-SXBJCTC1
不能写成 host = /jk/dx-chat85/sxbj 因为sxbj是主的,由于我这边禁止主的检测结果,所以一直是nan,改成这样的就有数据了,搞了我一下午查这个问题。
并且给了当年的文档的附件,可以参考着看,虽然tr都没有了。而且安装也不要那么麻烦了!
[gview file=”https://www.hmouse.cn/wp-content/uploads/2014/11/smokeping编译安装.docx”] [gview file=”https://www.hmouse.cn/wp-content/uploads/2014/11/smokeping安装文档.docx”]