bb: Argument list too large long
list Joe Acquisto
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.
list Tim McCloskey
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 [user-8a324efe5034@xymon.invalid]
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.
list David Shiels
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" <user-440820cc07d6@xymon.invalid> 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 [user-8a324efe5034@xymon.invalid]
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.
list Tim McCloskey
From hobbit 4.2.0 you can use these variables to define message sizes. I'd have to rtfm to see if they are there by default since I don't recall if I added them manually. Regardless, you can use the MAXMSG_STATUS setting if needed. But keep in mind what Mr. Shiels mentioned already.
MAXMSG_STATUS="nnn"
MAXMSG_DATA="nnn"
MAXMSG_CLIENT="nnn"
Tim
Shiels, David dshiels at
Fri Apr 29 20:53:57 CEST 2011
Previous message: [Xymon] bb: Argument list too large long
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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.
From: Joe Acquisto [user-8a324efe5034@xymon.invalid]
Sent: Friday, April 29, 2011 12:05 PM
To: Tim McCloskey
Subject: Re: [Xymon] bb: Argument list too large long
Don't see that in hobbitserver.cfg. This is hobbit 4.20.
joe a.
▸
On Fri, Apr 29, 2011 at 2:47 PM, Tim McCloskey <user-440820cc07d6@xymon.invalid<mailto:user-440820cc07d6@xymon.invalid>> 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<mailto:xymon-bounces at xymon.com> [xymon-bounces at xymon.com<mailto:xymon-bounces at xymon.com>] On Behalf Of Joe Acquisto [user-8a324efe5034@xymon.invalid<mailto:user-8a324efe5034@xymon.invalid>]
Sent: Friday, April 29, 2011 11:41 AM
To: xymon at xymon.com<mailto: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.
list Henrik Størner
▸
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
list Tim McCloskey
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
list Phil Crooker
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
<user-81b3194779e2@xymon.invalid>, Joe Acquisto
▸
<user-8a324efe5034@xymon.invalid> 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 `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.