Xymon Mailing List Archive search

bb: Argument list too large long

list Henrik Størner
Fri, 29 Apr 2011 23:01:40 +0200
Message-Id: <user-1f21e5cc5291@xymon.invalid>

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