[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [hobbit] alert question



Have a read of the hobbit-alerts man page to get you staretd on how alert
scripts work.

Your script will need to read in the message from the environment variable
and do a replace of all the found &colour strings with a URL to each of the
coloured gifs from the hobbit web server. You may need to ensure the message
is sent as a valid html message etc so it works in your email client.

You will also need to reproduce the subject line etc using the env variables
that hobbit defines.

Cheers

Phil




2008/5/23 Josh Luthman <josh (at) imaginenetworksllc.com>:

> Here is some (well..only one =) custom alert scripts:
>
> http://www.trantor.org/theshire/doku.php/alerts
>
>
> On Thu, May 22, 2008 at 11:14 PM, Ryan Jay B. Lapuz <
> rlapuz (at) fcpp.fujitsu.com> wrote:
>
>>  Thanks for the quick reply!
>>
>> Make a custom script; can someone share me the their script and teach me
>> how to configure it?
>>
>> Thanks in advance!
>>
>> Regards.
>> Ryan
>>
>> ----- Original Message -----
>> *From:* Josh Luthman <josh (at) imaginenetworksllc.com>
>> *To:* hobbit (at) hswn.dk
>> *Sent:* Friday, May 23, 2008 11:01 AM
>> *Subject:* Re: [hobbit] alert question
>>
>> Pretty sure you'll have to create a custom script and put in the HTML code
>> in the data section of your email.  To my knowledge you can't simply stick
>> in text in the alert Hobbit sends.
>>
>> On Thu, May 22, 2008 at 10:57 PM, Ryan Jay B. Lapuz <
>> rlapuz (at) fcpp.fujitsu.com> wrote:
>>
>>>  Hi all!
>>>
>>> Just a follow up newbie question.
>>>
>>> How can I make hobbit to send me alerts with icon like that alert below?
>>> I am receiving alerts like this:
>>>
>>> &yellow Warnings in <a
>>> href="/hobbit-cgi/bb-hostsvc.sh?CLIENT=HOST&amp;SECTION=msgs:/var/adm/messages">/var/adm/messages</a>
>>> *Hobbit 4.2.0 w/ all-in-one patch instaled in Fedora Core 6*
>>>
>>>
>>>  ------------------------------
>>>
>>>
>>>
>>>
>>>    [image: green] Listener LISTENER_RMAN1 UP
>>>
>>>    [image: red] Listener LISTENER DOWN
>>>
>>>
>>>
>>>    [image: red] Listener LISTENER DOWN
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>> --
>> Josh Luthman
>> Office: 937-552-2340
>> Direct: 937-552-2343
>> 1100 Wayne St
>> Suite 1337
>> Troy, OH 45373
>>
>> Those who don't understand UNIX are condemned to reinvent it, poorly.
>> --- Henry Spencer
>>
>>
>
>
> --
> Josh Luthman
> Office: 937-552-2340
> Direct: 937-552-2343
> 1100 Wayne St
> Suite 1337
> Troy, OH 45373
>
> Those who don't understand UNIX are condemned to reinvent it, poorly.
> --- Henry Spencer
>



-- 
Tel: 0400 466 952
Fax: 0433 123 226
email: philwild AT gmail.com