Update to 2014 R1.1 from 2012 R2.9 failed.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Update to 2014 R1.1 from 2012 R2.9 failed.

Post by WillemDH »

Hello,

Tried Updating my production Nagios server to 2014 R1.1 today, but the upgrade script failed with the follwoing message:

Code: Select all

*** Configuration summary for nrpe 2.15 09-06-2013 ***:

 General Options:
 -------------------------
 NRPE port:    5666
 NRPE user:    nagios
 NRPE group:   nagios
 Nagios user:  nagios
 Nagios group: nagios


Review the options above for accuracy.  If they look okay,
type 'make all' to compile the NRPE daemon and client.

cd ./src/; make ; cd ..
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/nrpe/nrpe-2.15/src'
gcc -g -O2 -I/usr/include/openssl -I/usr/include -DHAVE_CONFIG_H -I ../include -I ./../include -o nrpe ./nrpe.c ./utils.c ./acl.c -L/usr/lib64  -lssl -lcrypto -lnsl -lwrap  
gcc -g -O2 -I/usr/include/openssl -I/usr/include -DHAVE_CONFIG_H -I ../include -I ./../include -o check_nrpe ./check_nrpe.c ./utils.c -L/usr/lib64  -lssl -lcrypto -lnsl 
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/nrpe/nrpe-2.15/src'

*** Compile finished ***

If the NRPE daemon and client compiled without any errors, you
can continue with the installation or upgrade process.

Read the PDF documentation (NRPE.pdf) for information on the next
steps you should take to complete the installation or upgrade.

cd ./src/ && make install-daemon
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/nrpe/nrpe-2.15/src'
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/bin
/usr/bin/install -c -m 775 -o nagios -g nagios nrpe /usr/local/nagios/bin
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/nrpe/nrpe-2.15/src'
Stopping xinetd: [  OK  ]

Starting xinetd: [  OK  ]

NRPE installed OK
Upgrading MRTG...
Applying patches to MRTG...
patching file mrtg-2.17.4/bin/cfgmaker
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for perl... /usr/bin/perl
checking for groff... /usr/bin/groff
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for inttypes.h... (cached) yes
checking for unsigned long long... yes
checking for long long... yes
checking for strtoll... yes
checking for printf long long format specifier... %lld
checking for pow in -lm... yes
checking for gdImageGif in -lgd... yes
checking for gdImagePng in -lgd... yes
checking for gdImagePng_jpg in -lgd... no
checking for gdImagePng_jpg_ft in -lgd... no
checking gd.h usability... yes
checking gd.h presence... yes
checking for gd.h... yes
checking the weather... (cached) it's fine
checking if we can use GCC-specific compiler options... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: WARNING:  'Makefile.in' seems to ignore the --datarootdir setting
config.status: creating config.h
ordering CD from http://tobi.oetiker.ch/wish .... just kidding ;-)

----------------------------------------------------------------
Config is DONE!

Type 'make' to compile the software

       ... that wishlist mentioned above does really exist. So if
you feel like showing your appreciation for MRTG, this is the
place to go. I just love CDs and DVDs

                            -- Tobi Oetiker <[email protected]>
----------------------------------------------------------------
gcc  -g -O2 -Wall -Wpointer-arith -Wcast-align -Wmissing-declarations -Wnested-externs -Winline -W -DHAVE_CONFIG_H -c ./src/rateup.c -o bin/rateup.o
./src/rateup.c: In function update:
./src/rateup.c:1590: warning: comparison between signed and unsigned integer expressions
./src/rateup.c:1627: warning: comparison between signed and unsigned integer expressions
./src/rateup.c:1664: warning: comparison between signed and unsigned integer expressions
./src/rateup.c:1701: warning: comparison between signed and unsigned integer expressions
gcc bin/rateup.o -o bin/rateup   -lgd -lpng -lz  -lm
/usr/bin/perl -0777 -p -i~ -e "s'^#!\s*/\S*perl'#! /usr/bin/perl'" ./bin/cfgmaker ./bin/indexmaker ./bin/mrtg
/usr/bin/perl -0777 -p -i~ -e 's@GRAPHFMT="...";@GRAPHFMT="png";@' ./bin/mrtg ./bin/indexmaker
/usr/bin/perl -0777 -p -i~ -e "s'^#!\s*/\S*perl'#! /usr/bin/perl'" ./bin/cfgmaker ./bin/indexmaker ./bin/mrtg
/usr/bin/perl -0777 -p -i~ -e 's@GRAPHFMT="...";@GRAPHFMT="png";@' ./bin/mrtg ./bin/indexmaker
/bin/sh ./mkinstalldirs /usr/bin
for x in ./bin/mrtg ./bin/cfgmaker ./bin/indexmaker ./bin/mrtg-traffic-sum; do \
  /usr/bin/install -c -m 755 $x /usr/bin; done
for x in bin/rateup; do \
  /usr/bin/install -c -m 755 $x /usr/bin; done
