Page 1 of 2
This RRD was created on another architecture Error
Posted: Wed Jun 27, 2018 9:11 am
by davide.bonicelli
Hi, a long time ago i moved our nagiosxi server from 32 to 64bit and all works fine.
Today i was did some digging for a graph problem and with the command:
LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
i got a lot of error like that:
Code: Select all
2018-06-27 16:08:00: ERROR: Cannot tune logfile: This RRD was created on another architecture
2018-06-27 16:08:00: ERROR: Cannot update /var/lib/mrtg/10.9.0.253_16.rrd with '1530108469:3134444271:489535233' This RRD was created on another architecture
The graph part is working but i think there is some old garbage..is it possible to clean it?
thanks
Re: This RRD was created on another architecture Error
Posted: Wed Jun 27, 2018 9:25 am
by scottwilkerson
We have a procedure documented for this case
https://support.nagios.com/kb/article.php?id=166
You would just need to do the steps in the article after "On the new 64bit server:"
Re: This RRD was created on another architecture Error
Posted: Wed Jun 27, 2018 9:29 am
by davide.bonicelli
Thanks Scott, but i have no more the old nagios server...can i do the 64bit commands also without the old perfdata?
Re: This RRD was created on another architecture Error
Posted: Wed Jun 27, 2018 9:40 am
by scottwilkerson
davide.bonicelli wrote:Thanks Scott, but i have no more the old nagios server...
If you moved the RRD's over and are getting this error
Code: Select all
2018-06-27 16:08:00: ERROR: Cannot update /var/lib/mrtg/10.9.0.253_16.rrd with '1530108469:3134444271:489535233' This RRD was created on another architecture
You have the old data.
davide.bonicelli wrote:can i do the 64bit commands also without the old perfdata?
Yes, that is what I was trying to convey in my forst post
scottwilkerson wrote:You would just need to do the steps in the article after "On the new 64bit server:"
Re: This RRD was created on another architecture Error
Posted: Wed Jun 27, 2018 9:50 am
by davide.bonicelli
so i got this..
Code: Select all
cd /usr/local/nagios/share/perfdata/
for i in `find -name "*.rrd"`; do rm -f $i; done
tar -xvzf perfdata.tar.gz
tar (child): perfdata.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
find / -name perfdata.tar.gz
..nothing
Re: This RRD was created on another architecture Error
Posted: Wed Jun 27, 2018 10:07 am
by scottwilkerson
sorry..
It has been so long since I've used this.
Yes you are correct, you would still need the old machine.
At present the only think I can think of is to delete the 32bit rrd's and let them be re-generated, and you will lose the historical data
Re: This RRD was created on another architecture Error
Posted: Wed Jun 27, 2018 10:17 am
by davide.bonicelli
is there a way to automatically or i must follow the errors on the log?
Re: This RRD was created on another architecture Error
Posted: Wed Jun 27, 2018 10:34 am
by scottwilkerson
you can do something like this to list them
Code: Select all
find /usr/local/nagios/share/perfdata/ -name *.rrd -mtime +10
This will list all the rrd's that havn't been updated in the last 10 days.
Because the architecture is wrong these likely aren't updating.
Re: This RRD was created on another architecture Error
Posted: Wed Jun 27, 2018 10:36 am
by scottwilkerson
If you decide this list looks correct you can run this to delete them
Code: Select all
find /usr/local/nagios/share/perfdata/ -name *.rrd -mtime +10 -exec rm -rf {} \;
Re: This RRD was created on another architecture Error
Posted: Wed Jun 27, 2018 10:41 am
by davide.bonicelli
Thanks Scott, i tried but it's don't seem to work..the same errors after an
LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg
indeed if i do a
find /usr/local/nagios/share/perfdata/ -name *.rrd -mtime +10
i got nothing in response