Page 1 of 1

Problem upgrading from 2011R2.4 to 2011R3.2

Posted: Thu Jun 28, 2012 2:13 pm
by Jdawg2002
I am trying to upgrade my NagiosXI installation from 2.4 to 3.2. I followed the upgrade instructions exactly as they were documented. However, after the upgrade was run, my installation did not get upgraded and I am prompted to upgrade:

Your installation of Nagios XI 2011R2.4 is outdated and should be upgraded. The latest version of Nagios XI is 2011R3.2, which was released on 2012-06-27.

I have rebooted and tried the upgrade 3 times with no luck. I am running CentOS release 6.2. Below are the last lines of the upgrade:

make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios'
make install-basic
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios'
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/libexec
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/var
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/var/archives
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/var/spool/checkresults
if [ no = yes ]; then \
/usr/bin/install -c -m 664 -o nagios -g nagios p1.pl /usr/local/nagios/bin; \
fi;

*** Main program, CGIs and HTML files installed ***

You can continue with installing Nagios as follows (type 'make'
without any arguments for a list of all possible options):

make install-init
- This installs the init script in /etc/rc.d/init.d

make install-commandmode
- This installs and configures permissions on the
directory for holding the external command file

make install-config
- This installs sample config files in /usr/local/nagios/etc

make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios'
Running configuration check...done.
Stopping nagios: done.
Starting nagios: done.
Saving old crontab to /tmp/nagios.crontab.orig.1...
no crontab for nagios

Re: Problem upgrading from 2011R2.4 to 2011R3.2

Posted: Thu Jun 28, 2012 3:08 pm
by lmiltchev
Go to the nagiosxi directory:

Code: Select all

cd /tmp/nagiosxi
Edit both scripts, the "uninstall-crontab-nagios" and "uninstall-crontab-root" in a text editor by removing the "-e" from the first line and changing it from:

Code: Select all

#!/bin/sh -e
to

Code: Select all

#!/bin/sh
After this, run the ./upgrade again.

Hope this helps.

Re: Problem upgrading from 2011R2.4 to 2011R3.2

Posted: Thu Jun 28, 2012 3:21 pm
by Jdawg2002
Yes! That worked. Thanks.

Re: Problem upgrading from 2011R2.4 to 2011R3.2

Posted: Thu Jun 28, 2012 4:04 pm
by lmiltchev
I am glad I could help!