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
Problem upgrading from 2011R2.4 to 2011R3.2
Re: Problem upgrading from 2011R2.4 to 2011R3.2
Go to the nagiosxi directory:
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:
to
After this, run the ./upgrade again.
Hope this helps.
Code: Select all
cd /tmp/nagiosxiCode: Select all
#!/bin/sh -eCode: Select all
#!/bin/shHope this helps.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Problem upgrading from 2011R2.4 to 2011R3.2
Yes! That worked. Thanks.
Re: Problem upgrading from 2011R2.4 to 2011R3.2
I am glad I could help!
Be sure to check out our Knowledgebase for helpful articles and solutions!