Xymon Mailing List Archive search

Adding custom LARRD graphs

list Charles Jones
Mon, 24 Jan 2005 16:03:31 -0700
Message-Id: <user-1b30d26556ba@xymon.invalid>

Henrik Stoerner wrote:
and use the "bb" utility to send it off as a "data"
message to Hobbit. E.g. the following script runs your perl script,
stores the output in a temporary file, and uses the "bb" utility from
a Big Brother client installation to send this datafile to Hobbit
in a "data" message:

  #!/bin/sh

  /foo/perlscript >/tmp/datafile
    BBHOME=/usr/local/bbc
  export BBHOME
  . $BBHOME/etc/bbdef.sh

  $BB $BBDISP "data $MACHINE.orasync

  `cat /tmp/datafile`
  "

Now the fun bit starts. Hobbit will automatically pass data-messages
to all tasks monitoring the "data" channel. 
Can you tell me the difference between using "data" and "status"?  The reason I ask is because I looked at the hobbitd/larrd/do_bea.c (because it was the smallest one), and I notice in the comments that script that feeds it is using "status" instead of "data".

Thanks,
-Charles