安裝完Smokeping後,在啟動服務時出現以下錯誤
此錯誤表示為rrdtool沒有安裝完全或是沒安裝好路徑
請依照以下方式修改
[root@localhost opt]# /usr/local/smokeping/bin/smokeping start
Can't locate RRDs.pm in @INC (@INC contains: /usr/local/smokeping/lib /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 /usr/lib/perl5 /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl .) at /usr/local/smokeping/lib/Smokeping.pm line 13.
BEGIN failed–compilation aborted at /usr/local/smokeping/lib/Smokeping.pm line 13.
Compilation failed in require at /usr/local/smokeping/bin/smokeping line 8.
BEGIN failed–compilation aborted at /usr/local/smokeping/bin/smokeping line 8.
此錯誤表示在rrdtool安裝時,安裝不完整有缺少檔案
首先先確認當初在安裝rrdtool時,所安裝的路徑。在安裝的路徑中會有
/lib/perl/5.8.8/i386-linux-thread-multi 此檔。
把RRDs.pm複製到perl目錄內:
[root@localhost ]# cp -rp /usr/local/lib/perl/5.8.8/i386-linux-thread-multi/* /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi
複製過去後在重新啟動Smokeping 應該就正常了。
[root@localhost ]# /usr/local/smokeping/bin/smokeping start
Note: logging to syslog as local0/info.
Daemonizing /usr/local/smokeping/bin/smokeping …