Upgrading from 5.5.8 to 5.5.10 Success but Failed

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
tmattingly
Posts: 115
Joined: Thu Oct 23, 2014 12:53 pm

Upgrading from 5.5.8 to 5.5.10 Success but Failed

Post by tmattingly »

At the end of the upgrade though the rest of it looked successful I received the following. I did not receive this same error on the last upgrade. Not sure where to go look or even how to fix this so asking for some help.


--- ccm_import.php -------------------
> Setting import directory: /usr/local/nagios/etc/import/
> Importing config files into the CCM
- Importing: /usr/local/nagios/etc/import/fai02020.cfg .. PHP Notice: Undefined index: host_name in /usr/local/nagiosxi/html/includes/components/ccm/classes/import.class.php on line 552
PHP Notice: Undefined index: host_name in /usr/local/nagiosxi/html/includes/components/ccm/classes/import.class.php on line 906
PHP Notice: Undefined index: host_name in /usr/local/nagiosxi/html/includes/components/ccm/classes/import.class.php on line 552
PHP Notice: Undefined index: host_name in /usr/local/nagiosxi/html/includes/components/ccm/classes/import.class.php on line 906
PHP Notice: Undefined index: host_name in /usr/local/nagiosxi/html/includes/components/ccm/classes/import.class.php on line 552
PHP Notice: Undefined index: host_name in /usr/local/nagiosxi/html/includes/components/ccm/classes/import.class.php on line 906
ERROR
Duplicate entry '1' for key 'config_name'Entry host_name:: inside tbl_host could not be inserted: Duplicate entry '1' for key 'config_name'<br>Entry host_name:: inside tbl_host could not be inserted: Duplicate entry '1' for key 'config_name'<br>Entry host_name:: inside tbl_host could not be inserted: Duplicate entry '1' for key 'config_name'<br>
- Importing: /usr/local/nagios/etc/import/xi_timeperiod_24x7.cfg .. SUCCESS
--------------------------------------

Importing into the CCM failed!

Tom
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Upgrading from 5.5.8 to 5.5.10 Success but Failed

Post by scottwilkerson »

Lets remove all the item in the import directory

Code: Select all

rm -f /usr/local/nagios/etc/import/*
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
tmattingly
Posts: 115
Joined: Thu Oct 23, 2014 12:53 pm

Re: Upgrading from 5.5.8 to 5.5.10 Success but Failed

Post by tmattingly »

After rerunning ./upgrade , That was the ticket! You might want to consider updating your instructions on https://assets.nagios.com/downloads/nag ... ctions.pdf (or in the upgrade code) to include this command?

One other question... I am getting Warning duplication definitions (about 15-20) just before the Running pre-flight check notification...

How do I go track those down and remove duplicates? For example,

Warning: Duplicate definition found for service 'ADMIN1 Oracle instance' on host 'fai02021' (config file '/usr/local/nagios/etc/services/cerner_admindb.cfg', starting on line 14)
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Upgrading from 5.5.8 to 5.5.10 Success but Failed

Post by scottwilkerson »

You will want to search your services in the CCM for "ADMIN1 Oracle instance"

then look through each making sure you are not attaching both a host and hostgroup to the same service name that match.

for example, if the host fai02021 is attached to one of the listed, and it is also part of a hostgroup that is also attached to a service with the same name, you would get duplicate definitions warning.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
tmattingly
Posts: 115
Joined: Thu Oct 23, 2014 12:53 pm

Re: Upgrading from 5.5.8 to 5.5.10 Success but Failed

Post by tmattingly »

Is that searching through the gui? If yes then all I get is this (see attachement). If not through the gui where/what files do I look or what tools do I use to search?
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Upgrading from 5.5.8 to 5.5.10 Success but Failed

Post by scottwilkerson »

No, in Configure -> Core Config Manager -> Services
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked