rrdcached installation script issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

rrdcached installation script issue

Post by rajasegar »

I have raised an issue with this installation script before, and it is still not fixed.

http://assets.nagios.com/downloads/nagi ... dcached.sh

https://support.nagios.com/forum/viewto ... ed#p156885

Please fix this, it is a very simple change.

Thanks.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: rrdcached installation script issue

Post by lmiltchev »

Please fix this, it is a very simple change.
Our developers uploaded the updated script. It may take 10-15 min to sync. Thanks!
Be sure to check out our Knowledgebase for helpful articles and solutions!
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: rrdcached installation script issue

Post by ssax »

I just tested this and it's working as expected on mine, I don't see any of the issues that you've listed in the previous forum post:
- No hard code /tmp path
- wget and tar zxf works as expected

Can you run a diff on the file you're running and the one that you linked to and see if there any differences?

Thank you
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: rrdcached installation script issue

Post by rajasegar »

ssax wrote:I just tested this and it's working as expected on mine, I don't see any of the issues that you've listed in the previous forum post:
- No hard code /tmp path
- wget and tar zxf works as expected

Can you run a diff on the file you're running and the one that you linked to and see if there any differences?

Thank you
The main problem seems to be that the tar.gz file downloaded is actually a tar file and the extraction command fails.
The path /tmp was definitively hard coded when I downloaded it 2 days ago.

I overwritten the file with my update, see comments below

Code: Select all

wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.4.4.tar.gz
tar -xvf rrdtool-1.4.4.tar.gz                    // I changed this line and removed the z
(
        cd ./rrdtool-1.4.4                           // this line also, it was 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
)
Anyway since you guys fixed it, that's good then.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: rrdcached installation script issue

Post by rkennedy »

Looking at the code, it seems to be updated now. I confirmed that the .tar.gz is extracted correctly -

Code: Select all

wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.4.4.tar.gz
tar -xzf rrdtool-1.4.4.tar.gz
(
	cd rrdtool-1.4.4
Am I missing anything at all, or are we good to close this thread?
Former Nagios Employee
rajasegar
Posts: 1018
Joined: Sun Mar 30, 2014 10:49 pm

Re: rrdcached installation script issue

Post by rajasegar »

rkennedy wrote:Looking at the code, it seems to be updated now. I confirmed that the .tar.gz is extracted correctly -

Code: Select all

wget http://oss.oetiker.ch/rrdtool/pub/rrdtool-1.4.4.tar.gz
tar -xzf rrdtool-1.4.4.tar.gz
(
	cd rrdtool-1.4.4
Am I missing anything at all, or are we good to close this thread?

Ok. PLease close this case.
5 x Nagios 5.6.9 Enterprise Edition
RHEL 6 & 7
rrdcached & ramdisk optimisation
Locked