[Xymon] bb: Argument list too large long
Tim McCloskey
tm at freedom.com
Fri Apr 29 23:28:52 CEST 2011
Doh! I thought he re-used the subject line from something else. To me, it read 're: Argument list too large long' -- Guess I'm gonna need to get my eyes fixed :)
Hope you're doing well Henrik.
________________________________________
From: xymon-bounces at xymon.com [xymon-bounces at xymon.com] On Behalf Of Henrik Størner [henrik at hswn.dk]
Sent: Friday, April 29, 2011 2:01 PM
To: xymon at xymon.com
Subject: Re: [Xymon] bb: Argument list too large long
> When trying to send a simple status message to hobbit (yes still at that
> level) , along the line of : /path_to_bb/bb my_hobbit_host "status+1d
> page.subpage green `date` `cat /somefile`"
>
> "somefile" is rather large, some 428k and I can confirm it works fine if
> I make "somefile" much smaller.
Sounds like a shell limitation on the commandline length.
Use the '@' and feed the input to "bb" via stdin instead of the
commandline. Like this:
(echo "status+1d page.subpage green `date`"; cat somefile) | \
$BB $BBDISP "@"
Or if you're using the 4.3.x version of the "xymon" utility:
cat somefile | \
xymon --merge my_xymon_server "status+1d page.subpage green `date`"
Regards,
Henrik
_______________________________________________
Xymon mailing list
Xymon at xymon.com
http://lists.xymon.com/mailman/listinfo/xymon
More information about the Xymon
mailing list