Page 1 of 1
rrdcached installation script issue
Posted: Mon Feb 29, 2016 8:39 pm
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.
Re: rrdcached installation script issue
Posted: Tue Mar 01, 2016 11:19 am
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!
Re: rrdcached installation script issue
Posted: Tue Mar 01, 2016 11:28 am
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
Re: rrdcached installation script issue
Posted: Tue Mar 01, 2016 7:49 pm
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.
Re: rrdcached installation script issue
Posted: Wed Mar 02, 2016 10:57 am
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?
Re: rrdcached installation script issue
Posted: Wed Mar 02, 2016 10:03 pm
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.