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.
Upgrade from 2014R2.7 to 5.2.0 errors...
Upgrade from 2014R2.7 to 5.2.0 errors...
Newbie '14
Re: Upgrade from 2014R2.7 to 5.2.0 errors...
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
"
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
"
Newbie '14
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Upgrade from 2014R2.7 to 5.2.0 errors...
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?
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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Upgrade from 2014R2.7 to 5.2.0 errors...
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
"
"
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
"
Newbie '14
Re: Upgrade from 2014R2.7 to 5.2.0 errors...
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?
Can you take a look at your templates and hostgroups associated with the service, and make sure that the services are only defined once?
Former Nagios Employee
Re: Upgrade from 2014R2.7 to 5.2.0 errors...
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?
Newbie '14
Re: Upgrade from 2014R2.7 to 5.2.0 errors...
Let us know what you find. Thanks!
Former Nagios Employee.
me.
me.
Re: Upgrade from 2014R2.7 to 5.2.0 errors...
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
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
Newbie '14
Re: Upgrade from 2014R2.7 to 5.2.0 errors...
Is the 'Ping' service added only to host '<websiteX>' or also to a hostgroup? Can you find any duplicates in the CCM?"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)"
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Upgrade from 2014R2.7 to 5.2.0 errors...
lmiltchev wrote:Is the 'Ping' service added only to host '<websiteX>' or also to a hostgroup? Can you find any duplicates in the CCM?"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)"
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.
Newbie '14