Page 1 of 1

Smokeping and rrdcache.

Posted: Thu Jun 20, 2013 9:11 am
by dabb
Hello friends.

Yesterday I followed the rrdcache install guide for NagiosXI ( http://assets.nagios.com/downloads/nagi ... ios_XI.pdf ).

The next day I noticed that Smokeping was not operating and having some library problems, ( Installed from this guide: http://assets.nagios.com/downloads/nagi ... ios_XI.pdf ).

Code: Select all

[root@nagios ~]# /opt/smokeping/bin/smokeping
Can't locate RRDs.pm in @INC (@INC contains: /opt/smokeping/lib /usr/lib64/perl5/auto/RRDs /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /opt/smokeping/lib/Smokeping.pm line 13.
BEGIN failed--compilation aborted at /opt/smokeping/lib/Smokeping.pm line 13.
Compilation failed in require at /opt/smokeping/bin/smokeping line 8.
BEGIN failed--compilation aborted at /opt/smokeping/bin/smokeping line 8.
I believe this is the culprit in xi-rrdcached.sh.

Code: Select all

Line 89: yum -y remove rrdtool-perl
Does the rrdtool-perl package conflict with the rrdcache setup?

I built the package manually and edited smokeping.cgi and bin/smokeping to include the libraries as a temporary fix.

Nagios XI 2012R2.2
CentOS 6.4 64bit

Regards,
Davíð Björnsson

Re: Smokeping and rrdcache.

Posted: Thu Jun 20, 2013 4:58 pm
by abrist
They very well may be incompatible as a different version of rrdtool is installed right after the removal in the script:

Code: Select all

yum -y remove rrdtool-perl
wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.4.4.tar.gz
tar -xzf rrdtool-1.4.4.tar.gz
(
        cd /tmp/rrdtool-1.4.4
        # Use sed to pass output through but write the value of LIB to $TMPFILE
        ./configure --bindir=/usr/bin | sed '
                /^\s*Perl Options: PREFIX=.* LIB=/ {
                        p
                        s///w '"$TMPFILE"'
                        d
                }'
        make clean
        make install
)