Can't add MiBs to Nagios XI

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
rafaelvdberg
Posts: 39
Joined: Fri Aug 24, 2012 1:24 pm

Can't add MiBs to Nagios XI

Post by rafaelvdberg »

I'm trying to add some vendor specific MiBs to Nagios XI.

I'm running Nagios XI 2011R1.7. Per the documentation, i should be able to go to "Admin > Manage MiBs" however there is no such button on my version.

Where do I go to add MiBs to this system?

Best,

Rafael
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Can't add MiBs to Nagios XI

Post by slansing »

You will need to upgrade to Nagios XI 2012 to have this functionality, please see the following document:

http://assets.nagios.com/downloads/nagi ... ctions.pdf
rafaelvdberg
Posts: 39
Joined: Fri Aug 24, 2012 1:24 pm

Re: Can't add MiBs to Nagios XI

Post by rafaelvdberg »

I followed the upgrade procedure, rebooted NAGIOS and it is still running the same version...

Here is the output at the end of running the upgrade script:

Code: Select all

*** Compile Finished ***

If the compile finished without any errors, you should find client and server binaries in the src/ subdirectory.

Read the README file for more information on installing the binaries, creating configuration files, and using the server and client.

Traceback (most recent call last):
	File "./install", line 17, in <module>
		installpath = os.environ['INSTALL_PATH'}
	File "/usr/lib64/python2.6/UserDict.py", line 22, in __getitem__
		raise KeyError(key)
	KeyError: 'INSTALL_PATH'
I used the "wget http://assets.nagios.com/downloads/nagi ... est.tar.gz" to get the upgraded version.

In the UI, it still shows I'm running the 2011R1.7 version.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Can't add MiBs to Nagios XI

Post by abrist »

Could you post the full output of:

Code: Select all

cd /tmp/nagiosxi
./upgrade >> /tmp/upgrade.log
cat /tmp/upgrade.log
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.
rafaelvdberg
Posts: 39
Joined: Fri Aug 24, 2012 1:24 pm

Re: Can't add MiBs to Nagios XI

Post by rafaelvdberg »

I tried this from another post:
Open the install file in a text editor:

Code: Select all
vi /tmp/nagiosxi/subcomponents/wkhtml/install



and change line 17 from this:

Code: Select all
installpath = os.environ['INSTALL_PATH']


to this:

Code: Select all
installpath = '/tmp/nagiosxi'



Save the file and try to run the install again:

Code: Select all
cd /tmp/nagiosxi/subcomponents/wkhtml/
./install
It seems to be upgrading now...

I'll let you know if this works.
rafaelvdberg
Posts: 39
Joined: Fri Aug 24, 2012 1:24 pm

Re: Can't add MiBs to Nagios XI

Post by rafaelvdberg »

Didn't work, running your code snipit now.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Can't add MiBs to Nagios XI

Post by lmiltchev »

Were you able to upgrade? What is the version number that you see in the lower left corner in the Nagios XI web interface?
Be sure to check out our Knowledgebase for helpful articles and solutions!
rafaelvdberg
Posts: 39
Joined: Fri Aug 24, 2012 1:24 pm

Re: Can't add MiBs to Nagios XI

Post by rafaelvdberg »

Here is the output:

