Page 1 of 2

Issue with Manual Update

Posted: Thu May 09, 2019 10:55 am
by AikenPSR
Our Nagios server is behind our corporate proxy with no direct connection to the internet. We update nagios versions using the offline update method which worked fine up through version 5.4.13.

Since that version, our update attempts have been stopped due to the upgrade script trying to download a file shown below.

UPGRADE: Nagios Core upgraded OK.
Fixing wkhtmltox version...
INSTALL: wkhtmltox is being installed...
--2019-05-09 11:24:16-- https://assets.nagios.com/downloads/nag ... x86_64.rpm
Resolving assets.nagios.com... 72.14.181.71, 2600:3c00::f03c:91ff:fedf:b821
Connecting to assets.nagios.com|72.14.181.71|:443... failed: Connection refused.
Connecting to assets.nagios.com|2600:3c00::f03c:91ff:fedf:b821|:443... failed: Network is unreachable.

I've used the url in the script to manually download the wkhtmltox rpm file, but could anyone tell me where to place the .rpm file so that the ugprade script uses the file on hand instead of trying to go online?

Thanks very much,

Drew

Re: Issue with Manual Update

Posted: Thu May 09, 2019 11:24 am
by scottwilkerson
Are you following this offline method through the RPMs?
https://repo.nagios.com/?repo=offline

It should not be reaching out to install that package

Re: Issue with Manual Update

Posted: Thu May 09, 2019 12:00 pm
by AikenPSR
I had been using that method until we started getting errors after the depenency resolution portion of the upgrade script. I found that I was able to get further in the process by downloading the most recent xi-5.6.1.tar.gz file from the base nagios download page, unpacking that to the /tmp folder and then running ./upgrade from the nagiosxi folder.

The upgrade script would run until the failure when it tries to reach out and dowload the file.

I've attached the errors received when using the offline method through RPM's

Re: Issue with Manual Update

Posted: Thu May 09, 2019 12:26 pm
by scottwilkerson
These errors are because you downloaded the el7 version and you have an el6 system.

You need to use this file
https://repo.nagios.com/nagiosxi-offlin ... _64.tar.gz

Re: Issue with Manual Update

Posted: Thu May 09, 2019 12:30 pm
by AikenPSR
Using the el6 yielded the conflicts below:

Error: nagiosxi-ndoutils conflicts with nagiosxi-deps-5.6.1-1.noarch
Error: nagiosxi-mrtg conflicts with nagiosxi-deps-5.6.1-1.noarch
Error: nagiosxi-nsca conflicts with nagiosxi-deps-5.6.1-1.noarch
Error: nagiosxi-nrpe conflicts with nagiosxi-deps-5.6.1-1.noarch
Error: nagiosxi-nrds conflicts with nagiosxi-deps-5.6.1-1.noarch
Error: nagiosxi-nagiosmobile conflicts with nagiosxi-deps-5.6.1-1.noarch
Error: nagiosxi-shellinabox conflicts with shellinabox-2.20-5.el6.x86_64
Error: nagiosxi-shellinabox conflicts with nagiosxi-deps-5.6.1-1.noarch
Error: nagiosxi-nagiosplugins conflicts with nagiosxi-deps-5.6.1-1.noarch
Error: nagiosxi-pnp conflicts with nagiosxi-deps-5.6.1-1.noarch
Error: nagiosxi-nagioscore conflicts with nagiosxi-deps-5.6.1-1.noarch
Error: nagiosxi conflicts with nagiosxi-deps-5.6.1-1.noarch
Error: nagiosxi-nxti conflicts with nagiosxi-deps-5.6.1-1.noarch
Error: nagiosxi-wmic conflicts with nagiosxi-deps-5.6.1-1.noarch
Error: nagiosxi-nxti conflicts with snmptt-1.4-0.9.beta2.el6.noarch

Re: Issue with Manual Update

Posted: Thu May 09, 2019 12:58 pm
by scottwilkerson
This is a result of you running the source upgrade on an RPM based system

You need to remove nagiosxi-deps shellinabox snmptt

Code: Select all

yum remove nagiosxi-deps shellinabox snmptt -y
then run the upgrade again

Re: Issue with Manual Update

Posted: Thu May 09, 2019 2:00 pm
by AikenPSR
Thank you for the assistance, it seems like the upgrade was successful; however the NagiosXi webgui still shows that I'm running ver 5.4.13 instead of the updated 5.6.1. I've restarted the core, but it still seems to think the upgrade has not taken place. I've attached the output from the succesfull update, the only errors were in relation to the MYSQL portion.

Re: Issue with Manual Update

Posted: Thu May 09, 2019 2:14 pm
by scottwilkerson
you should run the following because something happened in part of the upgrade and mysql was not able to restart

Code: Select all

yum reinstall nagiosxi-5.6.1-1.el6.x86_64.rpm

Code: Select all

Running './3-dbservers'...
MySQL installed OK - continuing...
Starting MySQL...
Stopping mysqld:  [  OK  ]
MySQL Daemon failed to start.
Starting mysqld:  [FAILED]
ERROR: MySQL failed to start - exiting.
RESULT=1

Re: Issue with Manual Update

Posted: Thu May 09, 2019 3:24 pm
by AikenPSR
When running the reinstall command, the script seems to stall at this point, I get no indication of any progress, I've let it sit for 15 minutes I have to use Ctrl + Z to get back to the command prompt.

Total size: 135 M
Installed size: 135 M
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : nagiosxi-5.6.1-1.el6.x86_64 1/1

Re: Issue with Manual Update

Posted: Thu May 09, 2019 5:00 pm
by scottwilkerson
Let's cancel that and run the following

Code: Select all

rm -f /usr/local/nagiosxi/html/includes/components/nrdsconfigmanager/install.sh
rm -f /usr/local/nagiosxi/html/includes/components/nagvis/install.sh
rm -f /usr/local/nagiosxi/html/includes/components/snmptrapsender/install.sh
rm -f /usr/local/nagiosxi/html/includes/configwizards/windowswmi/install.sh
rm -f /usr/local/nagiosxi/html/includes/configwizards/domain_expiration/install.sh
rm -f /usr/local/nagiosxi/html/includes/configwizards/ftpserver/install.sh
rm -f /usr/local/nagiosxi/html/includes/configwizards/exchange/install.sh
rm -f /usr/local/nagiosxi/html/includes/configwizards/mailserver/install.sh
rm -f /usr/local/nagiosxi/html/includes/configwizards/mongodb_database/install.sh
rm -f /usr/local/nagiosxi/html/includes/configwizards/mongodb_server/install.sh
rm -f /usr/local/nagiosxi/html/includes/configwizards/folder_watch/install.sh
then, rerun

Code: Select all

yum reinstall nagiosxi-5.6.1-1.el6.x86_64.rpm