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
Upgrade to 5.5.8 failed
Re: Upgrade to 5.5.8 failed
Try commenting out the following section of code in the /tmp/nagiosxi/upgrade script:
as described in this post:
https://support.nagios.com/forum/viewto ... 0&start=20
Did this help?
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
#fihttps://support.nagios.com/forum/viewto ... 0&start=20
Did this help?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Upgrade to 5.5.8 failed
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
: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
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
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
Re: Upgrade to 5.5.8 failed
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):
then try rerunning the upgrade script with the "-f" flag:
Also, make sure to check if you have the epel repo added before running the above commands:
If epel is not added, you would need to add it to your system.
Code: Select all
yum install snmptt net-snmp net-snmp-perl -yCode: Select all
cd /tmp/nagiosxi
./upgrade -fCode: Select all
yum repolistBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Upgrade to 5.5.8 failed
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!
---------------------------
--------------------------------------
> 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.
Re: Upgrade to 5.5.8 failed
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!
Re: Upgrade to 5.5.8 failed
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!
Re: Upgrade to 5.5.8 failed
You are very welcome!
I am locking the thread.
I am locking the thread.
Be sure to check out our Knowledgebase for helpful articles and solutions!