This RRD was created on another architecture Error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
davide.bonicelli
Posts: 134
Joined: Thu Feb 13, 2014 5:12 am

This RRD was created on another architecture Error

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: This RRD was created on another architecture Error

Post 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:"
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
davide.bonicelli
Posts: 134
Joined: Thu Feb 13, 2014 5:12 am

Re: This RRD was created on another architecture Error

Post 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?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: This RRD was created on another architecture Error

Post 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:"
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
davide.bonicelli
Posts: 134
Joined: Thu Feb 13, 2014 5:12 am

Re: This RRD was created on another architecture Error

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: This RRD was created on another architecture Error

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
davide.bonicelli
Posts: 134
Joined: Thu Feb 13, 2014 5:12 am

Re: This RRD was created on another architecture Error

Post by davide.bonicelli »

is there a way to automatically or i must follow the errors on the log?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: This RRD was created on another architecture Error

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: This RRD was created on another architecture Error

Post 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 {} \;
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
davide.bonicelli
Posts: 134
Joined: Thu Feb 13, 2014 5:12 am

Re: This RRD was created on another architecture Error

Post 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
Locked