Page 3 of 3
Re: Cant able to get graph
Posted: Mon Oct 14, 2013 10:35 am
by abrist
That should work. Backup all the perfdata, migrate to new system, and then restore to rrds.
Re: Cant able to get graph
Posted: Mon Oct 14, 2013 10:58 am
by siriideepak
Hi,
Kindly check this i have posted earlier with screenshots and update.
This issue is caused after the restoration of nagiosxi from rhel5 32bit to rhel6 64bit due to variations in version. In old machine rhel5 32bit version rrdtool 1.4.4 and perl 5.8.8 but in new machine rhel6 64bit rrdtool 1.3.8 and perl 5.10.1. Due to this issue is caused. Kindly check and update on this.Thanks!!.
When i commented the libadd line in mrtg.cfg and run "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" it shows "this rrd was created on another archtecture"
When i remove the comment for libadd ad run "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" it shows "ERROR: CFG Error in libadd, line34: /opt/rrdtool-1.4.4/lib/perl/5.8.8/i386-linux-thread-multi/"
Is it good to comment the line libadd in mrtg.cfg or it should be uncommented. If it is Uncommented what path should i need to give. Kindly advice.
Regards,
Deepak.P
Re: Cant able to get graph
Posted: Mon Oct 14, 2013 11:15 am
by abrist
You need to export the rrds to xml on the old system first, transfer the xmls, and then, on the new system, create new rrds from the xmls:
http://support.nagios.com/wiki/index.ph ... Install.3F
Re: Cant able to get graph
Posted: Mon Oct 14, 2013 11:21 am
by siriideepak
Hi,
I already told that i have restored some of the rrd still no graphs.
Regards,
Deepak.P
Re: Cant able to get graph
Posted: Mon Oct 14, 2013 11:40 am
by abrist
Are you receiving the architecture error for the graph in your screenshot?
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
Check the logs:
Code: Select all
tail -25 /usr/local/nagios/var/perfdata.log
tail -25 /usr/local/nagios/var/npcd.log
Re: Cant able to get graph
Posted: Mon Oct 14, 2013 11:54 am
by siriideepak
Hi,
Still receiving the architecture error for the graph in the screenshot.
Regards,
Deepak.P
Re: Cant able to get graph
Posted: Tue Oct 15, 2013 3:38 am
by siriideepak
Hi,
Now i can able to get the graph. I removed all the folders in cd /usr/local/nagios/share/perfdata/ and it gets automatically created now. Thanks!!
Regards,
Deepak.P