Xymon Mailing List Archive search

bb: Argument list too large long

7 messages in this thread

list Joe Acquisto · Fri, 29 Apr 2011 14:41:22 -0400 ·
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 · Fri, 29 Apr 2011 11:47:17 -0700 ·
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.
quoted from Joe Acquisto


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 · Fri, 29 Apr 2011 11:53:57 -0700 ·
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.
quoted from Tim McCloskey


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 · Fri, 29 Apr 2011 13:22:33 -0700 ·
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.
quoted from Tim McCloskey

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 · Fri, 29 Apr 2011 23:01:40 +0200 ·
quoted from Tim McCloskey
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 · Fri, 29 Apr 2011 14:28:52 -0700 ·
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.
quoted from Henrik Størner

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 · Mon, 02 May 2011 10:02:51 +1000 ·
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
quoted from Tim McCloskey
<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.