Page 2 of 2

Re: Reset Config Permissions Failed

Posted: Fri Mar 23, 2012 11:36 am
by GreatWolfResorts
Retried the following command now that we're communicating:

Code: Select all

LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lock/mrtg/mrtg_l --confcache-file /var/lib/mrtg/mrtg.ok
Output is as follows. Basically a TON of these:

Code: Select all

2012-03-23 11:29:59: ERROR: Cannot tune logfile: This RRD was created on another architecture
2012-03-23 11:29:59: ERROR: Cannot update /var/lib/mrtg/192.168.***.***_6.rrd with '1332520199:0:0' This RRD was created on another architecture
2012-03-23 11:29:59: ERROR: Cannot tune logfile: This RRD was created on another architecture
2012-03-23 11:29:59: ERROR: Cannot update /var/lib/mrtg/192.168.***.***_7.rrd with '1332520199:0:0' This RRD was created on another architecture
2012-03-23 11:29:59: ERROR: Cannot tune logfile: This RRD was created on another architecture
2012-03-23 11:29:59: ERROR: Cannot update /var/lib/mrtg/192.168.***.***_8.rrd with '1332520199:0:0' This RRD was created on another architecture
2012-03-23 11:29:59: ERROR: Cannot tune logfile: This RRD was created on another architecture
2012-03-23 11:29:59: ERROR: Cannot update /var/lib/mrtg/192.168.***.***_9.rrd with '1332520199:0:0' This RRD was created on another architecture
2012-03-23 11:29:59: ERROR: Cannot tune logfile: This RRD was created on another architecture
2012-03-23 11:29:59: ERROR: Cannot update /var/lib/mrtg/192.168.***.***_10.rrd with '1332520199:0:0' This RRD was created on another architecture
2012-03-23 11:29:59: ERROR: Cannot tune logfile: This RRD was created on another architecture
2012-03-23 11:29:59: ERROR: Cannot update /var/lib/mrtg/192.168.***.***_11.rrd with '1332520199:0:0' This RRD was created on another architecture
2012-03-23 11:29:59: ERROR: Cannot tune logfile: This RRD was created on another architecture

Re: Reset Config Permissions Failed

Posted: Fri Mar 23, 2012 12:39 pm
by GreatWolfResorts
Applied the following steps to the /var/lib/mrtg .rrd files:

Old Server:

Code: Select all

cd /var/lib/mrtg
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; done
New Server:

Code: Select all

service nagiosxi stop
service npcd stop
service ndo2db stop
service nagios stop
cd /var/lib/mrtg
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; done
service nagios start
service ndo2db start
service npcd start
service nagioxi start
Thanks to Aurelien for the post containing that information.

I ran the following line again:

Code: Select all

LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lock/mrtg/mrtg_l --confcache-file /var/lib/mrtg/mrtg.ok
No output occurred.

Re: Reset Config Permissions Failed

Posted: Fri Mar 23, 2012 12:48 pm
by scottwilkerson
I believe this is silent success... Are you getting data in them now?

Re: Reset Config Permissions Failed

Posted: Fri Mar 23, 2012 12:50 pm
by GreatWolfResorts
We are good to go. Just confirmed all bandwidth graphs are pulling and displaying proper data!

Re: Reset Config Permissions Failed

Posted: Fri Mar 23, 2012 12:58 pm
by scottwilkerson
Excellent.