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
Upgrade XI 2012R1.7
Upgrade XI 2012R1.7
Last edited by ohlssrog on Mon Feb 08, 2016 1:15 am, edited 1 time in total.
Re: Upgrade XI 2012R1.7
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
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Former Nagios employee
Re: Upgrade XI 2012R1.7
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.
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.
You do not have the required permissions to view the files attached to this post.
Re: Upgrade XI 2012R1.7
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:
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!
Former Nagios Employee.
me.
me.
Re: Upgrade XI 2012R1.7
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
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
You do not have the required permissions to view the files attached to this post.
Re: Upgrade XI 2012R1.7
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.
Former Nagios employee
Re: Upgrade XI 2012R1.7
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?
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?
Last edited by sutenag on Mon Feb 08, 2016 12:39 pm, edited 1 time in total.
Re: Upgrade XI 2012R1.7
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?
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?
Last edited by sutenag on Mon Feb 08, 2016 1:52 pm, edited 1 time in total.
Re: Upgrade XI 2012R1.7
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
#
###############################################################################
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
#
###############################################################################