[hobbit] custom script help
Avi Rosenblatt
arosen at oleh.com
Thu Aug 2 22:43:07 CEST 2007
thanx.
I would prefer the message bodies were sent to the hobbit server. Is
there a way of doing that? Also, would the text appear in the hobbit
template or just as a regular text page?
Thanx.
Avi R.
On 2-Aug-07, at 4:35 PM, Ralph Mitchell wrote:
> On 8/2/07, Avi Rosenblatt <arosen at oleh.com> wrote:
>> Hi,
>> I'm writing a custom script that parses a mailbox and sends the
>> contents to the hobbit server. The problem is some emails are large,
>> so I would like the status page to show a list of email subjects
>> which, when one is clicked, would display the contents of that
>> message. Is that possible? If so, how would I go about sending the
>> body of each message and generating a link in the status page.
>
> If your script assembles a message something like this:
>
> LINE="status $MACHINE.$TEST $COLOR `date`
> <a href=url_for_message_1>subject of message 1</a>
> <a href=url_for_message_2>subject of message 2</a>"
>
> and then sends that to Hobbit using:
>
> $BB $BBDISP "$LINE"
>
> you should get a detail page with clickable links.
>
> $MACHINE should be the machine name with commas instead of dots.
> $TEST should be the name of the column you want to report.
>
> Ralph Mitchell
>
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe at hswn.dk
>
>
More information about the Xymon
mailing list