On Mon, 2005-01-24 at 16:12 -0700, Charles Jones wrote:
Charles Jones wrote:
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
Opps, scratch that....the do_bea.c is definitely not the smallest one, and I should have looked at the one you suggested :-) I would still like to know the difference between, and when one should use, data vs status though.
AFAIK, status is the result of a test, which should be alarmed/displayed/etc, whereas data is not alarmed/displayed, just handed off to something else to deal with it. (I think in BB it was just appended to a file in bbvar/data/hostname....)
Regards, Adam
--
Adam Goryachev Website Managers Ph: +61 2 8304 0000 adam at websitemanagers.com.au Fax: +61 2 9345 4396 www.websitemanagers.com.au