[hobbit] Hobbit 4.0 RC4 available
Henrik Stoerner
henrik at hswn.dk
Sun Feb 27 23:18:58 CET 2005
On Sun, Feb 27, 2005 at 04:34:13PM -0500, Stuffle, David wrote:
> Hello,
> I just upgraded to RC4. My hobbit server now has a hobbitd_alert column
> that is red. It says "-Program crashed" - "Fatal signal caught!".
Well, one of my own boxes just did the same thing, and it's pretty
obvious what the problem was.
The attached one-line fix should solve this.
Henrik
-------------- next part --------------
--- hobbitd/do_alert.c 2005/02/27 07:53:00 1.49
+++ hobbitd/do_alert.c 2005/02/27 22:16:46
@@ -13,7 +13,7 @@
/* */
/*----------------------------------------------------------------------------*/
-static char rcsid[] = "$Id: do_alert.c,v 1.49 2005/02/27 07:53:00 henrik Exp $";
+static char rcsid[] = "$Id: do_alert.c,v 1.50 2005/02/27 22:16:22 henrik Exp $";
/*
* The alert API defines three functions that must be implemented:
@@ -953,7 +953,7 @@
}
if (result)
- traceprintf("*** Match with '%s' ***\n", crit->cfline);
+ traceprintf("*** Match with '%s' ***\n", (crit ? crit->cfline : "<rule line>"));
else
traceprintf("%s\n", "Failed (color)");
More information about the Xymon
mailing list