Skip to main content

Posts

Showing posts with the label rhel

Moving RRD file from 32bit to 64bit Architecture

When we were working on a nagios monitoring system we were migrating from a 32bit nagios to a 64bit Architecture. Most of the graphs are not working as the RRD was from an older 32bit architecture. Location of perfdata on nagios server. [root @nagios -server perfdata] # pwd /usr/local/nagios/share/perfdata Error when we load the graph. ERROR : This RRD was created on another architecture This can re solved by converting the exsisting 32bit RRD to XML and then restoring into the new 64bit Architecture. Creating a xml dump for rrd file. rrdtool dump cpu_load.rrd > cpu_load.xml Move the XML file to the new server (64bit) Restore the XML file back. rrdtool restore -f cpu_load.xml cpu_load.rrd Testing if the RRD file is create fine, use below command. rrdtool info cpu_load.rrd Now you should be able to see all the graphs on the server. ​

Migrating Nagios XI to a New Server on Centos6.6

Migrating an old Nagios backup to a new nagiosxi server. Migration is simple in Nagios XI, you a backup and restore it. Once that is done we need to update/add the clients with IP of the new server, so that both Nagios get alerts. After a while once we are comfortable with the new server we can decommission the old one. For example we will use two servers. old_nagios (nagiosximon) new_nagios (nagioserver) Backup from Old Server. Lets first take a backup from the old_nagios server. [root@nagiosximon ~]# /usr/local/nagiosxi/scripts/backup_xi.sh Running configuration check... Stopping nagios: done. Starting nagios: done. Backing up Core Config Manager (NagiosQL)... tar: Removing leading `/' from member names tar: Removing leading `/' from member names Backing up Nagios Core... tar: Removing leading `/' from member names tar: /usr/local/nagios/var/rw/nagios.qh: socket ignored tar: /usr/local/nagios/var/ndo.sock: socket ignored Backing up Nagios XI... tar: Removi...