[hobbit] Adding a New Column to my hobbit server
Sanu Mathew
mathew.sanu at gmail.com
Tue Mar 10 21:36:51 CET 2009
Thanks Stef,
Here is my script.
#!/bin/sh
COLUMN=foo # Name of the column
COLOR=green # By default, everything is OK
MSG="foo is Down"
MSG1="foo is Good"
COLOR=red
$BB $BBDISP "status $MACHINE.$COLUMN $COLOR `date` ${MSG}"
sleep 60
COLOR=green
$BB $BBDISP "status $MACHINE.$COLUMN $COLOR `date` ${MSG1}"
fi
fi
Let me know if the above task is right.
> 2. Is there a way to know if the client is able to send the data to the
> hobbit server?
>You can search in the data directory of the hobbit server. Each server has
a
directory in the histlogs directory. In this directory is a sub-directory
per check/column.
There is no sub directory with foo for that server name.
> 1. Is there a way i can debug to find what went wrong?
Dump the bb command you execute in your script to stdout and check for
errors.
Try to execute the same command on the command line and check for errors.
Please help on this.
Regards,
Sanu
On Wed, Mar 11, 2009 at 1:57 AM, Stef Coene <stef.coene at docum.org> wrote:
> On Tuesday 10 March 2009, Sanu Mathew wrote:
> > All,
> >
> > I have followed the method to add a new column from these links.
> You can not 'add' a new column.
> If you send data to the hobbit server in your script, you have to make sure
> the syntax is correct. One of the rules is <client name>.<check name>.
> Client name is the name like it appears in bb-hosts, the check name will be
> the new column name.
>
> > 1. Is there a way i can debug to find what went wrong?
> Dump the bb command you execute in your script to stdout and check for
> errors.
> Try to execute the same command on the command line and check for errors.
>
> > 2. Is there a way to know if the client is able to send the data to the
> > hobbit server?
> You can search in the data directory of the hobbit server. Each server has
> a
> directory in the histlogs directory. In this directory is a sub-directory
> per check/column.
>
> > 3. If the client is able to send the data to the hobbit server, why is it
> > not displaying the new column.
> You can also check the ghost client list. There is an option in the top
> menu.
>
>
> Stef
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe at hswn.dk
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20090311/443428d3/attachment.html>
More information about the Xymon
mailing list