[hobbit] ext hobbit client scripts

Henrik Stoerner henrik at hswn.dk
Thu Sep 15 07:36:41 CEST 2005


On Wed, Sep 14, 2005 at 08:50:45PM -0400, Jeff Stoner wrote:
> On Tue, 2005-09-13 at 09:23 +0200, Henrik Stoerner wrote:
> > @@data#18078|1126595825.225133|127.0.0.1||voodoo.hswn.dk|mydata
> > <the contents of the data message>
> > @@
> > 
> > The first line always has
> >    @@data#Seq.no.|Timestamp|SenderIP|Origin|Hostname|Type
> > and the message ends with "@@"
> > 
> 
> Dumb question....what if incoming data message has "@@" embedded in it?
> How does hobbitd handle it?

Not a dumb question at all.

hobbitd handles it fine - so the web display will look OK. But the 
worker modules handling RRD updates, alerts and the history log updates
will probably see a truncated message - and there'll be some noise in 
the Hobbit logfiles.

The mitigating factor is that it has to be <newline>@@<newline>
i.e. the "@@" must be on a separate line. I've assumed that sequence
was sufficiently unique to not bother with additional safeguards.

If it does turn out to be a problem, one could add a length field to
the first line of the message to make it clear how large each message
is. 


Henrik




More information about the Xymon mailing list