Code: Select all

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2013.05.07 12:46:34 =~=~=~=~=~=~=~=~=~=~=~=
login as: root
[email protected]'s password: 
Last login: Tue May  7 19:44:45 2013 from 172.20.20.207

]0;root@nagios:~[?1034h[root@nagios ~]# cat /tmp/upgrade.log
OLD VERSION: 207
Reloading httpd: 
Installing PNP...
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
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 whether make sets $(MAKE)... yes
checking for strip... /usr/bin/strip
checking for cp... /bin/cp
checking how to run the C preprocessor... gcc -E
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 dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for sys/wait.h that is POSIX.1 compatible... 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 dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking for unistd.h... (cached) yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for stdlib.h... (cached) yes
checking for dirent.h... (cached) yes
checking for string.h... (cached) yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for sys/types.h... (cached) yes
checking for sys/wait.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/loadavg.h usability... no
checking sys/loadavg.h presence... no
checking for sys/loadavg.h... no
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking for pid_t... yes
checking return type of signal handlers... void
checking for uid_t in sys/types.h... yes
checking for struct dirent.d_type... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for bzero... yes
checking for socket... yes
checking for alarm... yes
checking for strerror... yes
checking for strspn... yes
checking for getloadavg... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking whether lstat dereferences a symlink specified with a trailing slash... yes
checking whether stat accepts an empty string... no
checking for an ANSI C-conforming const... yes
checking for perl... /usr/bin/perl
checking for rrdtool... /usr/bin/rrdtool
checking rrdtool path /usr/bin/rrdtool... yes
checking for executable Bit on /usr/bin/rrdtool... yes
checking for linker flags for loadable modules... -shared
checking for Perl Module Time::HiRes... yes
checking for Perl Module Getopt::Long... yes
checking for optional Perl Module RRDs... yes
configure: creating ./config.status
config.status: creating subst
config.status: creating include/config.h
config.status: include/config.h is unchanged


*** Configuration summary for pnp 0.4.14 05-02-2009 ***

  General Options:
  -------------------------         -------------------
  Nagios user/group:                nagios nagios
  Install directory:                /usr/local/nagios
  HTML Dir:                         /usr/local/nagios/share/pnp
  Config Dir:                       /usr/local/nagios/etc/pnp
  Location of rrdtool binary:       /usr/bin/rrdtool Version 1.3.8
  RRDs Perl Modules:                FOUND (Version 1.3008)
  RRD Files stored in:              /usr/local/nagios/share/perfdata
  process_perfdata.pl Logfile:      /usr/local/nagios/var/perfdata.log
  Perfdata files (NPCD) stored in:  /usr/local/nagios/var/spool/perfdata/


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


cd ./src && make
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/pnp/pnp-latest/src'
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o utils.o utils.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o config.o config.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o logging.o logging.c
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -o npcd npcd.c utils.o config.o logging.o -lpthread
gcc -fPIC -g -O2 -DHAVE_CONFIG_H -DNSCORE -o npcdmod.o npcdmod.c -shared   -fPIC
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/pnp/pnp-latest/src'
cd ./share && make
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/pnp/pnp-latest/share'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/pnp/pnp-latest/share'
cd ./scripts && make
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/pnp/pnp-latest/scripts'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/pnp/pnp-latest/scripts'

*** Compile finished ***

  make install
     - This installs the main program and HTML files

Enjoy.

cd ./src && make install
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/pnp/pnp-latest/src'
make install-basic
make[2]: Entering directory `/tmp/nagiosxi/subcomponents/pnp/pnp-latest/src'
/usr/bin/install -c -m 755 -o nagios -g nagios -d /usr/local/nagios/bin
/usr/bin/install -c -m 755 -o nagios -g nagios -d /usr/local/nagios/var/spool/perfdata/
/usr/bin/install -c -m 754 -o nagios -g nagios npcd /usr/local/nagios/bin
/usr/bin/install -c -m 754 -o nagios -g nagios npcdmod.o /usr/local/nagios/bin
make[2]: Leaving directory `/tmp/nagiosxi/subcomponents/pnp/pnp-latest/src'
make strip-post-install
make[2]: Entering directory `/tmp/nagiosxi/subcomponents/pnp/pnp-latest/src'
/usr/bin/strip /usr/local/nagios/bin/npcd
/usr/bin/strip /usr/local/nagios/bin/npcdmod.o
make[2]: Leaving directory `/tmp/nagiosxi/subcomponents/pnp/pnp-latest/src'
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/pnp/pnp-latest/src'
cd ./share && make install
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/pnp/pnp-latest/share'
/usr/bin/install -c -m 755 -o nagios -g nagios -d /usr/local/nagios/share/pnp
/usr/bin/install -c -m 755 -o nagios -g nagios -d /usr/local/nagios/share/pnp/images
/usr/bin/install -c -m 755 -o nagios -g nagios -d /usr/local/nagios/share/pnp/include
/usr/bin/install -c -m 755 -o nagios -g nagios -d /usr/local/nagios/share/pnp/include/font
/usr/bin/install -c -m 755 -o nagios -g nagios -d /usr/local/nagios/share/pnp/include/font/makefont
/usr/bin/install -c -m 755 -o nagios -g nagios -d /usr/local/nagios/share/pnp/include/js
/usr/bin/install -c -m 755 -o nagios -g nagios -d /usr/local/nagios/share/pnp/lang/
/usr/bin/install -c -m 755 -o nagios -g nagios -d /usr/local/nagios/share/pnp/templates/
/usr/bin/install -c -m 755 -o nagios -g nagios -d /usr/local/nagios/share/pnp/templates.dist/
/usr/bin/install -c -m 755 -o nagios -g nagios -d /usr/local/nagios/share/pnp/templates.special/
for file in pnp/*.php; \
	do /usr/bin/install -c -m 644 -o nagios -g nagios $file /usr/local/nagios/share/pnp; done
for file in pnp/templates.dist/*.php; \
	do /usr/bin/install -c -m 644 -o nagios -g nagios $file /usr/local/nagios/share/pnp/templates.dist; done
for file in pnp/templates.special/*.php; \
	do /usr/bin/install -c -m 644 -o nagios -g nagios $file /usr/local/nagios/share/pnp/templates.special; done
for file in pnp/lang/*.php; \
	do /usr/bin/install -c -m 644 -o nagios -g nagios $file /usr/local/nagios/share/pnp/lang; done
for file in pnp/images/*; \
	do /usr/bin/install -c -m 644 -o nagios -g nagios $file /usr/local/nagios/share/pnp/images; done
for file in pnp/include/*.*; \
	do /usr/bin/install -c -m 644 -o nagios -g nagios $file /usr/local/nagios/share/pnp/include; done
for file in pnp/include/js/*; \
	do /usr/bin/install -c -m 644 -o nagios -g nagios $file /usr/local/nagios/share/pnp/include/js; done
for file in pnp/include/font/*.php; \
	do /usr/bin/install -c -m 644 -o nagios -g nagios $file /usr/local/nagios/share/pnp/include/font; done
for file in pnp/include/font/makefont/*; \
	do /usr/bin/install -c -m 644 -o nagios -g nagios $file /usr/local/nagios/share/pnp/include/font/makefont; done
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/pnp/pnp-latest/share'
cd ./scripts && make install
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/pnp/pnp-latest/scripts'
/usr/bin/install -c -m 755 -o nagios -g nagios -d /usr/local/nagios/share/perfdata
/usr/bin/install -c -m 755 -o nagios -g nagios -d /usr/local/nagios/libexec
make install-processperfdata
make[2]: Entering directory `/tmp/nagiosxi/subcomponents/pnp/pnp-latest/scripts'
/usr/bin/install -c -m 755 -o nagios -g nagios process_perfdata.pl /usr/local/nagios/libexec
make[2]: Leaving directory `/tmp/nagiosxi/subcomponents/pnp/pnp-latest/scripts'
make install-plugins
make[2]: Entering directory `/tmp/nagiosxi/subcomponents/pnp/pnp-latest/scripts'
/usr/bin/install -c -m 755 -o nagios -g nagios check_pnp_rrds.pl /usr/local/nagios/libexec
make[2]: Leaving directory `/tmp/nagiosxi/subcomponents/pnp/pnp-latest/scripts'
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/pnp/pnp-latest/scripts'
cd ./sample-config && make install
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/pnp/pnp-latest/sample-config'
rm -f /usr/local/nagios/share/pnp/conf/config.php
/usr/bin/install -c -m 755 -o nagios -g nagios -d /usr/local/nagios/etc/pnp
/usr/bin/install -c -m 755 -o nagios -g nagios -d /usr/local/nagios/etc/pnp/check_commands
/usr/bin/install -c -m 755 -o nagios -g nagios -d /usr/local/nagios/etc/pnp/pages
/usr/bin/install -c -m 644 -o nagios -g nagios  pnp/pnp4nagios_release /usr/local/nagios/etc/pnp
/usr/bin/install -c -m 644 -o nagios -g nagios  pnp/config.php /usr/local/nagios/etc/pnp
/usr/bin/install -c -m 644 -o nagios -g nagios  pnp/background.pdf /usr/local/nagios/etc/pnp
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/pnp/pnp-latest/sample-config'
make install-basic
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/pnp/pnp-latest'

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

Please run 'make install-config' to install sample
configuration files

Please run 'make install-init' if you want to use
BULK Mode with NPCD



make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/pnp/pnp-latest'
cd ./sample-config && make install-config
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/pnp/pnp-latest/sample-config'
rm -f /usr/local/nagios/share/pnp/conf/config.php
/usr/bin/install -c -m 755 -o nagios -g nagios -d /usr/local/nagios/etc/pnp
/usr/bin/install -c -m 755 -o nagios -g nagios -d /usr/local/nagios/etc/pnp/check_commands
/usr/bin/install -c -m 755 -o nagios -g nagios -d /usr/local/nagios/etc/pnp/pages
/usr/bin/install -c -m 644 -o nagios -g nagios  pnp/config.php /usr/local/nagios/etc/pnp
/usr/bin/install -c -m 644 -o nagios -g nagios  pnp/process_perfdata.cfg-sample /usr/local/nagios/etc/pnp
/usr/bin/install -c -m 644 -o nagios -g nagios  pnp/rra.cfg-sample /usr/local/nagios/etc/pnp
/usr/bin/install -c -m 644 -o nagios -g nagios  pnp/check_commands/check_nwstat.cfg-sample /usr/local/nagios/etc/pnp/check_commands
/usr/bin/install -c -m 644 -o nagios -g nagios  pnp/pages/web_traffic.cfg-sample /usr/local/nagios/etc/pnp/pages
/usr/bin/install -c -m 644 -o nagios -g nagios  pnp/npcd.cfg-sample /usr/local/nagios/etc/pnp
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/pnp/pnp-latest/sample-config'
cd ./scripts && make install-init
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/pnp/pnp-latest/scripts'
/usr/bin/install -c -m 755 -o root -g root -d /etc/rc.d/init.d
/usr/bin/install -c -m 755 -o root -g root rc.npcd /etc/rc.d/init.d/npcd
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/pnp/pnp-latest/scripts'
PNP-POST
PNP installed OK
Checking PostgresQL status...
PostgresQL running - continuing...
Audit log database structure already created - skipping...
Audit log database schema created successfully.
Nagios XI Audit Log Initialized OK.
NAGIOSCORE
Applying Nagios XI patches to Nagios Core...
patching file nagios-3.4.1/common/downtime.c
patch unexpectedly ends in middle of line
Hunk #1 succeeded at 401 with fuzz 2.
patching file nagios-3.4.1/base/checks.c
patching file nagios-3.4.1/cgi/Makefile.in
Hunk #2 succeeded at 153 (offset 2 lines).
Hunk #3 succeeded at 183 with fuzz 2 (offset 5 lines).
patching file nagios-3.4.1/xdata/xpddefault.h
Hunk #1 succeeded at 31 with fuzz 1.
patching file nagios-3.4.1/xdata/xpddefault.c
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
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 ANSI C... none needed
checking whether make sets $(MAKE)... yes
checking for strip... /usr/bin/strip
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/wait.h that is POSIX.1 compatible... 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 arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking libgen.h usability... yes
checking libgen.h presence... yes
checking for libgen.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking pthreads.h usability... no
checking pthreads.h presence... no
checking for pthreads.h... no
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking socket.h usability... no
checking socket.h presence... no
checking for socket.h... no
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for sys/types.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking for sys/wait.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for sys/stat.h... (cached) yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking sys/ipc.h usability... yes
checking sys/ipc.h presence... yes
checking for sys/ipc.h... yes
checking sys/msg.h usability... yes
checking sys/msg.h presence... yes
checking for sys/msg.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking uio.h usability... no
checking uio.h presence... no
checking for uio.h... no
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_zone... yes
checking for mode_t... yes
checking for pid_t... yes
checking for size_t... yes
checking return type of signal handlers... void
checking for uid_t in sys/types.h... yes
checking type of array argument to getgroups... gid_t
checking for va_copy... yes
checking for vsnprintf... yes
checking for snprintf... yes
checking for asprintf... yes
checking for vasprintf... yes
checking for C99 vsnprintf... yes
checking for library containing getservbyname... none required
checking for library containing connect... none required
checking for initgroups... yes
checking for setenv... yes
checking for strdup... yes
checking for strstr... yes
checking for strtoul... yes
checking for unsetenv... yes
checking for type of socket size... size_t
checking for pthread_create in -lcma... no
checking for pthread_create in -lpthread... yes
checking for library containing nanosleep... none required
checking for mail... /bin/mail
We'll use default routines (in xdata/xsddefault.*) for status data I/O...
We'll use default routines (in xdata/xcddefault.*) for comment data I/O...
We'll use default routines (in xdata/xrddefault.*) for retention data I/O...
We'll use template-based routines (in xdata/xodtemplate.*) for object data I/O...
We'll use default routines (in xdata/xpddefault.*) for performance data I/O...
We'll use default routines (in xdata/xdddefault.*) for scheduled downtime data I/O...
checking for main in -liconv... no
checking for gdImagePng in -lgd (order 1)... no
checking for gdImagePng in -lgd (order 2)... yes
GD library was found!
checking for gdImageCreateTrueColor in -lgd... yes
checking ltdl.h usability... no
checking ltdl.h presence... no
checking for ltdl.h... no
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for dlopen in -ldl... yes
checking for extra flags needed to export symbols...  -Wl,-export-dynamic
checking for linker flags for loadable modules... -shared
checking for traceroute... /bin/traceroute
checking for type va_list... yes
checking for perl... /usr/bin/perl
configure: creating ./config.status
config.status: creating Makefile
config.status: creating subst
config.status: creating pkginfo
config.status: creating base/Makefile
config.status: creating common/Makefile
config.status: creating contrib/Makefile
config.status: creating cgi/Makefile
config.status: creating html/Makefile
config.status: creating module/Makefile
config.status: creating xdata/Makefile
config.status: creating daemon-init
config.status: creating t/Makefile
config.status: creating t-tap/Makefile
config.status: creating include/config.h
config.status: creating include/snprintf.h

Creating sample config files in sample-config/ ...


*** Configuration summary for nagios 3.4.1 05-11-2012 ***:

 General Options:
 -------------------------
        Nagios executable:  nagios
        Nagios user/group:  nagios,nagios
       Command user/group:  nagios,nagcmd
            Embedded Perl:  no
             Event Broker:  yes
        Install ${prefix}:  /usr/local/nagios
                Lock file:  ${prefix}/var/nagios.lock
   Check result directory:  ${prefix}/var/spool/checkresults
           Init directory:  /etc/rc.d/init.d
  Apache conf.d directory:  /etc/httpd/conf.d
             Mail program:  /bin/mail
                  Host OS:  linux-gnu

 Web Interface Options:
 ------------------------
                 HTML URL:  http://localhost/nagios/
                  CGI URL:  http://localhost/nagios/cgi-bin/
 Traceroute (used by WAP):  /bin/traceroute


Review the options above for accuracy.  If they look okay,
type 'make all' to compile the main program and CGIs.

cd ./base && make
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios/base'
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o broker.o broker.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o nebmods.o nebmods.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o ../common/shared.o ../common/shared.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o checks.o checks.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o config.o config.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o commands.o commands.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o events.o events.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o flapping.o flapping.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o logging.o logging.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o macros-base.o ../common/macros.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o netutils.o netutils.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o notifications.o notifications.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o sehandlers.o sehandlers.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o skiplist.o ../common/skiplist.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE   -c -o utils.o utils.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o retention-base.o sretention.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xretention-base.o ../xdata/xrddefault.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o comments-base.o ../common/comments.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xcomments-base.o ../xdata/xcddefault.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o objects-base.o ../common/objects.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xobjects-base.o ../xdata/xodtemplate.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o statusdata-base.o ../common/statusdata.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xstatusdata-base.o ../xdata/xsddefault.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o perfdata-base.o perfdata.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xperfdata-base.o ../xdata/xpddefault.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o downtime-base.o ../common/downtime.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xdowntime-base.o ../xdata/xdddefault.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -o nagios nagios.c broker.o nebmods.o ../common/shared.o checks.o config.o commands.o events.o flapping.o logging.o macros-base.o netutils.o notifications.o sehandlers.o skiplist.o utils.o retention-base.o xretention-base.o comments-base.o xcomments-base.o objects-base.o xobjects-base.o statusdata-base.o xstatusdata-base.o perfdata-base.o xperfdata-base.o downtime-base.o xdowntime-base.o    -Wl,-export-dynamic    -lm  -lpthread -ldl 
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -o nagiostats nagiostats.c  -lm 
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios/base'
cd ./cgi && make
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios/cgi'
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI   -c -o getcgi.o getcgi.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI   -c -o cgiutils.o cgiutils.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI   -c -o cgiauth.o cgiauth.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o macros-cgi.o ../common/macros.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o skiplist.o ../common/skiplist.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o objects-cgi.o ../common/objects.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o xobjects-cgi.o ../xdata/xodtemplate.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o statusdata-cgi.o ../common/statusdata.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o xstatusdata-cgi.o ../xdata/xsddefault.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o comments-cgi.o ../common/comments.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o downtime-cgi.o ../common/downtime.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI  -o avail.cgi avail.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o  objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o 
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI   -c -o extcmd_list.o extcmd_list.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI  -o cmd.cgi cmd.c extcmd_list.o ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o  objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o   
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI  -o config.cgi config.c  ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o  objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o 
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI  -o extinfo.cgi extinfo.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o  objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o   
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI  -o history.cgi history.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o  objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o 
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI  -o notifications.cgi notifications.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o  objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o 
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI  -o outages.cgi outages.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o  objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o  
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI  -o showlog.cgi showlog.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o  objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o 
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI  -o status.cgi status.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o  objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o  
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI  -o statuswml.cgi statuswml.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o  objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o 
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI  -o summary.cgi summary.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o  objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o 
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI  -o tac.cgi tac.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o  objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o  
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI  -o tac-xml.cgi tac-xml.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o  objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o  
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI  -o status-json.cgi status-json.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o  objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o  
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI  -o outages-xml.cgi outages-xml.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o  objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o  
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI  -o statuswrl.cgi statuswrl.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o  objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o -lm 
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI  -o statusmap.cgi statusmap.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o  objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o -lgd  -lpng -ljpeg -lz -lm 
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI  -o trends.cgi trends.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o  objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o -lgd  -lpng -ljpeg -lz -lm 
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI  -o histogram.cgi histogram.c ../common/shared.o getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o  objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o comments-cgi.o downtime-cgi.o -lgd  -lpng -ljpeg -lz -lm 
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios/cgi'
cd ./html && make
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios/html'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios/html'
if [ xyes = xyes ]; then \
		cd ./module && make; \
	fi
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios/module'
gcc -fPIC -g -O2 -DHAVE_CONFIG_H -o helloworld.o helloworld.c -shared  
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios/module'

*** Compile finished ***

If the main program and CGIs compiled without any errors, you
can continue with installing Nagios as follows (type 'make'
without any arguments for a list of all possible options):

  make install
     - This installs the main program, CGIs, and HTML files

  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
       You'll have to modify these sample files before you can
       use Nagios.  Read the HTML documentation for more info
       on doing this.  Pay particular attention to the docs on
       object configuration files, as they determine what/how
       things get monitored!

  make install-webconf
     - This installs the Apache config file for the Nagios
       web interface

  make install-exfoliation
     - This installs the Exfoliation theme for the Nagios
       web interface

  make install-classicui
     - This installs the classic theme for the Nagios
       web interface


*** Support Notes *******************************************

If you have questions about configuring or running Nagios,
please make sure that you:

     - Look at the sample config files
     - Read the documentation on the Nagios Library at:
           http://library.nagios.com

before you post a question to one of the mailing lists.
Also make sure to include pertinent information that could
help others help you.  This might include:

     - What version of Nagios you are using
     - What version of the plugins you are using
     - Relevant snippets from your config files
     - Relevant error messages from the Nagios log file

For more information on obtaining support for Nagios, visit:

       http://support.nagios.com

*************************************************************

Enjoy.

cd ./base && make install
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios/base'
make install-basic
make[2]: Entering directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios/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/base'
make strip-post-install
make[2]: Entering directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios/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/base'
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios/base'
cd ./cgi && make install
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios/cgi'
make install-basic
make[2]: Entering directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios/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/cgi'
make strip-post-install
make[2]: Entering directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios/cgi'
for file in *.cgi; do \
		/usr/bin/strip /usr/local/nagios/sbin/$file; \
	done
make[2]: Leaving directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios/cgi'
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios/cgi'
cd ./html && make install
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios/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
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/html'
make install-exfoliation	
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/nagioscore/nagios'
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'
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.
UPGRADING NDOUTILS...
Applying Nagios XI patches to NDOUtils...
checking for a BSD-compatible install... /usr/bin/install -c
checking for perl... /usr/bin/perl
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
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 whether make sets $(MAKE)... yes
checking how to run the C preprocessor... gcc -E
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 whether time.h and sys/time.h may both be included... yes
checking for sys/wait.h that is POSIX.1 compatible... 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 arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking float.h usability... yes
checking float.h presence... yes
checking for float.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking for inttypes.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking ltdl.h usability... no
checking ltdl.h presence... no
checking for ltdl.h... no
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking socket.h usability... no
checking socket.h presence... no
checking for socket.h... no
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking for stdint.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/ipc.h usability... yes
checking sys/ipc.h presence... yes
checking for sys/ipc.h... yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking sys/msg.h usability... yes
checking sys/msg.h presence... yes
checking for sys/msg.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/sendfile.h usability... yes
checking sys/sendfile.h presence... yes
checking for sys/sendfile.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for sys/stat.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking for sys/types.h... (cached) yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking for sys/wait.h... (cached) yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking tcpd.h usability... yes
checking tcpd.h presence... yes
checking for tcpd.h... yes
checking for unistd.h... (cached) yes
checking values.h usability... yes
checking values.h presence... yes
checking for values.h... yes
checking for an ANSI C-conforming const... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for mode_t... yes
checking for pid_t... yes
checking for size_t... yes
checking return type of signal handlers... void
checking for uid_t in sys/types.h... yes
checking type of array argument to getgroups... gid_t
checking for int... yes
checking size of int... 4
checking for short... yes
checking size of short... 2
checking for long... yes
checking size of long... 8
checking for uint32_t... yes
checking for u_int32_t... yes
checking for int32_t... yes
checking for getopt_long... yes
checking for main in -lnsl... yes
checking for socket in -lsocket... no
checking for main in -lwrap... yes
checking for strdup... yes
checking for strstr... yes
checking for strtoul... yes
checking for initgroups... yes
checking for strtof... yes
checking for type of socket size... size_t
checking for linker flags for loadable modules... -shared
checking for mysql_config... /usr/bin/mysql_config
checking for mysql_init in -lmysqlclient... yes
MySQL library and include file(s) were found!
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating docs/docbook/en-en/Makefile
config.status: creating subst
config.status: creating include/config.h


*** Configuration summary for ndoutils 1.5.1 05-15-2012 ***:

 General Options:
 -------------------------
 NDO2DB user:    nagios
 NDO2DB group:   nagios


Review the options above for accuracy.  If they look okay,
type 'make' to compile the NDO utilities.

cd ./src && make
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-1.5.1/src'
gcc -fPIC -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H  -c -o io.o io.c
gcc -fPIC -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H  -c -o utils.o utils.c
gcc -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H  -o file2sock file2sock.c io.o utils.o   -lm -lnsl 
gcc -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H  -o log2ndo log2ndo.c io.o utils.o   -lm -lnsl 
make ndo2db-2x
make[2]: Entering directory `/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-1.5.1/src'
gcc -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H  -c -o db.o db.c
gcc -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H  -D BUILD_NAGIOS_2X -c -o dbhandlers-2x.o dbhandlers.c
gcc -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H   -D BUILD_NAGIOS_2X -o ndo2db-2x queue.c ndo2db.c dbhandlers-2x.o io.o utils.o db.o    -lnsl -rdynamic -L/usr/lib64/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lssl -lcrypto -lm 
make[2]: Leaving directory `/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-1.5.1/src'
make ndo2db-3x
make[2]: Entering directory `/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-1.5.1/src'
gcc -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H  -D BUILD_NAGIOS_3X -c -o dbhandlers-3x.o dbhandlers.c
gcc -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H   -D BUILD_NAGIOS_3X -o ndo2db-3x queue.c ndo2db.c dbhandlers-3x.o io.o utils.o db.o    -lnsl -rdynamic -L/usr/lib64/mysql -lmysqlclient -lz -lcrypt -lnsl -lm -lssl -lcrypto -lm 
make[2]: Leaving directory `/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-1.5.1/src'
make ndomod-2x.o
make[2]: Entering directory `/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-1.5.1/src'
gcc -fPIC -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H  -D BUILD_NAGIOS_2X -o ndomod-2x.o ndomod.c io.o utils.o -shared   -lnsl 
make[2]: Leaving directory `/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-1.5.1/src'
make ndomod-3x.o
make[2]: Entering directory `/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-1.5.1/src'
gcc -fPIC -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H  -D BUILD_NAGIOS_3X -o ndomod-3x.o ndomod.c io.o utils.o -shared   -lnsl 
make[2]: Leaving directory `/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-1.5.1/src'
gcc -g -O2 -I/usr/include/mysql -DHAVE_CONFIG_H  -o sockdebug sockdebug.c io.o utils.o   -lm -lnsl 
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/ndoutils/ndoutils-1.5.1/src'
/usr/bin/install -c -m 755 -o root -g root -d /etc/rc.d/init.d
/usr/bin/install -c -m 755 -o root -g root daemon-init /etc/rc.d/init.d/ndo2db
NDOUTILS POST-UPGRADE...
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
kernel.msgmnb = 131072000
kernel.msgmax = 131072000
kernel.shmmax = 4294967295
kernel.shmall = 268435456
Current database version: 1.5.1
Database already upgraded.
Stopping ndo2db: done.
Starting ndo2db: done.
Running configuration check...done.
Stopping nagios: done.
Starting nagios: done.
NDOUTILS UPGRADED!
Installing NSCA...
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
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 ANSI C... none needed
checking whether make sets $(MAKE)... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/wait.h that is POSIX.1 compatible... 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 db.h usability... no
checking db.h presence... no
checking for db.h... no
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking for inttypes.h... (cached) yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking for stdint.h... (cached) yes
checking for strings.h... (cached) yes
checking for string.h... (cached) yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking tcpd.h usability... yes
checking tcpd.h presence... yes
checking for tcpd.h... yes
checking for unistd.h... (cached) yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking sys/config.h usability... no
checking sys/config.h presence... no
checking for sys/config.h... no
checking sys/int_types.h usability... no
checking sys/int_types.h presence... no
checking for sys/int_types.h... no
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking for sys/types.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for sys/stat.h... (cached) yes
checking for sys/wait.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking for working volatile... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for mode_t... yes
checking for pid_t... yes
checking for size_t... yes
checking return type of signal handlers... void
checking for uid_t in sys/types.h... yes
checking type of array argument to getgroups... gid_t
checking for int... yes
checking size of int... 4
checking for short... yes
checking size of short... 2
checking for long... yes
checking size of long... 8
checking for uint32_t... yes
checking for u_int32_t... yes
checking for int32_t... yes
checking for main in -lnsl... yes
checking for socket in -lsocket... no
checking for main in -lwrap... yes
checking for strdup... yes
checking for strstr... yes
checking for strtoul... yes
checking for sig_atomic_t... yes
checking for socklen_t... yes
checking for type of socket size... size_t
checking for libmcrypt-config... /usr/bin/libmcrypt-config
checking for libmcrypt - version >= 2.4.11... yes
checking for perl... /usr/bin/perl
configure: creating ./config.status
config.status: creating Makefile
config.status: creating subst
config.status: creating src/Makefile
config.status: creating package/solaris/Makefile
config.status: creating init-script
config.status: creating sample-config/nsca.cfg
config.status: creating sample-config/send_nsca.cfg
config.status: creating sample-config/nsca.xinetd
config.status: creating include/config.h


*** Configuration summary for nsca 2.9.1 01-27-2012 ***:

 General Options:
 -------------------------
 NSCA port:  5667
 NSCA user:  nagios
 NSCA group: nagios


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

cd ./src/; make all ; cd ..
make[1]: Entering directory `/tmp/nagiosxi/subcomponents/nsca/nsca-2.9.1/src'
gcc -g -O2 -DHAVE_LIBMCRYPT -I/usr/include -DHAVE_CONFIG_H -o nsca ./nsca.c ./netutils.c ./utils.c -lmcrypt  -lnsl -lwrap
gcc -g -O2 -DHAVE_LIBMCRYPT -I/usr/include -DHAVE_CONFIG_H -o send_nsca ./send_nsca.c ./netutils.c ./utils.c -lmcrypt  -lnsl
make[1]: Leaving directory `/tmp/nagiosxi/subcomponents/nsca/nsca-2.9.1/src'

*** Compile finished ***

If the compile finished without any errors, you should
find client and server binaries in the src/ subdirectory.

Read the README file for more information on installing
the binaries, creating configuration files, and using
the server and client.

]0;root@nagios:~[root@nagios ~]# exit
logout
Last edited by abrist on Tue May 07, 2013 2:54 pm, edited 1 time in total.
Reason: code wraps save scroll wheels
rafaelvdberg
Posts: 39
Joined: Fri Aug 24, 2012 1:24 pm

Re: Can't add MiBs to Nagios XI

Post by rafaelvdberg »

Please note, the upgrade.log did not pick up this last part of the upgrade output:

Code: Select all

Traceback (most recent call last):
   File "./install", line 17, in <module>
      installpath = os.environ['INSTALL_PATH'}
   File "/usr/lib64/python2.6/UserDict.py", line 22, in __getitem__
      raise KeyError(key)
   KeyError: 'INSTALL_PATH'
Best,


Rafael
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Can't add MiBs to Nagios XI

Post by sreinhardt »

To resolve the install path issues, simply modify /tmp/nagiosxi/update on line 16 add:

Code: Select all

export INSTALL_PATH=`pwd`
Try running again after making that change. Also once it is run again, if it fails return the following command "echo $NSCA_UPDATED"
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked