Upgrade to 5.5.8 failed

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
w-bao
Posts: 33
Joined: Mon Apr 04, 2016 11:57 am

Upgrade to 5.5.8 failed

Post by w-bao »

We are at Nagios XI 5.4.11 and I was trying to upgrade it to the latest version 5.5.8 last night but failed. I did it from the GUI, Quick upgrade and Manual upgrade following your instructions but all failed at the same place. The Nagios server has no problem connecting to Internet, including https://assets.nagios.com/.

xxxxxxxxxxxxxxxxxxxxxxxxxxx
*** Compile finished ***

You can now continue with the installation or upgrade process.

Read the PDF documentation (docs/NRPE.pdf) for information on the next
steps you should take to complete the installation or upgrade.

cd ./src/; make install-plugin
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/nrpe/nrpe-3.2.1/src'
/bin/install -c -m 755 -d /usr/local/nagios/bin
/bin/install -c -m 755 ../uninstall /usr/local/nagios/bin/nrpe-uninstall
/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/libexec
/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/libexec
/bin/install -c -m 775 -o nagios -g nagios check_nrpe /usr/local/nagios/libexec
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/nrpe/nrpe-3.2.1/src'
cd ./src/; make install-daemon
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/nrpe/nrpe-3.2.1/src'
/bin/install -c -m 755 -d /usr/local/nagios/bin
/bin/install -c -m 755 ../uninstall /usr/local/nagios/bin/nrpe-uninstall
/bin/install -c -m 755 nrpe /usr/local/nagios/bin
/bin/install -c -m 755 -d /usr/lib/tmpfiles.d
/bin/install -c -m 644 ../startup/tmpfile.conf /usr/lib/tmpfiles.d/nrpe.conf
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/nrpe/nrpe-3.2.1/src'
/bin/install -c -m 644 startup/default-service /usr/lib/systemd/system/nrpe.service
UPGRADE: NRPE upgraded OK.
UPGRADE: NRDP is being upgraded...
UPGRADE: NRDP upgraded OK.
Finished updating Core, Plugins, NRPE, NRDP ...
Upgrading MySQL database for XI...
Removing Ajaxterm...
Installing new SSH Terminal...
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-
: manager
No package shellinabox available.
Error: Nothing to do
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Upgrade to 5.5.8 failed

Post by lmiltchev »

Try commenting out the following section of code in the /tmp/nagiosxi/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
as described in this post:
https://support.nagios.com/forum/viewto ... 0&start=20

Did this help?
Be sure to check out our Knowledgebase for helpful articles and solutions!
w-bao
Posts: 33
Joined: Mon Apr 04, 2016 11:57 am

Re: Upgrade to 5.5.8 failed

Post by w-bao »

This issue is fixed after I commented out both "# Uninstall ajaxterminal to install shellinabox" and "# Install new sshterminal if it needs to install it"

Yet, the upgrade stopped with the messages below. Does it look complete? From the web GUI, it look like it has been upgraded to 5.5.8. But can you double-check?

Your Nagios XI installation is up to date.

Latest Available Version: 5.5.8
Installed Version: 5.5.8
Last Update Check: 2018-12-18 15:52:06

--2018-12-18 15:45:05-- http://assets.nagios.com/downloads/supp ... ns.tar.bz2
Resolving assets.nagios.com (assets.nagios.com)... 72.14.181.71, 2600:3c00::f03c:91ff:fedf:b821
Connecting to assets.nagios.com (assets.nagios.com)|72.14.181.71|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://assets.nagios.com/downloads/sup ... ns.tar.bz2 [following]
--2018-12-18 15:45:05-- https://assets.nagios.com/downloads/sup ... ns.tar.bz2
Connecting to assets.nagios.com (assets.nagios.com)|72.14.181.71|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8843 (8.6K) [application/x-bzip2]
Saving to: ‘snmptrap-bins.tar.bz2’

100%[===================================================================================================================================>] 8,843 --.-K/s in 0s

