Xymon Mailing List Archive search

Using Hobbit icons inside your status messages

3 messages in this thread

list Dave Haertig · Wed, 6 Jun 2007 15:15:29 -0600 ·
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.
list Greg L Hubbard · Wed, 6 Jun 2007 16:25:43 -0500 ·
&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.
list Daniel Bourque · Wed, 06 Jun 2007 17:10:49 -0500 ·
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
quoted from Greg L Hubbard


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.