check_dns fails...

Colin Harford charford-list at infinithost.com
Tue Apr 29 04:20:47 CEST 2003


After upgrading OpenBSD current after the change from a.out to ELF.

I had to recompile nagios and nagios-plugins to make it work, (make 
clean, ./configure --prefix=/opt/nagios, make, make install)

When check_dns runs I get the following error:
Warning: Return code of 139 for check of service 'check bind' on host 
'NABU' was out of bounds.
Memory fault

All the other plugins seem to work so far.

When I manually run it:

# /opt/nagios/libexec/check_dns -H www.infinithost.com
Segmentation fault


# /opt/nagios/libexec/check_dns --version
check_dns (nagios-plugins 1.3.0) 1.8


# gcc -v
Reading specs from /usr/lib/gcc-lib/i386-unknown-openbsd3.3/2.95.3/specs
gcc version 2.95.3 20010125 (prerelease, propolice)


(irra!/opt/nagios-plugins-1.3.0) [root-ttyp2]
# ./configure
loading cache ./config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... missing
checking for working autoconf... found
checking for working automake... missing
checking for working autoheader... found
checking for working makeinfo... found
checking for a BSD compatible install... /usr/bin/install -c
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... yes
checking whether the C compiler (gcc  ) is a cross-compiler... no
checking whether we are using GNU C... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking whether make sets ${MAKE}... (cached) yes
checking for gawk... (cached) nawk
checking how to run the C preprocessor... (cached) gcc -E
checking for elf_begin in -lelf... (cached) no
checking for kvm_open in -lkvm... (cached) yes
checking for getloadavg in -lutil... (cached) yes
checking for getloadavg... (cached) yes
checking whether getloadavg requires setgid... (cached) yes
checking group of /dev/kmem... (cached) kmem
checking for working strtod... (cached) yes
checking for ranlib... (cached) ranlib
checking for aclocal... (cached) /opt/nagios-plugins-1.3.0/missing 
aclocal
checking for automake... (cached) /opt/nagios-plugins-1.3.0/missing 
automake
checking for autoconf... (cached) /usr/local/bin/autoconf
checking for autoheader... (cached) /usr/local/bin/autoheader
checking for python... (cached) /usr/local/bin/python
checking for perl... (cached) /usr/bin/perl
checking for sh... (cached) /bin/sh
checking for hostname... (cached) /bin/hostname
checking for basename... (cached) /usr/bin/basename
checking for main in -ldce... (cached) no
checking for main in -lnsl... (cached) no
checking for socket in -lsocket... (cached) no
checking for main in -lresolv... (cached) yes
checking for main in -lcrypt... (cached) no
configure: warning: Skipping PostgreSQL plugin (check_pgsql)
configure: warning: install lib crypt and PostgreSQL libs to compile 
this plugin (see REQUIREMENTS).
checking for rc_read_config in -lradiusclient... (cached) no
configure: warning: Skipping radius plugin
configure: warning: install radius libs to compile this plugin (see 
REQUIREMENTS).
checking for main in -lldap... (cached) no
configure: warning: Skipping LDAP plugin
configure: warning: install LDAP libs to compile this plugin (see 
REQUIREMENTS).
configure: warning: Skipping mysql plugin
configure: warning: install mysql client libs to compile this plugin 
(see REQUIREMENTS).
checking for openssl... (cached) /usr/sbin/openssl
checking for krb5.h... (cached) no
checking for krb5.h... no
checking for openssl/ssl.h... (cached) yes
checking for openssl/x509.h... (cached) yes
checking for openssl/rsa.h... (cached) yes
checking for openssl/pem.h... (cached) yes
checking for openssl/crypto.h... (cached) yes
checking for openssl/err.h... (cached) yes
checking for CRYPTO_lock in -lcrypto... (cached) yes
checking for main in -lssl... (cached) yes
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... (cached) 
yes
checking for sys/wait.h that is POSIX.1 compatible... (cached) yes
checking for signal.h... (cached) yes
checking for strings.h... (cached) yes
checking for string.h... (cached) yes
checking for syslog.h... (cached) yes
checking for unistd.h... (cached) yes
checking for uio.h... (cached) no
checking for errno.h... (cached) yes
checking for regex.h... (cached) yes
checking for sys/types.h... (cached) yes
checking for sys/time.h... (cached) yes
checking for sys/socket.h... (cached) yes
checking for sys/loadavg.h... (cached) no
checking for stdarg.h... (cached) yes
checking for sys/unistd.h... (cached) yes
checking for unistd.h... (cached) yes
checking for ctype.h... (cached) yes
checking for sys/wait.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for working const... (cached) yes
checking whether struct tm is in sys/time.h or time.h... (cached) time.h
checking for pid_t... (cached) yes
checking for size_t... (cached) yes
checking return type of signal handlers... (cached) void
checking size of int... (cached) 4
checking size of long... (cached) 4
checking size of short... (cached) 2
checking for long long... (cached) yes
checking for LL suffix on long long integers... (cached) yes
checking for __va_copy... (cached) no
checking for C99 vsnprintf... (cached) yes
checking for snprintf... (cached) yes
checking for vsnprintf... (cached) yes
checking for vasprintf... (cached) yes
checking for asprintf... (cached) yes
checking for memmove... (cached) yes
checking for select... (cached) yes
checking for socket... (cached) yes
checking for strdup... (cached) yes
checking for strstr... (cached) yes
checking for strtod... (cached) yes
checking for strtol... (cached) yes
checking for strtoul... (cached) yes
checking for type of socket size... int
checking for ps... (cached) /bin/ps
       ps syntax... /bin/ps -weo 'stat comm vsz rss user ppid args'
