Problems Upgrading from 2012 R2.9 to 2014R1.3

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dworthcsl
Posts: 95
Joined: Wed Jan 11, 2012 4:00 pm

Problems Upgrading from 2012 R2.9 to 2014R1.3

Post by dworthcsl »

Hi,

I started the upgrade processes and it failed on compile and configuration. Here is the error:
cd ./base && make install
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios-4.0.7/base'
make install-basic
make[2]: Entering directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios-4.0.7/base'
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/bin
/usr/bin/install -c -m 774 -o nagios -g nagios nagios /usr/local/nagios/bin
/usr/bin/install -c -m 774 -o nagios -g nagios nagiostats /usr/local/nagios/bin
make[2]: Leaving directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios-4.0.7/base'
make strip-post-install
make[2]: Entering directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios-4.0.7/base'
/usr/bin/strip /usr/local/nagios/bin/nagios
/usr/bin/strip /usr/local/nagios/bin/nagiostats
make[2]: Leaving directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios-4.0.7/base'
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios-4.0.7/base'
cd ./cgi && make install
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios-4.0.7/cgi'
Makefile:169: warning: overriding commands for target `tac-xml.cgi'
Makefile:166: warning: ignoring old commands for target `tac-xml.cgi'
make install-basic
make[2]: Entering directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios-4.0.7/cgi'
Makefile:169: warning: overriding commands for target `tac-xml.cgi'
Makefile:166: warning: ignoring old commands for target `tac-xml.cgi'
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/sbin
for file in *.cgi; do \
/usr/bin/install -c -m 775 -o nagios -g nagios $file /usr/local/nagios/sbin; \
done
make[2]: Leaving directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios-4.0.7/cgi'
make strip-post-install
make[2]: Entering directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios-4.0.7/cgi'
Makefile:169: warning: overriding commands for target `tac-xml.cgi'
Makefile:166: warning: ignoring old commands for target `tac-xml.cgi'
for file in *.cgi; do \
/usr/bin/strip /usr/local/nagios/sbin/$file; \
done
make[2]: Leaving directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios-4.0.7/cgi'
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios-4.0.7/cgi'
cd ./html && make install
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios-4.0.7/html'
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/media
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/stylesheets
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/contexthelp
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/docs
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/docs/images
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/js
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/images
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/images/logos
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/includes
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/includes/rss
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/includes/rss/extlib
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/ssi
/usr/bin/install -c -m 664 -o nagios -g nagios robots.txt /usr/local/nagios/share
rm -f /usr/local/nagios/share/index.html
rm -f /usr/local/nagios/share/main.html
rm -f /usr/local/nagios/share/side.html
/usr/bin/install -c -m 664 -o nagios -g nagios jsonquery.html /usr/local/nagios/share
/usr/bin/install -c -m 664 -o nagios -g nagios rss-corefeed.html /usr/local/nagios/share
/usr/bin/install -c -m 664 -o nagios -g nagios rss-newsfeed.html /usr/local/nagios/share
for file in *.php; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share; done
for file in stylesheets/*.css; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share/stylesheets; done
for file in contexthelp/*.html; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share/contexthelp; done
for file in js/*.js; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share/js; done
for file in images/*.gif; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share/images; done
for file in images/*.jpg; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share/images; done
for file in images/*.png; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share/images; done
for file in images/*.ico; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share/images; done
for file in images/logos/*.*; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share/images/logos; done
for file in includes/*.*; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share/includes; done
for file in includes/rss/*.*; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share/includes/rss; done
for file in includes/rss/extlib/*.*; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share/includes/rss/extlib; done
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios-4.0.7/html'
make install-exfoliation
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios-4.0.7'
cp -rf contrib/exfoliation/stylesheets/* /usr/local/nagios/share/stylesheets
cp -rf contrib/exfoliation/images/* /usr/local/nagios/share/images

*** Exfoliation theme installed ***
NOTE: Use 'make install-classicui' to revert to classic Nagios theme

make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios-4.0.7'
make install-basic
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios-4.0.7'
/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 nagcmd -d /usr/local/nagios/var/spool/checkresults
chmod g+s /usr/local/nagios/var/spool/checkresults

*** 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-4.0.7'
Running configuration check... CONFIG ERROR! Restart aborted. Check your Nagios configuration.
Any ideas what I am getting stuck on?

This is running on RHEL 6.5 baremetal. I am upgrading from 2012R2.9 to 2014R1.3.

Thanks,
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Problems Upgrading from 2012 R2.9 to 2014R1.3

Post by tmcdonald »

dworthcsl wrote: Running configuration check... CONFIG ERROR! Restart aborted. Check your Nagios configuration.
Check out our FAQ: http://support.nagios.com/wiki/index.ph ... 14_Upgrade
Former Nagios employee
dworthcsl
Posts: 95
Joined: Wed Jan 11, 2012 4:00 pm

Re: Problems Upgrading from 2012 R2.9 to 2014R1.3

Post by dworthcsl »

I found the doc and the upgrade is proceeding. I assumed it was a config/make issue and not a Nagios configuration file issue. So far so good.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Problems Upgrading from 2012 R2.9 to 2014R1.3

Post by abrist »

Good to hear. You may want to check over the other mentioned upgrade issues in the FAQ, just in case!
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
dworthcsl
Posts: 95
Joined: Wed Jan 11, 2012 4:00 pm

Re: Problems Upgrading from 2012 R2.9 to 2014R1.3

Post by dworthcsl »

Hi,

I am not sure if the upgrade was successful or not. This is the last message after running ./upgrade
2014-07-17 14:39:59 (785 MB/s) - “nagiosql.export.monitoring” saved [14631]

WRITE CONFIGS SUCCESSFUL!
OUTPUT:
Nagios Core 4.0.7
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 06-03-2014
License: GPL

Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Warning: failure_prediction_enabled is obsoleted and no longer has any effect in service type objects (config file '/usr/local/nagios/etc/services/vmw.cfg', starting at line 22)
Error: Could not find any host matching 'kopuxsap204' (config file '/usr/local/nagios/etc/services/sap.cfg', starting on line 190)
Error: Failed to expand host list 'servera' for service 'Check Load 4 CPU ssh' (/usr/local/nagios/etc/services/sap.cfg:190)
Error processing object config files!


***> One or more problems was encountered while processing the config files...

Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.
RET: 1
/usr/local/nagiosxi/nom/checkpoints/nagioscore/errors /usr/local/nagiosxi/scripts
tar: Removing leading `/' from member names
/usr/local/nagiosxi/scripts
LATEST NOM SNAPSHOT: /usr/local/nagiosxi/nom/checkpoints/nagioscore/1405603190.tar.gz
/ /usr/local/nagiosxi/scripts
RESTORING NOM SNAPSHOT : /usr/local/nagiosxi/nom/checkpoints/nagioscore/1405603190.tar.gz
/usr/local/nagiosxi/scripts
SETUID ROOT OK
RESETTING PERMS
When I log into XI it shows that it was upgraded. Looks like the configs reverted so I have to fix all errors that I fixed prior to upgrade. Any ideas on how to verify?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Problems Upgrading from 2012 R2.9 to 2014R1.3

Post by abrist »

My suggestion would be to fix the config errors using the write config files tool in the ccm. Once they are all resolved and verify clean, rerun the upgrade one more time just to be sure that it completed successfully.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
dworthcsl
Posts: 95
Joined: Wed Jan 11, 2012 4:00 pm

Re: Problems Upgrading from 2012 R2.9 to 2014R1.3

Post by dworthcsl »

Will give that a try. The odd thing was that I had to re-enable a config that I disabled, save it, then deactivate it.
dworthcsl
Posts: 95
Joined: Wed Jan 11, 2012 4:00 pm

Re: Problems Upgrading from 2012 R2.9 to 2014R1.3

Post by dworthcsl »

I re-ran and it quickly came back with UPGRADE COMPLETE. Everything looks ok. Thanks again for your help.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Problems Upgrading from 2012 R2.9 to 2014R1.3

Post by lmiltchev »

I'm glad your issue has been resolved! I am locking this topic. If you have more issues/questions, please, start a new thread.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked