Page 1 of 3

Nagios XI 5.7.2

Posted: Wed Jul 22, 2020 11:59 am
by dbcummings
We upgraded 5.7.1 to 5.7.2 using the offline installer. However, the version number is still 5.7.1 in the Nagios XI interface. And there were some errors that popped up during the upgrade. I can PM the errors to whoever from Nagios picks up this post.

Re: Nagios XI 5.7.2

Posted: Thu Jul 23, 2020 11:39 am
by jbrunkow
You can send the errors to me! ;)

It never hurts to send ( PM ) us a profile either! We can find lots of information about your system in there. You can download the profile by navigating to System Profile under System Config on the left pane > and clicking the Download Profile button on that page.

Re: Nagios XI 5.7.2

Posted: Thu Jul 23, 2020 11:46 am
by dbcummings
Bump

Re: Nagios XI 5.7.2

Posted: Fri Jul 24, 2020 6:37 am
by dbcummings
bump

Re: Nagios XI 5.7.2

Posted: Fri Jul 24, 2020 9:33 am
by jbrunkow
Please send us the upgrade.log, so that we can determine what the problem might be.

Re: Nagios XI 5.7.2

Posted: Fri Jul 24, 2020 10:56 am
by jbrunkow
It appears that a subscript of RPM failed to install, but didn't report it to the package manager. We need to run a few commands to determine exactly what went wrong.

Download this install file tmp directory of your XI server:

Code: Select all

cd /tmp
wget https://repo.nagios.com/nagiosxi-offline/nagiosxi-5.7.2-2.el7.x86_64.tar.gz
Then run these commands as root on your XI server.

Code: Select all

cd /tmp
rm -rf nagiosxi
tar zxf nagiosxi-5.7.2-2.el7.x86_64.tar.gz
mv nagiosxi nag
cd nag
rpm2cpio nagiosxi-5.7.2-2.el7.x86_64.rpm | cpio -idmv
cd tmp/nagiosxi
./rpmupgrade
Please send us the entire output of these commands so that we can help you resolve these errors.

Re: Nagios XI 5.7.2

Posted: Fri Jul 24, 2020 11:12 am
by dbcummings
I have pm'd you the results.

Re: Nagios XI 5.7.2

Posted: Fri Jul 24, 2020 12:04 pm
by jbrunkow
After examining the output of those commands, it seems that it is the db-mgmt.sh of your upgrade that is failing.

The upgrade scripts checks for the existence of a database to determine whether it should perform an upgrade or install. It must not be detecting a database, because your logs indicate it is trying to perform an install.

Code: Select all

# check if db is already set up
if [ $(check_database_installed) -eq 0 ]; then
    # ..and if it's been populated already
    if [ $(check_database_populated) -eq 0 ]; then
        upgrade=TRUE
        install=FALSE
    fi
fi
Can you please run the following command on that system so we can see where that process is failing?

Code: Select all

bash -x rpmupgrade

Re: Nagios XI 5.7.2

Posted: Mon Jul 27, 2020 6:47 am
by dbcummings
I have no idea why, but it appears to have worked this time. I am PM'ing you results.

Re: Nagios XI 5.7.2

Posted: Mon Jul 27, 2020 6:59 am
by dbcummings
Well, it worked in that the version in the interface is updated to 5.7.2.

However, neither the host status check or the service checks are running. I attempted to force them, but they don't update.