Page 4 of 7

Re: 2014R1.0RC1 Initial reaction and question(s)

Posted: Mon Apr 21, 2014 10:28 am
by b2m
It says version Nagios XI 2014R1.0RC2 now. I upgraded from RC1. The issue is still there. Could you tell me what could be missing in my installation?

Btw, in the TODO file of the Switch wizzard it says "Issue: SNMPv3 of this wizard will not even work with CentOS 5". Is this relevant?

Thank you.

Re: 2014R1.0RC1 Initial reaction and question(s)

Posted: Mon Apr 21, 2014 10:42 am
by sreinhardt
Could you run the following commands please and return us the upgrade.log file.

Code: Select all

cd /tmp
rm -rf nagiosxi*; rm -rf xi-*
wget http://assets.nagios.com/downloads/nagiosxi/2014/xi-2014r1.0RC2.tar.gz
tar xzf xi-2014r1.0RC2.tar.gz
cd nagiosxi/
./upgrade &> /tmp/upgrade.log
This should give us a much more clear idea of why components are not updating on your system. Also, yes if you using centos 5, that might play a role, although my test machine is as well and it does display the tab regardless if it will work or not.

Re: 2014R1.0RC1 Initial reaction and question(s)

Posted: Mon Apr 21, 2014 10:52 am
by b2m
Alright, there it is :).

Re: 2014R1.0RC1 Initial reaction and question(s)

Posted: Tue Apr 22, 2014 10:58 am
by sreinhardt
Thanks I will take a look and get back to you shortly.

Re: 2014R1.0RC1 Initial reaction and question(s)

Posted: Wed Apr 23, 2014 4:51 pm
by scottwilkerson
Lets run the following

Code: Select all

cd /tmp/nagiosxi/subcomponents/mrtg
./upgrade
Post any error output. I believe this didn't upgrade correctly when you first installed 2014

Re: 2014R1.0RC1 Initial reaction and question(s)

Posted: Thu Apr 24, 2014 10:48 am
by b2m

Code: Select all

[root@localhost ~]#     cd /tmp/nagiosxi/subcomponents/mrtg
[root@localhost mrtg]#     ./upgrade
Upgrading MRTG...
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
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
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
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
(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
MRTG upgraded OK
Still the same issue..

Code: Select all

[root@localhost mrtg]# /usr/bin/cfgmaker --show-op-down --noreversedns --zero-speed '100000000' --enablesnmpv3 --snmp-options=:::::3 --username='manager' --authprotocol='sha' --authpassword='xxxx' --privprotocol='aescfb128' --privpassword='xxxx' --contextengineid=0 '192.168.120.253'
--base: SNMP V3 libraries found, SNMP V3 enabled.
Only des, 3des, 3desede, aes, aes128 are defined for --privprotocol at /usr/bin/cfgmaker line 1540.
When I type

Code: Select all

[root@localhost mrtg]# /usr/bin/cfgmaker --show-op-down --noreversedns --zero-speed '100000000' --enablesnmpv3 --snmp-options=:::::3 --username='manager' --authprotocol='sha' --authpassword='xxxx' --privprotocol='aes128' --privpassword='xxxx' --contextengineid=0 '192.168.120.253'
--base: SNMP V3 libraries found, SNMP V3 enabled.
it seems to work. At least I see a lot of information queried from the switch in the command line.

Can someone from you test this, please?

By the way, I also tried a new fullinstall of RC2 in the meantime. This doesn't help, eather.

Thank you.

Re: 2014R1.0RC1 Initial reaction and question(s)

Posted: Fri Apr 25, 2014 9:18 am
by scottwilkerson
@b2m - I believe you did find a bug in MRTG's cfgmaker.

Would it be possible for you to attach the /usr/bin/cfgmaker from your machine?

Re: 2014R1.0RC1 Initial reaction and question(s)

Posted: Fri Apr 25, 2014 9:49 am
by scottwilkerson
Here is what I believe I found... At line 1540 of /usr/bin/cfgmaker, you will see

Code: Select all

die "Only des, 3des, 3desede, aes, aes128 are defined for --privprotocol" if $$opt{privprotocol} !~ /^(?:3?des(?:ede)?|aes(?:128)?)$/;
Which needs to be changed to

Code: Select all

die "Only des, 3des, 3desede, aes, aes128 are defined for --privprotocol" if $$opt{privprotocol} !~ /^(?:3?des(?:ede)?|aes(?:128|cfb128|cfb192|cfb256)?)$/;

Re: 2014R1.0RC1 Initial reaction and question(s)

Posted: Fri Apr 25, 2014 10:19 am
by b2m
I'm glad to help ;). And I'm looking forward to getting a well-working SNMPv3 function in next release :).

Maybe I'll try it with your change later on.

Re: 2014R1.0RC1 Initial reaction and question(s)

Posted: Fri Apr 25, 2014 11:08 am
by scottwilkerson
b2m wrote:I'm glad to help ;). And I'm looking forward to getting a well-working SNMPv3 function in next release :).

Maybe I'll try it with your change later on.
Let me know if this works out for you, we can make the modifications to cfgmaker in the source...

Thanks again!