Nagios XI Update in Progress Loop

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
blake.volk
Posts: 10
Joined: Thu Jun 16, 2016 3:43 pm

Nagios XI Update in Progress Loop

Post by blake.volk »

I have been having an issue where Nagios says an update is available, but it doesn't update. I have tried rebooting the server and as soon as it comes back up it goes back to the same state.

Steps I have tried:
Rebooting httpd
Rebooting Server
Manually updating server from Console

Thanks for the Help!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios XI Update in Progress Loop

Post by scottwilkerson »

Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
blake.volk
Posts: 10
Joined: Thu Jun 16, 2016 3:43 pm

Re: Nagios XI Update in Progress Loop

Post by blake.volk »

I did I ran the quick method should I try the full Manual method?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios XI Update in Progress Loop

Post by scottwilkerson »

Can you attach the upgrade.log from /tmp/nagiosxi ?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
blake.volk
Posts: 10
Joined: Thu Jun 16, 2016 3:43 pm

Re: Nagios XI Update in Progress Loop

Post by blake.volk »

Nagios XI Upgrade Log
==========================
DATE: Thu Aug 15 10:37:19 CDT 2019

DISTRO INFO:
CentOS
6.7
x86_64


Archive: sourceguardian/ixed4.lin.x86-64.zip
inflating: /usr/lib64/php/modules/ixed.5.3.lin
Sourceguardian extension found for PHP version 5.3
Sourceguardian extension already in php.ini
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
Checking required prereqs...
Please wait...

OLD VERSION: 5605
Loaded plugins: fastestmirror
Setting up Update Process
Loading mirror speeds from cached hostfile
Could not get metalink https://mirrors.fedoraproject.org/metal ... rch=x86_64 error was
14: problem making ssl connection
* base: ftpmirror.your.org
* epel: mirror.grid.uchicago.edu
* extras: mirror.cs.uwp.edu
* updates: mirror.grid.uchicago.edu
No Packages marked for Update
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
Could not get metalink https://mirrors.fedoraproject.org/metal ... rch=x86_64 error was
14: problem making ssl connection
* base: ftpmirror.your.org
* epel: mirror.grid.uchicago.edu
* extras: mirror.cs.uwp.edu
* updates: mirror.grid.uchicago.edu
Package php-imap-5.3.3-49.el6.x86_64 already installed and latest version
Nothing to do
Copying over new XI directory...
Patching NDOUtils...
NDOUtils already patched at level 103
Installing new PNP templates...
Enabling large install tweaks...
Fixing config file permissions...
Fixing htpasswd permissions...
Checking group memberships...
Installing new XI templates...

--- reset_config_perms.sh ------------
> Setting script permissions
> Setting CCM script permissions
> Setting special script permissions
> Setting special component script permissions
> Setting configuration file/directory permissions
> Setting perfdata directory and RRD permissions
> Setting libexec directory permissions
> Setting Nagios XI config permissions
> Setting NOM checkpoint user:group permissions
> + Setting CCM configuration file user:group permissions
> + Setting Recurring Downtime file user:group permissions
> + Setting BPI configuration file user:group permissions
--------------------------------------

--- ccm_import.php -------------------
> Setting import directory: /usr/local/nagios/etc/import/
> Importing config files into the CCM
- Importing: /usr/local/nagios/etc/import/xi_timeperiod_24x7.cfg .. SUCCESS
--------------------------------------

--- ccm_export.php -------------------
> Writing CCM configuration to Nagios files
Finished writing out configuraton
--------------------------------------

--------------------------------------
> Verifying configuration with Nagios Core
> Output:
Nagios Core 4.4.3
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2019-01-15
License: GPL

Website: https://www.nagios.org
Reading configuration data...
Read main config file okay...
Warning: Duplicate definition found for service 'Printer Status' on host 'LEC Booking' (config file '/usr/local/nagios/etc/services/MIS_C3480i.cfg', starting on line 31)
Warning: Duplicate definition found for service 'Printer Status' on host 'MIS_HP4000' (config file '/usr/local/nagios/etc/services/MIS_C3480i.cfg', starting on line 31)
Error: Contact 'xi_default_contact' is not defined anywhere!
Error: Could not add contact 'xi_default_contact' to host (config file '/usr/local/nagios/etc/hosts/HCC-MDF-S1.cfg', starting on line 16)
Error processing object config files!


***> One or more problems was encountered while processing the config files...

Check your configuration file(s) to ensure that they contain valid
directives and data definitions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.
> Return Code: 1
--------------------------------------
/usr/local/nagiosxi/nom/checkpoints/nagioscore/errors /usr/local/nagiosxi/scripts
/usr/local/nagiosxi/scripts
LATEST NOM SNAPSHOT: /usr/local/nagiosxi/nom/checkpoints/nagioscore/1565825522.tar.gz
/ /usr/local/nagiosxi/scripts
RESTORING NOM SNAPSHOT : /usr/local/nagiosxi/nom/checkpoints/nagioscore/1565825522.tar.gz
/usr/local/nagiosxi/scripts

--- reset_config_perms.sh ------------
> Setting script permissions
> Setting CCM script permissions
> Setting special script permissions
> Setting special component script permissions
> Setting configuration file/directory permissions
> Setting perfdata directory and RRD permissions
> Setting libexec directory permissions
> Setting Nagios XI config permissions
> Setting NOM checkpoint user:group permissions
> + Setting CCM configuration file user:group permissions
> + Setting Recurring Downtime file user:group permissions
> + Setting BPI configuration file user:group permissions
--------------------------------------
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios XI Update in Progress Loop

Post by scottwilkerson »

I see what is happening, you have a configuration error and this needs to be addressed before the upgrade can complete.

Go to the CCM -> Hosts
search for MIS_C3480i
Edit this host
Go to Alert Setting Tab
Click "Manage Contacts"
Remove xi_default_contact if it is set
Click Close
Save
Apply Configuration

If the configuration applies successfully, re-attempt the upgrade
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
blake.volk
Posts: 10
Joined: Thu Jun 16, 2016 3:43 pm

Re: Nagios XI Update in Progress Loop

Post by blake.volk »

It now says I am on update 5.6.5 but in the GUI it still says update in progress please wait.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios XI Update in Progress Loop

Post by scottwilkerson »

blake.volk wrote:It now says I am on update 5.6.5 but in the GUI it still says update in progress please wait.
If the GUI you can click the Go Back button and it should clear the attempted upgrade from the GUI.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked