Nagios Code Upgrade from 3.4.1

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
skazi
Posts: 7
Joined: Fri May 03, 2013 9:29 am

Nagios Core Upgrade Help from 3.4.1 to 4.3.4

Post by skazi »

Need assistance with upgrading Nagios Core 3.4.1 to 4.3.4 on a Unix box. I'm following instructions from https://assets.nagios.com/downloads/nag ... ading.html. Running into issues when " ./configure --with-command-group=nagcmd". Getting checking for unzip... no configure: error: Cannot continue without unzip!" Also get error when entering "make all" and "make install".

[nagios@voipmon ~]$ ls
dead.letter nagios nagios-3.4.1.tar.gz nagios-4.3.4.tar.gz
[nagios@voipmon ~]$ tar xzf nagios-4.3.4.tar.gz
[nagios@voipmon ~]$ ls
dead.letter nagios nagios-3.4.1.tar.gz nagios-4.3.4 nagios-4.3.4.tar.gz
[nagios@voipmon ~]$ cd nagios-4.3.4/
[nagios@voipmon nagios-4.3.4]$ ls
base CONTRIBUTING.md INSTALLING nagios.spec tap
cgi daemon-init.in install-sh nagios.sysconfig test
Changelog docs LEGAL openrc-init.in THANKS
common doxy.conf lib pkginfo.in t-tap
config.guess functions LICENSE README update-version
config.sub html Makefile.in README.asciidoc UPGRADING
configure include make-tarball sample-config worker
configure.ac indent-all.sh mkpackage subst.in xdata
contrib indent.sh module t
[nagios@voipmon nagios-4.3.4]$ ./configure --with-command-group=nagcmd
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
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 whether make sets $(MAKE)... yes
checking whether ln -s works... yes
checking for strip... /usr/bin/strip
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 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 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/loadavg.h usability... no
checking sys/loadavg.h presence... no
checking for sys/loadavg.h... no
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 locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking sys/prctl.h usability... yes
checking sys/prctl.h presence... yes
checking for sys/prctl.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 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 sigaction... 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 library containing nanosleep... none required
checking for mail... /bin/mail
checking for glibc at least version 2.4... yes
checking sys/epoll.h usability... yes
checking sys/epoll.h presence... yes
checking for sys/epoll.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
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... no
checking for type va_list... yes
checking for perl... /usr/bin/perl
checking for unzip... no
configure: error: Cannot continue without unzip!
[nagios@voipmon nagios-4.3.4]$ ls
base contrib indent.sh module t
cgi CONTRIBUTING.md INSTALLING nagios.spec tap
Changelog daemon-init.in install-sh nagios.sysconfig test
common docs LEGAL openrc-init.in THANKS
config.guess doxy.conf lib pkginfo.in t-tap
config.log functions LICENSE README update-version
config.sub html Makefile.in README.asciidoc UPGRADING
configure include make-tarball sample-config worker
configure.ac indent-all.sh mkpackage subst.in xdata
[nagios@voipmon nagios-4.3.4]$ make all
make: *** No rule to make target `all'. Stop.
[nagios@voipmon nagios-4.3.4]$ make install
make: *** No rule to make target `install'. Stop.
skazi
Posts: 7
Joined: Fri May 03, 2013 9:29 am

Nagios Code Upgrade from 3.4.1

Post by skazi »

I'm running into errors when upgrading Nagios Core from 3.4.1 to 4.3.4. Following instructions from https://assets.nagios.com/downloads/nag ... ading.html

[nagios@voipmon nagios-4.3.4]$ ./configure --with-command-group=nagcmd
checking for unzip... no
configure: error: Cannot continue without unzip!
[nagios@voipmon nagios-4.3.4]$ make all
make: *** No rule to make target `all'. Stop.
[nagios@voipmon nagios-4.3.4]$ make install
make: *** No rule to make target `install'. Stop.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios Code Upgrade from 3.4.1

Post by scottwilkerson »

you need the unzip command installed depending on OS the command may be different

e.g.

Code: Select all

yum install unzip
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
skazi
Posts: 7
Joined: Fri May 03, 2013 9:29 am

Re: Nagios Code Upgrade from 3.4.1

Post by skazi »

I was able to install. I'm now stuck in below section. What is the build directory?

Important: If you are upgrading from version 4.2.4 or before, to version 4.3.0 or after, there are changes that need to be made to the 'nagios.conf' apache configuration file. You can either update it manually, copying the new parts from 'sample-config/httpd.conf' or run
cd /etc/httpd/conf.d
cp nagios.conf nagios.conf.bak
cd /<the nagios build directory>
make install-webconf
service httpd restart

[root@voipmon conf.d]# ls
cacti.conf core.conf nagios.conf nagiosmobile.conf phpMyAdmin.conf welcome.conf
cacti.conf.rpmnew mrtg.conf.rpmsave nagios.conf.bak php.conf README
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Nagios Code Upgrade from 3.4.1

Post by scottwilkerson »

skazi wrote:What is the build directory?
Based on the above it is ~/nagios-4.3.4
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked