nagios dies with signal 10
stb at lassitu.de
Tue Jul 28 09:37:04 UTC 2009
Am 26.05.2009 um 23:19 schrieb Stefan Bethke:
> Am 26.05.2009 um 22:49 schrieb Wesley Shields:
>> On Tue, May 26, 2009 at 06:37:24AM +0200, Stefan Bethke wrote:
>>> I just noticed that my nagios keeps dying about five minutes after
>>> startup with signal 10. Up-to-date current from May 21.
>>> I've tried portupgrade -fR nagios, but that alone does not seem to
>>> sufficient to fix it. I've tried nagios both with and without
>>> embedded perl.
>> I'm assuming you've got the latest nagios port when you do this? I
>> committed a fix for this and AFAIK the problem has been resolved
> $ pkg_info|grep nagio
> nagios-3.0.6_1 Extremely powerful network monitoring system
> nagios-plugins-1.4.13,1 Plugins for Nagios
> $ head /usr/ports/net-mgmt/nagios/Makefile
> # New ports collection makefile for: nagios
> # Date created: 19 May 2002
> # Whom: Blaz Zupan <blaz at si.FreeBSD.org>
> # $FreeBSD: ports/net-mgmt/nagios/Makefile,v 1.79 2009/05/04
> 15:36:05 wxs Exp $
> As I said, this only started after I updated to -current on May 21.
> With the earlier current (from around April) it was working fine.
> I will try to ktrace nagios on the weekend.
I finally got round looking into this again; nagios is still broken
FreeBSD krokodil.zs64.net 8.0-CURRENT FreeBSD 8.0-CURRENT #12: Fri Jun
12 06:29:20 UTC 2009 root at lokschuppen.zs64.net:/usr/obj/usr/src/
with sources from June 11.
I've tried net-mgmt/nagios and net-mgmt/nagios-devel with and without
embedded perl, to no avail. Nagios starts up, runs a few (almost
all?) checks, then crashed with a bus error. The debug log does not
contain anything useful. I've compiled nagios with CFLAGS=-g, and I
get this in gdb:
# gdb base/nagios
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
welcome to change it and/or distribute copies of it under certain
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
This GDB was configured as "amd64-marcel-freebsd"...
(gdb) r /usr/local/etc/nagios/nagios.cfg
Starting program: /var/ports/work/net-mgmt/nagios-devel/nagios-3.1.2/
[New LWP 100227]
[New Thread 800c021c0 (LWP 100227)]
Copyright (c) 2009 Nagios Core Development Team and Community
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 06-23-2009
Nagios 3.1.2 starting... (PID=55280)
Local time is Tue Jul 28 09:21:56 UTC 2009
Warning: Host 'tivo' has no services associated with it!
[New Thread 800c511c0 (LWP 100449)]
Program received signal SIGBUS, Bus error.
[Switching to Thread 800c021c0 (LWP 100227)]
0x000000000044869a in get_next_comment_by_host (host_name=0x800c6f960
"slingbox", start=0x800c488e0) at ../common/comments.c:632
632 for(;temp_comment && compare_hashdata(temp_comment-
#0 0x000000000044869a in get_next_comment_by_host
(host_name=0x800c6f960 "slingbox", start=0x800c488e0) at ../common/
#1 0x0000000000447ad1 in delete_host_acknowledgement_comments
(hst=0x800c16800) at ../common/comments.c:301
#2 0x00000000004362e6 in handle_host_state (hst=0x800c16800) at
#3 0x0000000000412955 in process_host_check_result_3x
old_plugin_output=0x800c486a0 "CRITICAL - slingbox.lassitu.de:
Host unreachable @ 184.108.40.206. rta nan, lost 100%",
check_options=0, reschedule_check=1, use_cached_result=1,
check_timestamp_horizon=15) at checks.c:3744
#4 0x00000000004117ac in handle_async_host_check_result_3x
(temp_host=0x800c16800, queued_check_result=0x800c6b0c0) at checks.c:
#5 0x000000000040a7c7 in reap_check_results () at checks.c:206
#6 0x000000000042574d in handle_timed_event (event=0x800c86fe0) at
#7 0x0000000000424cc8 in event_execution_loop () at events.c:1002
#8 0x000000000040a3c2 in main (argc=2, argv=0x7fffffffea58) at
(gdb) p temp_comment
$1 = (comment *) 0x5a5a5a5a5a5a5a5a
I've been told that nagios simply isn't 64bis clean, and it's a lost
cause. I can't believe nobody is running nagios on amd64, though.
Stefan Bethke <stb at lassitu.de> Fon +49 151 14070811
More information about the freebsd-current