checking for df... (cached) /bin/df
       df syntax... /bin/df -Pk
checking for ping... (cached) /sbin/ping
       ping syntax... /sbin/ping -n -c <count> <host>
checking for nslookup... (cached) /usr/local/bin/nslookup
       nslookup syntax... /usr/local/bin/nslookup -sil
checking for host... (cached) /usr/local/bin/host
checking for uptime... (cached) /usr/bin/uptime
checking for rpcinfo... (cached) /usr/bin/rpcinfo
checking for ntpdate... (cached) /usr/local/sbin/ntpdate
checking for ntpdc... (cached) /usr/local/sbin/ntpdc
checking for ntpq... (cached) /usr/local/sbin/ntpq
checking for lmstat... no
** Get lmstat from Globetrotter Software to monitor flexlm licenses
checking for smbclient... no
** Get smbclient from Samba.org to monitor SMB shares
checking for who... (cached) /usr/bin/who
checking for snmpget... no
** Get snmpget from http://net-snmp.sourceforge.net to make check_hpjd 
and check_snmp plugins
checking for snmpgetnext... no
** Tried /usr/bin/perl - install Net::SNMP perl module if you want to
         use the perl snmp plugins
checking for quakestat... no
checking for qstat... no
** Get qstat from http://www.activesw.com/people/steve/qstat.html in 
order to make check_game plugin
checking for fping... no
** Get fping from http://www.fping.com in order to make check_fping 
plugin
checking for ssh... (cached) /usr/bin/ssh
checking for mailq... (cached) /usr/bin/mailq
./configure[6932]: swap: not found
checking for dig... (cached) /usr/sbin/dig
yes
creating ./config.status
creating Makefile
creating subst
creating lib/Makefile
creating plugins/Makefile
creating plugins-scripts/Makefile
creating plugins-scripts/subst
creating plugins-scripts/utils.pm
creating plugins-scripts/utils.sh
creating command.cfg
creating test.pl
creating plugins/config.h
plugins/config.h is unchanged
creating plugins/common.h
plugins/common.h is unchanged
creating plugins/version.h
plugins/version.h is unchanged
creating plugins/netutils.h
plugins/netutils.h is unchanged
creating plugins/utils.h
plugins/utils.h is unchanged
creating plugins/popen.h
plugins/popen.h is unchanged



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list