Linux Distribution and version?
CentOS release 6.10 (Final)
32 or 64bit?
x86_64
VMware Image or Manual Install of XI?
Hyper-v vhd download
Are there special configurations on your system, ie; is Gnome installed? Are you using a proxy? Are you using SSL?
Not that I'm aware of. no, and no.
**If you are encountering multiple issues that may not be related, start a thread for each issue
I figure I'll start with this one but will do if the other issues persist.
When I tried to upgrade from 5.5.0 to 5.5.1 I got errors that the upgrade failed via the web and to try manually so I tried manually and it reports that it failed to import CCM. When I log back into the web it tells me upgrades are available and when I go to the check it displays
A new Nagios XI update is available.
5.5.1 was released on July 12th, 2018.
Visit http://www.nagios.com to obtain the latest update.
Latest Available Version:
5.5.1
Installed Version:
5.5.1
Last Update Check:
2018-07-26 09:33:03
I've tried a few browsers but it seems the same. I'm not sure what the problem is but I suspect something is corrupted. I've tried deleting CCM files and rewriting and verify seems to indicate things are okay. The upgrade log is now blank but below is the output I get trying to rerun the upgrade. Any advice or suggestions on clearing these errors?
[root@localhost nagiosxi]# ./upgrade
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: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain for ServerName
[ OK ]
Checking required prereqs...
Please wait...
OLD VERSION: 5501
Loaded plugins: fastestmirror
Setting up Update Process
Loading mirror speeds from cached hostfile
* base: mirror.linuxfix.com
* epel: mirror.sjc02.svwh.net
* extras: mirrors.unifiedlayer.com
* updates: mirrors.sonic.net
No Packages marked for Update
Loaded plugins: fastestmirror
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: mirror.linuxfix.com
* epel: mirror.sjc02.svwh.net
* extras: mirrors.unifiedlayer.com
* updates: mirrors.sonic.net
Package perl-Test-Simple-0.92-144.el6.x86_64 already installed and latest version
Package perl-Class-Accessor-0.31-6.1.el6.noarch already installed and latest version
Package perl-Params-Validate-0.92-3.el6.x86_64 already installed and latest version
Package perl-Config-Tiny-2.12-7.1.el6.noarch already installed and latest version
Package perl-Math-Calc-Units-1.07-6.el6.noarch already installed and latest version
Package perl-Number-Format-1.73-3.el6.noarch already installed and latest version
Nothing to do
no crontab for nagios
no crontab for root
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 CCM script permissions
> Setting script permissions
> Setting special component script permissions
> Setting configuration file/directory permissions
> Setting perfdata directory and RRD 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/NNA Sourcegroup - All Sources.cfg .. PHP Notice: Undefined index: host_name in /usr/local/nagiosxi/html/includes/components/ccm/classes/import.class.php on line 551
PHP Notice: Undefined index: host_name in /usr/local/nagiosxi/html/includes/components/ccm/classes/import.class.php on line 905
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>
- Importing: /usr/local/nagios/etc/import/xi_timeperiod_24x7.cfg .. SUCCESS
--------------------------------------
Importing into the CCM failed!
Importing into the CCM failed Upgrading to 5.5.1
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Importing into the CCM failed Upgrading to 5.5.1
Please make sure you can successfully apply configuration before performing the upgrade.
https://support.nagios.com/kb/article.php?id=144
https://support.nagios.com/kb/article.php?id=144
Re: CCM Limited Not Inheriting from Host Groups
Okay, that seems to have been the problem. Rolled back to a previous snapshot and the upgrade went through. though oddly it did say "latest version 5.5.1 and installed version 5.5.2" before I hit upgrade. After it says both are 5.5.2. Thanks!
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: CCM Limited Not Inheriting from Host Groups
Great closingkavan wrote:Okay, that seems to have been the problem. Rolled back to a previous snapshot and the upgrade went through. though oddly it did say "latest version 5.5.1 and installed version 5.5.2" before I hit upgrade. After it says both are 5.5.2. Thanks!