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 (XXX) XXX-XXXX
Office (XXX) XXX-XXXX ext. XXXX
Mobile (XXX) XXX-XXXX
Hubbard, Greg L wrote:
&green, etc
*From:* Haertig, David F (Dave) [mailto:user-68874b735d77@xymon.invalid]
*Sent:* Wednesday, June 06, 2007 4:15 PM
*To:* user-ae9b8668bcde@xymon.invalid
*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.