<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v = 
"urn:schemas-microsoft-com:vml" xmlns:o = 
"urn:schemas-microsoft-com:office:office" xmlns:w = 
"urn:schemas-microsoft-com:office:word" xmlns:m = 
"http://schemas.microsoft.com/office/2004/12/omml"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3243" name=GENERATOR>
<STYLE>@font-face {
        font-family: Cambria Math;
}
@font-face {
        font-family: Calibri;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.0in 1.0in 1.0in; }
P.MsoNormal {
        FONT-SIZE: 11pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Calibri","sans-serif"
}
LI.MsoNormal {
        FONT-SIZE: 11pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Calibri","sans-serif"
}
DIV.MsoNormal {
        FONT-SIZE: 11pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Calibri","sans-serif"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.EmailStyle17 {
        COLOR: windowtext; FONT-FAMILY: "Calibri","sans-serif"; mso-style-type: personal-compose
}
.MsoChpDefault {
        mso-style-type: export-only
}
DIV.Section1 {
        page: Section1
}
</STYLE>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV dir=ltr align=left><SPAN class=407390918-03012008><FONT face=Arial 
color=#0000ff size=2>Here's what I use for short, concise 
alerts:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=407390918-03012008><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=407390918-03012008><FONT face="Courier New" 
size=2>#!/bin/perl</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=407390918-03012008><FONT face="Courier New" 
size=2># RCS $Id: brief_alert,v 1.2 2007/06/09 18:09:39 hobbit Exp 
$</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=407390918-03012008><FONT face="Courier New" 
size=2>use strict;</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=407390918-03012008><FONT face="Courier New" 
size=2>my $Subject = "Hobbit Alert! \u$ENV{BBCOLORLEVEL} light : $ENV{BBSVCNAME} 
: $ENV{BBHOSTNAME}";</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=407390918-03012008><FONT face="Courier New" 
size=2>my $Body = "Hobbit Monitoring Alert!\n\nA \u$ENV{BBCOLORLEVEL} light 
condition has been detected for SERVICE=$ENV{BBSVCNAME} on 
HOST=$ENV{BBHOSTNAME}";</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=407390918-03012008><FONT face="Courier New" 
size=2>SendMail($Subject, $Body);</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=407390918-03012008><FONT face="Courier New" 
size=2>sub SendMail {<BR>        my($Subject, 
$Body) = @_;<BR>        open( MAIL, '| 
/usr/lib/sendmail -F "Hobbit" 
-t');<BR>        print MAIL  "To: 
$ENV{RCPT}\n";<BR>        print MAIL  
"Subject: $Subject\n\n" if defined 
$Subject;<BR>        print MAIL  
"$Body\n" if defined $Body;<BR>        
close(MAIL);<BR>}<BR></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=407390918-03012008><FONT face=Arial 
color=#0000ff size=2>Called like this (example) from 
hobbit-alerts.cfg:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=407390918-03012008><FONT face="Courier New" 
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=407390918-03012008><FONT size=2><FONT 
face="Courier New">$BRIEF_ALERT=/development/hobbit/server/ext/brief_alert<BR>HOST=servername 
SERVICE=http COLOR=red<BR>        SCRIPT 
$BRIEF_ALERT <A 
href="mailto:recipient@mycompany.com">recipient@mycompany.com</A> 
DURATION>10m REPEAT=1d<BR></FONT></DIV></FONT></SPAN><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Joshua Krause 
[mailto:forums@triadbiz.rr.com] <BR><B>Sent:</B> Thursday, January 03, 2008 5:32 
AM<BR><B>To:</B> hobbit@hswn.dk<BR><B>Subject:</B> [hobbit] custom paging 
script<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1>
<P class=MsoNormal>Has anyone come up with a custom paging script that will only 
page out certain information? <o:p></o:p></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal><o:p> </o:p></P></DIV></BODY></HTML>