[hobbit] [BUG] hobbitd_alert fails to execute script on large message

Henrik Stoerner henrik at hswn.dk
Wed Jan 2 15:17:52 CET 2008


On Mon, Dec 17, 2007 at 04:43:51PM +0100, Charles Goyard wrote:
> Hi,
> 
> I encounter a serious problem when using the following rule in hobbit-alerts.cfg :
> 
> EXSERVICE=_site
>         SCRIPT=/usr2/hobbitlocal/bin/send_to foobar FORMAT=text RECOVERED REPEAT=6m
> 
> when BBALPHAMSG is large (ie a "procs" or "ports" on a very busy box),
> the log says : 
> 
> 2007-12-17 16:31:01 Could not launch paging script /usr2/hobbitlocal/bin/send_to: Argument list too long

The attached patch can be used to solve this, it puts an upper limit on
the size of the status message passed through the BBALPHAMSG environment
variable. The limit is defined at compile-time through a setting in the
top-level Makefile.

I think this will apply on top of 4.2.0 as well.


Henrik

-------------- next part --------------
A non-text attachment was scrubbed...
Name: max-alert-msg.patch
Type: text/x-diff
Size: 4412 bytes
Desc: not available
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20080102/b834aa06/attachment.patch>


More information about the Xymon mailing list