Page 1 of 1
Migrating Nagios Core 2.12 to Nagios 4.0.4
Posted: Thu Aug 13, 2015 11:48 am
by Centralgrocers.com
Our Nagios Core 2.12 server crashed and we are trying to migrate to Nagios Core 4.0.4 on CentOS 6.6. We need some HELP with migration from Nagios Core 2.12 to Nagios Core 4.0.4. Are there any migration steps available for migrating from 2.12 to 4.0.4?
Re: Migrating Nagios Core 2.12 to Nagios 4.0.4
Posted: Thu Aug 13, 2015 11:51 am
by tmcdonald
What specific issue are you running into? Any errors displayed?
Re: Migrating Nagios Core 2.12 to Nagios 4.0.4
Posted: Thu Aug 13, 2015 11:53 am
by Centralgrocers.com
We would like to know the steps for migration from 2.12 to 4.0.4. What files to be copied over from 2.12?
Re: Migrating Nagios Core 2.12 to Nagios 4.0.4
Posted: Thu Aug 13, 2015 11:57 am
by tmcdonald
We have docs on upgrading from 2x to 3x:
https://assets.nagios.com/downloads/nag ... l#nagios2x
But not directly from 2x to 4x, though the changes from 3x to 4x were largely in the binaries and the configs should not need to change much if at all from 3x to 4x. The procedure for upgrading to 3x from 2x should work for you. I would make sure to backup your configs first, both the objects themselves and your nagios.cfg, resource.cfg, etc.
If you need specific help with any step, please let us know.
Re: Migrating Nagios Core 2.12 to Nagios 4.0.4
Posted: Thu Aug 13, 2015 12:12 pm
by Centralgrocers.com
On step 5 of upgrade guide, (Restore your original Nagios configuration files, retention file, and log files)
What is the location of the these files and do I just do a straight copy from backup overwrite existing files on new server?
Currently, nagios service and httpd are stopped on new server.
Re: Migrating Nagios Core 2.12 to Nagios 4.0.4
Posted: Thu Aug 13, 2015 12:20 pm
by tmcdonald
The exact location will depend on your specific setup, but using the standard XI locations they are under
/usr/local/nagios. Underneath that we have:
Code: Select all
/usr/local/nagios/etc/
/usr/local/nagios/var/
/usr/local/nagios/bin/
etc. etc.
The
.../etc directory will have all the configs, and
.../var will have the logs and retention file. Copying them over is correct. You might need to make sure permissions get properly applied on the new system, and once you start the Nagios binary it might complain about obsolete config parameters leftover from 2x. We can help work through these.