[hobbit] sending client side data
Ralph Mitchell
ralphmitchell at gmail.com
Tue Jul 31 12:32:21 CEST 2007
On 7/31/07, Jones, Jason (Altrincham) <JasonAS_Jones at mentor.com> wrote:
>
> I've been looking through the archives at the sample server side module
> Henrick showed us
> (http://www.hswn.dk/hobbiton/2007/01/msg00487.html) I'm
> just curious if anyone knows how to send data from the client side to the
> server the same way the standard hobbit client tests do, looking at bb I'm
> guessing either bb data or bb client, but when I run bb <hobbitIP> "client
> <hostname>.<os>" nothing happens and the man pages don't mention how to
> actually send the data etc.
I have a Hobbit client install running a BigIP check. In
client/etc/clientlaunch.cfg:
[bigip-v4]
ENVFILE $HOBBITCLIENTHOME/etc/hobbitclient.cfg
CMD $HOBBITCLIENTHOME/ext/bigip/bigip3.sh
LOGFILE $HOBBITCLIENTHOME/logs/hobbitclient.log
INTERVAL 5m
After doing what it needs to do to get the status, the script sends
off a status message to the server like this:
MACHINE=`echo $NAME | sed -e 's/\./,/g'`
MESSAGE="status $MACHINE.$TEST $COLOR `date`<P><font size=+2>The
$BIGIP BigIP says: $NAME $TEST is $STATE</font>"
$BB $BBDISP $MESSAGE
Is that what you're looking for??
Ralph Mitchell
More information about the Xymon
mailing list