/bin/sh ./mkinstalldirs /usr/lib/mrtg2/Pod
mkdir /usr/lib/mrtg2
mkdir /usr/lib/mrtg2/Pod
for x in ./lib/mrtg2/*.pm; do \
  /usr/bin/install -c -m 644 $x /usr/lib/mrtg2; done
for x in ./lib/mrtg2/Pod/*.pm; do \
  /usr/bin/install -c -m 644 $x /usr/lib/mrtg2/Pod; done
/bin/sh ./mkinstalldirs /usr/share/mrtg2/icons
mkdir /usr/share/mrtg2
mkdir /usr/share/mrtg2/icons
for x in ./images/*.gif ./images/*.png; do \
  /usr/bin/install -c -m 644 $x /usr/share/mrtg2/icons; done
/bin/sh ./mkinstalldirs /usr/share/doc/mrtg2
mkdir /usr/share/doc/mrtg2
(cd .; for x in COPYING COPYRIGHT README CHANGES THANKS doc/*.pod doc/*.txt doc/*.png; do \
  /usr/bin/install -c -m 644 $x /usr/share/doc/mrtg2; done)
/bin/sh ./mkinstalldirs /usr/share/man/man1
for x in ./doc/*.1; do \
  /usr/bin/install -c -m 644 $x /usr/share/man/man1; done
MRTG-POST
Traceback (most recent call last):
  File "separate_mrtg_cfgs", line 49, in <module>
    flush_to_file(BUFFER, CURRENT_CONFIG)
  File "separate_mrtg_cfgs", line 16, in flush_to_file
    temp.seek(0)
AttributeError: 'NoneType' object has no attribute 'seek'
I only posted the last set of lines of console output, as there seems to be a maximum of 60000 characters in a post. I'm guessing "AttributeError: 'NoneType' object has no attribute 'seek'" caused the script to stop.

I reverted to the VMWare snapshot I took just before the update. Please advise what to do. Tried Googling the error and looked in the forums, but did not find any similar problems.

Grtz

Willem
Nagios XI 5.8.1
https://outsideit.net
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Update to 2014 R1.1 from 2012 R2.9 failed.

Post by scottwilkerson »

@WillemDH - what version of python is the production system running?

Code: Select all

python -V
The error is in a python script we have that is made to split up MRTG configurations into multiple files, does this system have any customization made to how MRTG was setup?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Update to 2014 R1.1 from 2012 R2.9 failed.

Post by WillemDH »

Hey Scott,

Python version:

Code: Select all

python -v
Python 2.6.6
We tried to add some switches in the past. As out network team is kind of understaffed, they did not have the time yet to migrate our Alcatel Omnivista monitoring software to Nagios XI. So normally, our mrtg should be kind of 'blank' or some minor changes that are not really necessary.

Grtz

Willem
Nagios XI 5.8.1
https://outsideit.net
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Update to 2014 R1.1 from 2012 R2.9 failed.

Post by scottwilkerson »

A relatively blank config shouldn't make much difference, but we can skip the splitting (and where it failed ) by running the following before ./upgrade

Code: Select all

sed -i 's/python/#python/g' /tmp/nagiosxi/subcomponents/mrtg/post_install
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Update to 2014 R1.1 from 2012 R2.9 failed.

Post by WillemDH »

hello,

Running

Code: Select all

sed -i 's/python/#python/g' /tmp/nagiosxi/subcomponents/mrtg/post_install
before ./upgrade did the trick. Nagios XI seems to be installed. I did have multiple other issues, mainly with monitored websites. About 8 content checks of web appliactions suddenly started reporting errors and 302 status codes. I had to change some config for each of them. It seems better now. Is it possible some things changed in the check_http plugin?

Apart from that the performance grapher service crashed 10 minutes ago. I started the service through the gui. I hope it stays alive now.

Grtz
Nagios XI 5.8.1
https://outsideit.net
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Update to 2014 R1.1 from 2012 R2.9 failed.

Post by slansing »

Yes, I believe there were changes made to check_http. I do know a number of other plugins were changed as well, you can view the version notes here:

http://nagios-plugins.org/
User avatar
WillemDH
Posts: 2320
Joined: Wed Mar 20, 2013 5:49 am
Location: Ghent
Contact:

Re: Update to 2014 R1.1 from 2012 R2.9 failed.

Post by WillemDH »

Ok,

A few other issues:

Just noticed after upgrade to nagios XI 2014 R1.1 that I have about 50 dashboards that are not listed alphabetically when I click on the 'add to dasboard' icon. Kind of hard to look for the right dasboard.. :)

I reopened the bug report I did some time ago => http://tracker.nagios.com/view.php?id=496

I also noticed this issue also has not been solved yet => http://tracker.nagios.com/view.php?id=494 When I add two multistacked graphs with the same set of counters / names, the order and colors are different on each dashlet, which makes looking at dashboards with multiple multistacked daslets on very confusing.

Apart from the minor issues above, I would like to thank the Nagios team again for all the work you put in it. It's definitely a major improvement.

Grtz

Willem
Nagios XI 5.8.1
https://outsideit.net
vAJ
Posts: 456
Joined: Thu Nov 08, 2012 5:09 pm
Location: Austin, TX

Re: Update to 2014 R1.1 from 2012 R2.9 failed.

Post by vAJ »

There were changes to the Website Wizard in XI, that's what stumped me after the upgrade.

http://support.nagios.com/forum/viewtop ... 16&t=27056
Andrew J. - Do you even grok?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Update to 2014 R1.1 from 2012 R2.9 failed.

Post by abrist »

WillemDH: As there are tracker issues opened for those, we will have to wait until the devs get a chance to sink their teeth into those issues

vAJ: Those changes should be very minor, did changing the template by removing "-H" fix the A10 issue? I think we tracked the issue in that thread down to a missing FIN from your A10.
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.
vAJ
Posts: 456
Joined: Thu Nov 08, 2012 5:09 pm
Location: Austin, TX

Re: Update to 2014 R1.1 from 2012 R2.9 failed.

Post by vAJ »

Yes, changing the switch fixed it. I don't know why the A10 was missing the FIN.
Andrew J. - Do you even grok?
Locked