Page 1 of 2
Upgrade from 2014R2.7 to 5.2.0 errors...
Posted: Mon Oct 19, 2015 3:16 pm
by PhilG
Hello:
I have ran the Upgrade from within Nagios XI's GUI web console and received the following:
"The update did not complete successfully. Please try updating manually."
I went back to the Updates page and saw the following:
"A new Nagios XI update is available.
5.2.0 was released on October 8th, 2015.
Visit
www.nagios.com to obtain the latest update.
Latest Available Version: 5.2.0
Installed Version: 5.2.0
Last Update Check: 2015-10-19 14:32:15
"
I'm re-running the upgrade to see if it works this time and will report back.
Re: Upgrade from 2014R2.7 to 5.2.0 errors...
Posted: Mon Oct 19, 2015 3:34 pm
by PhilG
Okay. The re-run appears to have worked and received the message "The update was completed successfully!". This is good.
When I checked the log I am finding there are multiple warnings (well over 225) for different hosts (mostly websites, like "websiteX.dnsname" but all point to the same .CFG file), like the following:
"Warning: Duplicate definition found for service 'Ping' on host '<websiteX>' (config file '/usr/local/nagios/etc/services/<same server hostname>.cfg', starting on line 16)"
The information that was found in the .CFG was:
"
define service {
host_name <same server hostname>
service_description Ping
use xiwizard_genericnetdevice_ping_service,xiwizard_linuxserver_ping_service
"
Re: Upgrade from 2014R2.7 to 5.2.0 errors...
Posted: Mon Oct 19, 2015 9:19 pm
by Box293
I'm glad your upgrade issue was resolved.
As for your other problem can you try this:
Go into CCM
Tools > Write Config Files
Click the Delete button (you won't lose your configs)
It will say "Successfully deleted all Host / Service Config Files"
Click the Write Button
It will show an output of all the files it creates
Click the Verify button
Do you get the same warning messages?
Re: Upgrade from 2014R2.7 to 5.2.0 errors...
Posted: Tue Oct 20, 2015 2:33 pm
by PhilG
Yes, still getting the Warning messages, even though the the Warnings and Errors were zero:
"
Read object config files okay...
Running pre-flight check on configuration data...
Checking objects...
Checked 1564 services.
Checked 321 hosts.
Checked 7 host groups.
Checked 27 service groups.
Checked 12 contacts.
Checked 3 contact groups.
Checked 127 commands.
Checked 10 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 321 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 10 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...
Total Warnings: 0
Total Errors: 0
Things look okay - No serious problems were detected during the pre-flight check
"
Re: Upgrade from 2014R2.7 to 5.2.0 errors...
Posted: Tue Oct 20, 2015 4:45 pm
by rkennedy
Do you have multiple services with the same name, but defined differently by upper/lower case? This can cause Nagios to identify them differently, when they are in fact the same.
Can you take a look at your templates and hostgroups associated with the service, and make sure that the services are only defined once?
Re: Upgrade from 2014R2.7 to 5.2.0 errors...
Posted: Wed Oct 21, 2015 8:46 am
by PhilG
Certainly. It'll take a little time, but I'll get back and respond.
rkennedy wrote:Do you have multiple services with the same name, but defined differently by upper/lower case? This can cause Nagios to identify them differently, when they are in fact the same.
Can you take a look at your templates and hostgroups associated with the service, and make sure that the services are only defined once?
Re: Upgrade from 2014R2.7 to 5.2.0 errors...
Posted: Wed Oct 21, 2015 9:22 am
by hsmith
Let us know what you find. Thanks!
Re: Upgrade from 2014R2.7 to 5.2.0 errors...
Posted: Thu Oct 22, 2015 4:11 pm
by PhilG
I am not finding any duplicate names.
The thing that seems to be throwing out that message is in this "/usr/local/nagios/etc/services/<HOSTNAME>.cfg" file, which I displayed in red, below. If I remove one, then I don't know if something will go wrong, not work, etc.
define service {
host_name <HOSTNAME>
service_description Ping
use xiwizard_genericnetdevice_ping_service,xiwizard_linuxserver_ping_service
Re: Upgrade from 2014R2.7 to 5.2.0 errors...
Posted: Thu Oct 22, 2015 4:57 pm
by lmiltchev
"Warning: Duplicate definition found for service 'Ping' on host '<websiteX>' (config file '/usr/local/nagios/etc/services/<same server hostname>.cfg', starting on line 16)"
Is the 'Ping' service added only to host '<websiteX>' or also to a hostgroup? Can you find any duplicates in the CCM?
Re: Upgrade from 2014R2.7 to 5.2.0 errors...
Posted: Fri Nov 27, 2015 3:59 pm
by PhilG
lmiltchev wrote:"Warning: Duplicate definition found for service 'Ping' on host '<websiteX>' (config file '/usr/local/nagios/etc/services/<same server hostname>.cfg', starting on line 16)"
Is the 'Ping' service added only to host '<websiteX>' or also to a hostgroup? Can you find any duplicates in the CCM?
Please lock this. There are bigger issues that need attention and since Nagios XI is functioning with no other issues, I'll consider this a non-issue for the time being.