Smokeping and rrdcache.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dabb
Posts: 1
Joined: Tue Jun 18, 2013 8:30 am

Smokeping and rrdcache.

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Smokeping and rrdcache.

Post 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
)
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked