Migrating Nagios Core 2.12 to Nagios 4.0.4

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Centralgrocers.com
Posts: 3
Joined: Thu Aug 13, 2015 11:39 am

Migrating Nagios Core 2.12 to Nagios 4.0.4

Post 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?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Migrating Nagios Core 2.12 to Nagios 4.0.4

Post by tmcdonald »

What specific issue are you running into? Any errors displayed?
Former Nagios employee
Centralgrocers.com
Posts: 3
Joined: Thu Aug 13, 2015 11:39 am

Re: Migrating Nagios Core 2.12 to Nagios 4.0.4

Post 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?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Migrating Nagios Core 2.12 to Nagios 4.0.4

Post 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.
Former Nagios employee
Centralgrocers.com
Posts: 3
Joined: Thu Aug 13, 2015 11:39 am

Re: Migrating Nagios Core 2.12 to Nagios 4.0.4

Post 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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Migrating Nagios Core 2.12 to Nagios 4.0.4

Post 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.
Former Nagios employee
Locked