Page 1 of 1
RPM failing to update on fresh build
Posted: Tue Aug 06, 2019 2:59 pm
by dfmco
We have been having a LOT of issues with updating a few of our servers that were built on setup and rpm installs so we decided to rebuild from scratch. We have a new server running 5.6.3 and even though the repository looks like it has 5.6.5 in it, a yum update does not update Nagios on the new server (it failed on the old server too). We need to understand why a fresh install fails to update before we try re-installing the remaining servers. I even tried to manually install the RPM package from the repository and that fails as well.
Re: RPM failing to update on fresh build
Posted: Wed Aug 07, 2019 8:41 am
by tgriep
What sort of errors are you receiving when you are trying to run the upgrade?
What procedure are you using to upgrade the server?
The data in the profile suggest that the server was a source install and not an rpm install. Do you know how the server was originally created?
Please run the following commands ad root and post the /tmp/info.txt file to the ticket.
Code: Select all
yum repolist >/tmp/info.txt
yum list installed >>/tmp/info.txt
Thanks
Re: RPM failing to update on fresh build
Posted: Wed Aug 07, 2019 8:53 am
by dfmco
Here is the info. If you have a path that you want to follow, please send me all of the commands that we need to run and I will get that done to reduce the back and forth.
Thanks!
Re: RPM failing to update on fresh build
Posted: Wed Aug 07, 2019 1:08 pm
by lmiltchev
What procedure are you using to upgrade the server? Do you know how the server was originally created?
Is your Nagios XI in an offline environment? Are you using a proxy? Is SELinux enabled?
Can you update the system successfully by running "yum update"?
Do you have the /tmp/xi-upgrade.log file on the system? If you do, can you please post it on the forum?
Re: RPM failing to update on fresh build
Posted: Wed Aug 07, 2019 4:03 pm
by dfmco
yum -y update which has worked on others.
The old install was RPM and was failing so we rebuilt from scratch and only Nagios updates fail.
Yum works great for all system updates and because nagiosxi was installed using yum, I know the repositories are good.
We are not offline and not using a proxy. selinux is disabled.
There is no existing /tmp/xi-upgrade.log. The system was built new with 5.6.3 and has not updated since. I did not think the rpm update would create that tmp file as well. Can you confirm?
Here is the output of just an xi upgrade attempt:
[root@nortx-jack-netmon-pri tmp]# yum update nagiosxi
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
epel/x86_64/metalink | 17 kB 00:00:00
* base: repo1.dal.innoscale.net
* epel: mirror.dal.nexril.net
* extras: repo1.dal.innoscale.net
* updates: repo1.dal.innoscale.net
base | 3.6 kB 00:00:00
extras | 3.4 kB 00:00:00
nagios-base | 1.5 kB 00:00:00
nagiosxi-deps | 1.5 kB 00:00:00
pdagent | 2.5 kB 00:00:00
updates | 3.4 kB 00:00:00
No packages marked for update
yum update was done yesterday so no new packages to show there but it did update several yesterday so I know it is working.
Firewall logs show no blocks at all. It is if the system does not realize that 5.6.3 is installed or that 5.6.5 is available. Not sure how to figure out which is the case.
Re: RPM failing to update on fresh build
Posted: Wed Aug 07, 2019 4:09 pm
by dfmco
AHHA!
This is interesting:
[root@nortx-jack-netmon-pri tmp]# yum info nagiosxi
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: repo1.dal.innoscale.net
* epel: mirror.dal.nexril.net
* extras: repo1.dal.innoscale.net
* updates: repo1.dal.innoscale.net
Installed Packages
Name : nagiosxi
Arch : x86_64
Version : 5.6.5 <--- well, yum thinks 5.6.5 is installed but the GUI does not agree (see attached screenshot)
Release : 1.el7
Size : 164 M
Repo : installed
From repo : nagios-base
nagios screenshot 20190807_160744.png
Re: RPM failing to update on fresh build
Posted: Thu Aug 08, 2019 9:46 am
by lmiltchev
Can you run:
to see if this is going to fix the issue?
If Nagios XI 5.6.5 doesn't get installed, at least the xi-upgrade.log *should* get generated, and we may be able to find some clues in it.
Re: RPM failing to update on fresh build
Posted: Thu Aug 08, 2019 2:15 pm
by dfmco
SWEET! The reinstall worked! Here is the upgrade log for completeness:
Code: Select all
Archive: sourceguardian/ixed4.lin.x86-64.zip
inflating: /usr/lib64/php/modules/ixed.5.4.lin
Sourceguardian extension found for PHP version 5.4
Sourceguardian extension already in php.ini
Redirecting to /bin/systemctl restart httpd.service
Checking required prereqs...
Please wait...
Copying over new XI directory...
Patching NDOUtils...
NDOUtils already patched at level 103
Updating sequences...
Postgres Database not being used
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...
Read object config files okay...
Running pre-flight check on configuration data...
Checking objects...
Checked 127 services.
Checked 11 hosts.
Checked 1 host groups.
Checked 0 service groups.
Checked 3 contacts.
Checked 18 contact groups.
Checked 140 commands.
Checked 8 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 11 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 8 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
> Return Code: 0
--------------------------------------
Fixing php-mcrypt bug...
Thanks for your help!
Re: RPM failing to update on fresh build
Posted: Thu Aug 08, 2019 3:46 pm
by lmiltchev
I am glad I was able to help! I will be closing this topic now. If you have any further questions, please start a new thread.