Page 1 of 1
NagiosXI Upgrade 5.4.13 to 5.5 failed
Posted: Wed Jul 11, 2018 2:14 pm
by jaroork
I followed the instructions according to
https://assets.nagios.com/downloads/nag ... ctions.pdf
The "Quick" upgrade failed, so I tried the "Manual Download" method.
The manual upgrade failed twice so I installed the following 2 packages in hopes that the install would continue:
snmptt-1.4-0.9.beta2.el7.noarch.rpm
shellinabox-2.20-5.el7.x86_64.rpm
The upgrade script runs for a while, then just stops after:
NRPE installed OK
Updating NRDP..
There's simply nothing else written in the upgrade instructions.
I've attached the upgrade.log; does anyone know why the upgrade failed?
$ cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.5 (Maipo)
Re: NagiosXI Upgrade 5.4.13 to 5.5 failed
Posted: Wed Jul 11, 2018 2:33 pm
by scottwilkerson
This issue will be fixed in the next release of Nagios XI. As a "workaround", comment out the following section in the "upgrade" script:
Code: Select all
# Uninstall ajaxterminal to install shellinabox
rpmcheck=$(rpm -q Ajaxterm)
if [ $? -eq 0 ]; then
rpm -e Ajaxterm
cp -f "$httpdconfdir/ssl.conf" "$httpdconfdir/ssl.conf.nagiosxibackup"
sed -i '/## AJAXTERM #####################/,+12d' "$httpdconfdir/ssl.conf"
rm -f $proddir/html/admin/ajaxterm.php
fi
so that it would look like this:
Code: Select all
# Uninstall ajaxterminal to install shellinabox
#rpmcheck=$(rpm -q Ajaxterm)
#if [ $? -eq 0 ]; then
# rpm -e Ajaxterm
# cp -f "$httpdconfdir/ssl.conf" "$httpdconfdir/ssl.conf.nagiosxibackup"
# sed -i '/## AJAXTERM #####################/,+12d' "$httpdconfdir/ssl.conf"
# rm -f $proddir/html/admin/ajaxterm.php
#fi
Save, exit, and rerun the upgrade script:
Re: NagiosXI Upgrade 5.4.13 to 5.5 failed
Posted: Thu Jul 12, 2018 1:55 pm
by jaroork
It looks like commenting out that bit did the trick.
However, I did notice now that I'm on 5.5, many of my sslcert checks are failing.
I tried replacing check_http with the a plugin from my backup of XI 5.4.13, but it seemed to have the same behavior.
I don't understand why check_http says "CRITICAL - Socket timeout" when, if I add --verbose, I can see the answer I'm expecting within a few seconds. It gives the sslcert expiration date, but doesn't return it to Nagios; instead it hangs till the 30 second timeout hits.
$ time /usr/local/nagios/libexec/check_http -H auvpngw.multiservice.com -S --sni -C 7 -t 30 -f ok --verbose
SSL initialized
SSL OK - Certificate 'auvpngw.multiservice.com' will expire on 2019-03-28 13:49 -0500/CDT. GET / HTTP/1.1
User-Agent: check_http/v2.2.1 (nagios-plugins 2.2.1)
Connection: close
Host: auvpngw.multiservice.com
Accept: */*
CRITICAL - Socket timeout
real 0m30.004s
user 0m0.004s
sys 0m0.005s
Do you know why my sslcert checks fail after the upgrade to 5.5?
Re: NagiosXI Upgrade 5.4.13 to 5.5 failed
Posted: Thu Jul 12, 2018 2:46 pm
by scottwilkerson
We just released 5.5.1 today that has a fix for this as well as a few others.
Re: NagiosXI Upgrade 5.4.13 to 5.5 failed
Posted: Thu Jul 12, 2018 3:31 pm
by jaroork
Thanks, 5.5.1 fixed all the issues I had!
Re: NagiosXI Upgrade 5.4.13 to 5.5 failed
Posted: Thu Jul 12, 2018 3:45 pm
by scottwilkerson
jaroork wrote:Thanks, 5.5.1 fixed all the issues I had!
Excellent!
Closing