Page 1 of 3
Upgrade XI 2012R1.7
Posted: Sun Feb 07, 2016 9:26 am
by ohlssrog
Hi.
What is the recommended way to to upgrade an XI 2012R1.7 to XI 5.2.3, can i do an direct upgrade or does it require an middle version before?
Thanks
Re: Upgrade XI 2012R1.7
Posted: Sun Feb 07, 2016 1:56 pm
by tmcdonald
A direct upgrade should work, but I personally usually go from major version to major version, using the last release for each one. So in your case, I would go to 2014R2.7 then XI 5.2.3, but we tested upgrades from 2012 and they worked. When in doubt, make a backup first:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Re: Upgrade XI 2012R1.7
Posted: Mon Feb 08, 2016 8:16 am
by ohlssrog
I tried an upgrade direct to 5.2.3 and it halt on
Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/SNMP.cfg', starti ng on line 44)
Error processing object config files!
See attached file for all info.
When trying to upgrade to 2014 R2, after an snapshot revert i get this error.
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios-4.0.8'
Running configuration check... CONFIG ERROR! Restart aborted. Check your Nagios configuration.
Re: Upgrade XI 2012R1.7
Posted: Mon Feb 08, 2016 10:15 am
by hsmith
If you have configuration errors, which the older versions of core did not account for, the newer ones will yell at you and not take. You're going to need to fix the configuration errors before you update.
In this case, it looks as if you have a service without a host assigned to it. The error tells you exactly what will need to be fixed:
Code: Select all
Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/SNMP.cfg', starti ng on line 44)
Error processing object config files!
Re: Upgrade XI 2012R1.7
Posted: Mon Feb 08, 2016 10:30 am
by ohlssrog
Hi.
That is the thing, i dont understand the issue in the cfg file, can i add hostgroups or must it be a host? i attache it for you so you can have a look.
What about the error when trying to upgrade to 2014 R2 in the latest screen attached file
Re: Upgrade XI 2012R1.7
Posted: Mon Feb 08, 2016 10:56 am
by tmcdonald
Please note: I have moved this thread to the Customer forum at the request of the OP, and he will be continuing under the username
@sutenag.
Re: Upgrade XI 2012R1.7
Posted: Mon Feb 08, 2016 12:26 pm
by sutenag
Hi
I add some host name to line 44 in the snmp.cfg now its seems to miss some host name in another check on line 29.
Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/SNMP.cfg', starting on line 29)
Error processing object config files!
After i add some host name to line 29 i get same error at line 14 - running ./upgrade. Must i add host name to all checker in this cfg file?
Re: Upgrade XI 2012R1.7
Posted: Mon Feb 08, 2016 12:30 pm
by hsmith
You'll need the host on each of the checks.
Re: Upgrade XI 2012R1.7
Posted: Mon Feb 08, 2016 12:51 pm
by sutenag
nooo now its the same error in next cfg file...
Error: Service has no hosts and/or service_description (config file '/usr/local/nagios/etc/services/ORA-SS-OFS.cfg', starting on line 27)
Error processing object config files!
Do you think i have to go through all my cfg files and edit them? Can i add a hostgroup instead of severals hosts?
Re: Upgrade XI 2012R1.7
Posted: Mon Feb 08, 2016 1:52 pm
by sutenag
Have now gone through all cfg files there it halt on missing host. Now i get this error when running ./upgrade
Error: Impossible service dependency definition
(config file '/usr/local/nagios/etc/servicedependencies.cfg', starting at line '14')
Error processing object config files!
servicedependencies.cfg
###############################################################################
#
# Service dependency configuration file
#
# Created by: Nagios QL Version 3.0.3
# Date: 2015-09-18 12:51:08
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios QL will overwite all manual settings during the next update
#
###############################################################################
define servicedependency {
dependent_service_description The Daily Ignore check
service_description Testing_eventhandlers
inherits_parent 1
execution_failure_criteria u,c,
dependency_period 24x7
}
###############################################################################
#
# Service dependency configuration file
#
# END OF FILE
#
###############################################################################