check_http core dump on solaris

craig craigc at nortelnetworks.com
Mon Nov 1 16:30:06 CET 2004


With web server running

solaris:/usr/local/nagios/libexec# ./check_http -I 192.168.0.100 -u
http://192.168.0.100/index.html -s "test"
HTTP OK HTTP/1.1 200 OK - 0.112 second response time |time=112000us;;;0
size=284B;;;0

With web server stopped

solaris:/usr/local/nagios/libexec# ./check_http -I 192.168.0.100 -u
http://192.168.0.100/index.html -s "test"
Segmentation Fault(coredump)


solaris:/usr/local/nagios/libexec# ./check_http --help
check_http (nagios-plugins 1.4.0alpha1) 1.54
The nagios plugins come with ABSOLUTELY NO WARRANTY. You may
redistribute
[snip]

solaris:/usr/local/nagios/libexec# ldd check_http
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libresolv.so.2 =>        /usr/lib/libresolv.so.2
        libiconv.so.2 =>         /usr/local/lib/libiconv.so.2
        libgen.so.1 =>   /usr/lib/libgen.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2
        /usr/platform/SUNW,Sun-Blade-100/lib/libc_psr.so.1

solaris:/usr/local/nagios/libexec# uname -a
SunOS solaris 5.9 Generic_117171-07 sun4u sparc SUNW,Sun-Blade-100

Nagios 1.2
Solaris 9

Nagios was compiled on this box using gcc

Any idea how to stop this from core dumping?  Or point me to a URL
content checker that works?  I don't really want to write my own if can
avoid it.

The problem is if the web server dies, nagios does not report an error.

(check_ping works from this server)

The same test from a linux workstation does not crash if the web server
is dead.

Thanks

Craig Cook



-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
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