Xymon Mailing List Archive search

Script limits

3 messages in this thread

list Joshua Krause · Tue, 5 Aug 2008 13:56:33 -0400 ·
What are the limits of data that is sent to hobbit via a script?  I have
thrown together a perl script that grabs data from a file and then sends to
hobbit in a table format.  At first I was trying to send the table with a
kinda of pretty html format so that when you goto a view source it was
easily readable.  Well that wasn't working cause the file wasn't getting
updated in hobbit.  I piped the output of the script to a text file and and
did a line count on it.  It had about 4000 lines in the file that was being
sent to hobbit.  So I took all the lines returns away and made it all one
line and it gets to hobbit now.  But I am wanting to get a little bit more
in there with graphing and didn't know if I was needing to look at a line
limit that hobbit is able to accept.

 
-Josh
list Ralph Mitchell · Tue, 5 Aug 2008 13:09:16 -0500 ·
quoted from Joshua Krause
On Tue, Aug 5, 2008 at 12:56 PM, Joshua Krause <user-41d3365fe380@xymon.invalid>wrote:
 What are the limits of data that is sent to hobbit via a script?  I have
thrown together a perl script that grabs data from a file and then sends to
hobbit in a table format.  At first I was trying to send the table with a
kinda of pretty html format so that when you goto a view source it was
easily readable.  Well that wasn't working cause the file wasn't getting
updated in hobbit.  I piped the output of the script to a text file and and
did a line count on it.  It had about 4000 lines in the file that was being
sent to hobbit.  So I took all the lines returns away and made it all one
line and it gets to hobbit now.  But I am wanting to get a little bit more
in there with graphing and didn't know if I was needing to look at a line
limit that hobbit is able to accept.
Dunno about line limits, but there are some byte limits mentioned in the
hobbitserver.cfg man page

   http://www.hswn.dk/hobbit/help/manpages/man5/hobbitserver.cfg.5.html#lbAJ

For example:
     MAXMSG_STATUS The maximum size of a "status" message in kB, default:
256. Status messages are the ones that end up as columns on the web display.
The default size should be adequate in most cases, but some extension
scripts can generate very large status messages - close to 1024 kB. You
should only change this if you see messages in the hobbitd log file about
status messages being truncated. Does the log show any messages being
truncated??

Ralph Mitchell
list Joshua Krause · Tue, 5 Aug 2008 14:46:46 -0400 ·
I didn't see anything getting truncated in the hobbitd column.  But when I
ran the script it wouldn't show up on the column for the hobbit display.
Currently the file is 40K in size.  The size of the file I was sending
before was 300K.  Don't know if that gives you anymore info.

 
-Josh

 
From: Ralph Mitchell [mailto:user-00a5e44c48c0@xymon.invalid] 
Sent: Tuesday, August 05, 2008 2:09 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Script limits

 
On Tue, Aug 5, 2008 at 12:56 PM, Joshua Krause <user-41d3365fe380@xymon.invalid>
quoted from Ralph Mitchell
wrote:

What are the limits of data that is sent to hobbit via a script?  I have
thrown together a perl script that grabs data from a file and then sends to
hobbit in a table format.  At first I was trying to send the table with a
kinda of pretty html format so that when you goto a view source it was
easily readable.  Well that wasn't working cause the file wasn't getting
updated in hobbit.  I piped the output of the script to a text file and and
did a line count on it.  It had about 4000 lines in the file that was being
sent to hobbit.  So I took all the lines returns away and made it all one
line and it gets to hobbit now.  But I am wanting to get a little bit more
in there with graphing and didn't know if I was needing to look at a line
limit that hobbit is able to accept.


Dunno about line limits, but there are some byte limits mentioned in the
hobbitserver.cfg man page

   http://www.hswn.dk/hobbit/help/manpages/man5/hobbitserver.cfg.5.html#lbAJ

For example:


     MAXMSG_STATUS

The maximum size of a "status" message in kB, default: 256. Status messages
are the ones that end up as columns on the web display. The default size
should be adequate in most cases, but some extension scripts can generate
very large status messages - close to 1024 kB. You should only change this
if you see messages in the hobbitd log file about status messages being
truncated. 

Does the log show any messages being truncated??

Ralph Mitchell