2018-12-18 15:45:05 (92.5 MB/s) - ‘snmptrap-bins.tar.bz2’ saved [8843/8843]


Updating snmptt.ini

cp: cannot stat ‘/etc/snmp/snmptt.ini’: No such file or directory
sed: can't read /etc/snmp/snmptt.ini: No such file or directory
sed: can't read /etc/snmp/snmptt.ini: No such file or directory
sed: can't read /etc/snmp/snmptt.ini: No such file or directory
sed: can't read /etc/snmp/snmptt.ini: No such file or directory
sed: can't read /etc/snmp/snmptt.ini: No such file or directory
sed: can't read /etc/snmp/snmptt.ini: No such file or directory
sed: can't read /etc/snmp/snmptt.ini: No such file or directory
sed: can't read /etc/snmp/snmptt.ini: No such file or directory
sed: can't read /etc/snmp/snmptt.ini: No such file or directory
sed: can't read /etc/snmp/snmptt.ini: No such file or directory

Creating snmptrapd.conf


Adding the snmptt user to the nagios and nagcmd groups

usermod: user 'snmptt' does not exist
usermod: user 'snmptt' does not exist

Modifying permissions

/bin/chown: cannot access ‘/etc/snmp/snmptt.conf’: No such file or directory
chmod: cannot access ‘/etc/snmp/snmptt.conf’: No such file or directory
/bin/chown: invalid user: ‘snmptt:snmptt’
chmod: cannot access ‘/var/spool/snmptt’: No such file or directory
chmod: cannot access ‘/var/log/snmptt’: No such file or directory

Adding firewall rules

FirewallD is not running
FirewallD is not running

Set up the snmptt daemon to start automatically on boot
as well as starting it now

Failed to execute operation: No such file or directory
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Upgrade to 5.5.8 failed

Post by lmiltchev »

I wonder if you are missing some of the required packages. Run the following command to install the snmp packages (if they are not installed yet):

Code: Select all

yum install snmptt net-snmp net-snmp-perl -y
then try rerunning the upgrade script with the "-f" flag:

Code: Select all

cd /tmp/nagiosxi
./upgrade -f
Also, make sure to check if you have the epel repo added before running the above commands:

Code: Select all

yum repolist
If epel is not added, you would need to add it to your system.
Be sure to check out our Knowledgebase for helpful articles and solutions!
w-bao
Posts: 33
Joined: Mon Apr 04, 2016 11:57 am

Re: Upgrade to 5.5.8 failed

Post by w-bao »

You are right! It turned out epel repo was disabled. I enabled it and installed snmptt, net-snmp, and net-snmp-perl. Then I ran "./upgrade -f". This time, the upgrade seems to be complete. I attached the upgrade log. Could you please double-check to see if it is actually complete? Thanks much!

--------------------------------------
> Verifying configuration with Nagios Core
> Output:
Nagios Core 4.4.2
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 2018-08-16
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 409 services.
Checked 36 hosts.
Checked 4 host groups.
Checked 0 service groups.
Checked 20 contacts.
Checked 5 contact groups.
Checked 132 commands.
Checked 26 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 36 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 26 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
--------------------------------------

Nagios XI Upgrade Complete!
---------------------------
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Upgrade to 5.5.8 failed

Post by lmiltchev »

The log looks fine - it seems that this time you were able to finish the upgrade successfully. Is it safe to close this topic now? Let us know if you have any further questions. Thank you!
Be sure to check out our Knowledgebase for helpful articles and solutions!
w-bao
Posts: 33
Joined: Mon Apr 04, 2016 11:57 am

Re: Upgrade to 5.5.8 failed

Post by w-bao »

Now that you checked the log and confirmed the upgrade finished successfully, yes you can close out this ticket. Thanks a lot for your prompt help!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Upgrade to 5.5.8 failed

Post by lmiltchev »

You are very welcome!

I am locking the thread.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked