RDD tool dump, ambiguous redirect
Posted: Wed Aug 02, 2017 12:31 am
Hi,
I'm trying to run this
and this
but Im having an ambiguous redirect, can you help me please. Im using Centos 5,6 and 7
Thank you!
I'm trying to run this
Code: Select all
cd /usr/local/nagios/share/perfdata/
for i in `find -name "*.rrd"`; do rrdtool dump $i > $i.xml; done
tar -cvzf perfdata.tar.gz */*.rrd.xml
for i in `find -name "*.rrd.xml"`; do rm -f $i; doneCode: Select all
cd /usr/local/nagios/share/perfdata/
for i in `find -name "*.rrd"`; do rm -f $i; done
tar -xvzf perfdata.tar.gz
for i in `find -name "*.rrd.xml"`; do rrdtool restore $i `echo $i |sed s/.xml//g`; done
for i in `find -name "*.rrd"`; do chown nagios:nagios $i; done
for i in `find -name "*.rrd.xml"`; do rm -f $i; doneThank you!