Xymon Mailing List Archive search

custom script help

list Avi Rosenblatt
Thu, 2 Aug 2007 16:43:07 -0400
Message-Id: <user-b5f80f088d50@xymon.invalid>

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 <user-f437326b936c@xymon.invalid> 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