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 [user-ce4a2c883f75@xymon.invalid]
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