设为首页 收藏本站
查看: 2416|回复: 0

[经验分享] smokeping 2.6.11 报错分享

[复制链接]
累计签到:60 天
连续签到:1 天
发表于 2016-10-13 11:20:12 | 显示全部楼层 |阅读模式
安装报错
checking checking forperl module 'Config::Grammar'... Can't locate Config/Grammar.pm in @INC (@INCcontains: /usr/local/smokeping/thirdparty/lib/perl5/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at -eline 1.
BEGINfailed--compilation aborted at -e line 1.
Failed
checking checking forperl module 'Net::Telnet'... Can't locate Net/Telnet.pm in @INC (@INC contains:/usr/local/smokeping/thirdparty/lib/perl5/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at -eline 1.
BEGINfailed--compilation aborted at -e line 1.
Failed
checking checking forperl module 'Net::OpenSSH'... Can't locate Net/OpenSSH.pm in @INC (@INCcontains: /usr/local/smokeping/thirdparty/lib/perl5/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at -eline 1.
BEGINfailed--compilation aborted at -e line 1.
Failed
checking checking forperl module 'Net::SNMP'... Can't locate Net/SNMP.pm in @INC (@INC contains:/usr/local/smokeping/thirdparty/lib/perl5/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at -eline 1.
BEGINfailed--compilation aborted at -e line 1.
Failed
checking checking forperl module 'IO::Pty'... Can't locate IO/Pty.pm in @INC (@INC contains:/usr/local/smokeping/thirdparty/lib/perl5/usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi/usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at -eline 1.
BEGINfailed--compilation aborted at -e line 1.

解决方法:
perl -MCPAN -e"install IO::Pty"
perl -MCPAN -e"install Net::SNMP"
依次安装
错误2
在运行
./setup/build-perl-modules.sh /usr/local/smokeping/thirdparty
无法下载原站数据请搭建代理服务器
错误3

./configure--prefix=/usr/local/smokeping
RRDs报错
解决方法

yum install -yrrdtool perl-rrdtool rrdtool-devel
错误4
slave节点无法啦到数据,在主服务器上没有显示slave图像
请检查 data   cache 权限  ,主服务器密码文件权限,
slave节点服务器  

touch /usr/local/smokeping/smokeping.log
chown apache:apache cache
chown apache:apache /usr/local/smokeping/smokeping.log
touch /usr/local/smokeping/etc/smokeping
chown apache:apache /usr/local/smokeping/etc/smokeping
chmod 600 /usr/local/smokeping/etc/smokeping
echo xxxxx >/usr/local/smokeping/etc/smokeping
错误5
Slave启动的时候报错。
[iyunv@Nagios etc]#/usr/local/smokeping/bin/smokeping--master-url=http://192.168.0.206/smokeping/smokeping.cgi--cache-dir=/usr/local/smokeping/var/--shared-secret=/usr/local/smokeping/etc/smokeping_secrets--slave-name=ShenZhen
WARNING: Openingsecrets file /usr/local/etc/smokeping/slavesecrets.conf: Permission denied
ERROR: we did notget config from the master. Maybe we are not configured as a slave for any ofthe targets on the master ?
在master上面 对slavesecrets.conf文件 执行如下命令:
chow smokepingslavesecrets.conf
[iyunv@Nagios etc]#/usr/local/smokeping/bin/smokeping--master-url=http://192.168.0.206/smokeping/smokeping.cgi--cache-dir=/usr/local/smokeping/var/--shared-secret=/usr/local/smokeping/etc/smokeping_secrets--slave-name=ShenZhen
WARNING: Data fromShenZhen was signed with 58e8b1b17440aa40fac67161b8c7a328 which does not matchour expectation
ERROR: we did notget config from the master. Maybe we are not configured as a slave for any ofthe targets on the master ?
这个错误就是本地的密码文件配置错误,本地密码文件只保存master上面配置你这台slave的密码,只需要一个密码就可以了

[iyunv@Nagios etc]#/usr/local/smokeping/bin/smokeping--master-url=http://192.168.0.206/smokeping/smokeping.cgi--cache-dir=/usr/local/smokeping/var/--shared-secret=/usr/local/smokeping/etc/smokeping_secrets
WARNING: No secretfound for slave Nagios.kevinadmin.org
ERROR: we did notget config from the master. Maybe we are not configured as a slave for any ofthe targets on the master ?
在master上面的密码文件里加上Nagios.kevinadmin.org及对应的密码就可以了。
[iyunv@Nagios etc]#/usr/local/smokeping/bin/smokeping--master-url=http://192.168.0.206/smokeping/smokeping.cgi--cache-dir=/usr/local/smokeping/var/--shared-secret=/usr/local/smokeping/etc/smokeping_secrets
WARNING: I don'tknow the slave Nagios.kevinadmin.org ignoring it
ERROR: we did notget config from the master. Maybe we are not configured as a slave for any ofthe targets on the master ?
这个是指在config文件里面没有定义Nagios.kevinadmin.org这个从服务器



运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-285419-1-1.html 上篇帖子: Centos6.5搭建smokeping服务 下篇帖子: smokeping使用邮件发送报警 报错
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表