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.
Is there a way around this? The idea is to have this file as a page for reference. I personally think a better solution is to use access or excel (in mswords), but . . . boss wants it this way.
joe a.
Check the MAXMSG_STATUS in hobbitserver.cfg, and take a look at your logs. You might be getting a message about oversized status messages. You can change the value in hobbitserver.cfg if needed.
From: xymon-bounces at xymon.com [xymon-bounces at xymon.com] On Behalf Of Joe Acquisto [joe.acquisto at gmail.com] Sent: Friday, April 29, 2011 11:41 AM To: xymon at xymon.com Subject: [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.
Is there a way around this? The idea is to have this file as a page for reference. I personally think a better solution is to use access or excel (in mswords), but . . . boss wants it this way.
joe a.
A couple of caveats to upping the message size, the history will store the whole thing for every state change, if the server has a largish number of hosts you can overwhelm the listening daemon.
On 4/29/11 11:47 AM, "Tim McCloskey" <tm at freedom.com> wrote:
Check the MAXMSG_STATUS in hobbitserver.cfg, and take a look at your logs. You might be getting a message about oversized status messages. You can change the value in hobbitserver.cfg if needed.
From: xymon-bounces at xymon.com [xymon-bounces at xymon.com] On Behalf Of Joe Acquisto [joe.acquisto at gmail.com] Sent: Friday, April 29, 2011 11:41 AM To: xymon at xymon.com Subject: [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.
Is there a way around this? The idea is to have this file as a page for reference. I personally think a better solution is to use access or excel (in mswords), but . . . boss wants it this way.
joe a.
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
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
datecat /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
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
datecat /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
This is a problem with the shell - effectively that file becomes a parameter of the bb command and is thus too big for sh or bash to handle.
I'm fairly new to xymon so I haven't done it myself, if you were running xymon you might be able to define "somefile" as a log file and use the xymon client to move it to the server. As you probably aren't, you could send a URL of "somefile" as part of the message so the viewer could click on it to access the file (via a web server). To do this you'd need to copy somefile to a web server as well...
hope that helps.
On 4/30/2011 at 4:11 AM, in message <BANLkTikybexniKWZtQi71iuDtXnTAHyQpw at mail.gmail.com>, Joe Acquisto <joe.acquisto at gmail.com> wrote: 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
datecat /somefile""somefile" is rather large, some 428k and I can confirm it works fine if I make "somefile" much smaller.
Is there a way around this? The idea is to have this file as a page for reference. I personally think a better solution is to use access or excel (in mswords), but . . . boss wants it this way.
joe a.
participants (5)
-
dshiels@paypal.com
-
henrik@hswn.dk
-
joe.acquisto@gmail.com
-
Phil.Crooker@orix.com.au
-
tm@freedom.com