Reset Config Permissions Failed

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
GreatWolfResorts
Posts: 48
Joined: Tue Mar 15, 2011 11:12 am
Location: Madison, WI

Re: Reset Config Permissions Failed

Post 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
Nagios XI 5.2.5 | CentOS6.3 x86_64 | Virtual Instance on VMware vSphere 6
User avatar
GreatWolfResorts
Posts: 48
Joined: Tue Mar 15, 2011 11:12 am
Location: Madison, WI

Re: Reset Config Permissions Failed

Post 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.
Nagios XI 5.2.5 | CentOS6.3 x86_64 | Virtual Instance on VMware vSphere 6
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Reset Config Permissions Failed

Post by scottwilkerson »

I believe this is silent success... Are you getting data in them now?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
GreatWolfResorts
Posts: 48
Joined: Tue Mar 15, 2011 11:12 am
Location: Madison, WI

Re: Reset Config Permissions Failed

Post by GreatWolfResorts »

We are good to go. Just confirmed all bandwidth graphs are pulling and displaying proper data!
Nagios XI 5.2.5 | CentOS6.3 x86_64 | Virtual Instance on VMware vSphere 6
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Reset Config Permissions Failed

Post by scottwilkerson »

Excellent.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart