安装报错
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这个从服务器
|