[hobbit] Using Hobbit icons inside your status messages

Daniel Bourque dbourque at weatherdata.com
Thu Jun 7 00:10:49 CEST 2007


This is how hobbit reports statuses( mostly ), so it makes it easier to 
make your checks & alert scripts more generic.

to grab status messages ( perl ):

foreach $line ( split($ENV{BBALPHAMSG},'\n') ) {
    if ( /^&(yellow|red|purple)/ ) {
          # do whatever with $line
    }
}



Daniel Bourque
Systems/Network Administrator
Weather Data Inc

Office (316) 266-8013
Office (316) 265-9127 ext. 3013
Mobile (316) 640-1024



Hubbard, Greg L wrote:

> &green, etc
>
>     *From:* Haertig, David F (Dave) [mailto:haertig at avaya.com]
>     *Sent:* Wednesday, June 06, 2007 4:15 PM
>     *To:* hobbit at hswn.dk
>     *Subject:* [hobbit] Using Hobbit icons inside your status messages
>
>     Is there some "officially condoned" method to get Hobbit icons
>     into your status messages?
>      
>     Back when using Big Brother, I would just add something like:
>
> <IMG SRC=/gifs/green.gif ALT=green HEIGHT=16 WIDTH=16 BORDER=0> 
>
> to the status message.  I'm sure something similar would work for Hobbit too. 
>
> I was just wondering if there was some built-in auto substitution in Hobbit that would be cleaner.  Maybe like putting " __GREEN__" inside the status message. 
>
>   
>
>   
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20070606/6b2825f8/attachment.html>


More information about the Xymon mailing list