interrogate 发表于 2016-10-13 11:20:12

smokeping 2.6.11 报错分享

安装报错
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.Failedchecking 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.Failedchecking 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.Failedchecking 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.Failedchecking 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/smokepingRRDs报错解决方法
yum install -yrrdtool perl-rrdtool rrdtool-devel
错误4slave节点无法啦到数据,在主服务器上没有显示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启动的时候报错。#/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=ShenZhenWARNING: Openingsecrets file /usr/local/etc/smokeping/slavesecrets.conf: Permission deniedERROR: 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#/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=ShenZhenWARNING: Data fromShenZhen was signed with 58e8b1b17440aa40fac67161b8c7a328 which does not matchour expectationERROR: we did notget config from the master. Maybe we are not configured as a slave for any ofthe targets on the master ?这个错误就是本地的密码文件配置错误,本地密码文件只保存master上面配置你这台slave的密码,只需要一个密码就可以了
#/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_secretsWARNING: No secretfound for slave Nagios.kevinadmin.orgERROR: 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及对应的密码就可以了。#/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_secretsWARNING: I don'tknow the slave Nagios.kevinadmin.org ignoring itERROR: 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]
查看完整版本: smokeping 2.6.11 报错分享