Upgrade from 2014R2.7 to 5.2.0 errors...

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
PhilG
Posts: 286
Joined: Thu Jan 16, 2014 10:24 am

Upgrade from 2014R2.7 to 5.2.0 errors...

Post 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.
Newbie '14
PhilG
Posts: 286
Joined: Thu Jan 16, 2014 10:24 am

Re: Upgrade from 2014R2.7 to 5.2.0 errors...

Post 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
"
Newbie '14
User avatar
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...

Post 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?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
PhilG
Posts: 286
Joined: Thu Jan 16, 2014 10:24 am

Re: Upgrade from 2014R2.7 to 5.2.0 errors...

Post 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

"
Newbie '14
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Upgrade from 2014R2.7 to 5.2.0 errors...

Post 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?
Former Nagios Employee
PhilG
Posts: 286
Joined: Thu Jan 16, 2014 10:24 am

Re: Upgrade from 2014R2.7 to 5.2.0 errors...

Post 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?
Newbie '14
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Upgrade from 2014R2.7 to 5.2.0 errors...

Post by hsmith »

Let us know what you find. Thanks!
Former Nagios Employee.
me.
PhilG
Posts: 286
Joined: Thu Jan 16, 2014 10:24 am

Re: Upgrade from 2014R2.7 to 5.2.0 errors...

Post 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
Newbie '14
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Upgrade from 2014R2.7 to 5.2.0 errors...

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
PhilG
Posts: 286
Joined: Thu Jan 16, 2014 10:24 am

Re: Upgrade from 2014R2.7 to 5.2.0 errors...

Post 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.
Newbie '14
Locked