Upgrade From Nagios XI 2012R2.5 To NagiosXI 5

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ryan.low
Posts: 4
Joined: Tue Nov 07, 2017 1:24 am

Upgrade From Nagios XI 2012R2.5 To NagiosXI 5

Post by ryan.low »

Dear Support,
We are upgrading our Nagios XI from 2012R2.5 to 5. But we having cfg error during upgrade.

"Running configuration check... CONFIG ERROR! Restart aborted. Check your Nagios configuration."

Next, we run "/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg"

Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in host type objects (config file '/usr/local/nagios/etc/hosttemplates.cfg', starting at line 14)
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in host type objects (config file '/usr/local/nagios/etc/hosttemplates.cfg', starting at line 135)
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in service type objects (config file '/usr/local/nagios/etc/servicetemplates.cfg', starting at line 24)
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in service type objects (config file '/usr/local/nagios/etc/servicetemplates.cfg', starting at line 126)
Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/xxx.xxx.xxx.cfg', starting on line 13)
Error processing object config files!

It looks like all the .cfg having errors. :?

Thanks.

Regards,
Ryan
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: Upgrade From Nagios XI 2012R2.5 To NagiosXI 5

Post by npolovenko »

Hello, @ryan.low . A little side note. If you're still able to access the old installation I recommend to perform a backup before you start an upgrade.
Are you running Nagios on the VM by chance? When it comes to upgrading a very old system I'd rather spin up a new machine, install the latest Nagios and then import the old configs with the config tool.
If upgrading is your only option then I'd like to take a look at /usr/local/nagios/etc/services/xxx.xxx.xxx.cfg file. Perhaps some syntax has changed and we can modify it to continue with the installation. But there might be more issues down the road.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
ryan.low
Posts: 4
Joined: Tue Nov 07, 2017 1:24 am

Re: Upgrade From Nagios XI 2012R2.5 To NagiosXI 5

Post by ryan.low »

Hello,
We are installing a new server. but due to the time constraint, we installed back 2012R2.5 again with new license.
By using config tool, are we able to migrate back the old data?

We do backups and simulate them in VM. Now, upgrading is the only option we have to go with. One of the cfg may looks like below:

define service {
service_description SMTP
use xiwizard_smtp_service
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard tcpudpport
register 1
}

Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/smtp.xxx.cfg', starting on line 13)
Error processing object config files!
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Upgrade From Nagios XI 2012R2.5 To NagiosXI 5

Post by dwhitfield »

Well, there's definitely no host there. Are you able to add a host in the UI? Can you PM or attach your objects.cache?
Locked