<html 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" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
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 link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>This is what my hobbit-alerts.cfg looks like.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>#HOST=%gsonc-.*-mod-* SERVICE=conn,file COLOR=yellow,red<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>#       MAIL $ENGPAGE REPEAT=60 RECOVERED<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>#HOST=gsonc-spg-dncs SERVICE=conn,files COLOR=yellow,red<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>#       MAIL $ENGPAGE REPEAT=60 RECOVERED<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>#HOST=%gsonc-.*-4948-* SERVICE=conn,trap COLOR=yellow,red<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>#       MAIL $ENGPAGE REPEAT=60 RECOVERED<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>#HOST=%gsonc-.*-2950-* SERVICE=conn,trap COLOR=yellow,red<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>#       MAIL $ENGPAGE FORMAT=SMS REPEAT=60 RECOVERED<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>HOST=* SERVICE=* EXSERVICE=msgs COLOR=yellow,red<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>        MAIL $ENGMAIL REPEAT=1d RECOVERED<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>        SCRIPT /opt/hobbit/server/ext/smsplus.sh $ENGPAGE
RECOVERED<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>#       MAIL $ENGPAGE FORMAT=SMS REPEAT=1d RECOVERED<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>And I am not getting anything when a recovery happens, at least
on my if_stat column.  That is the only thing that is going up and down at the
moment.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Thanks<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Josh<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Gary Baluha
[mailto:gumby3203@gmail.com] <br>
<b>Sent:</b> Thursday, January 10, 2008 3:51 PM<br>
<b>To:</b> hobbit@hswn.dk<br>
<b>Subject:</b> Re: [hobbit] custom paging script<o:p></o:p></span></p>

</div>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal style='margin-bottom:12.0pt'>Actually, it will send out
pages for that as well, since the actual paging is still controlled by
hobbit-alerts.cfg.  The part where it is grep'ing for red and yellow is
just to get the particular item in a non-green state.  For instance, if you
are monitoring 10 processes on a machine, instead of showing ALL processes,
including the green ones, only the ones in a non-green state will show up with
this script.  It's actually looking for "&yellow" or
"&red". <br>
<br>
The error message will look like:<br>
Subject = !HB [12345]<br>
Body = machine.procs red<br>
&red someproc (found 0, req. 1 or more)<br>
<br>
And the recovery messages will look something like this:<br>
Subject = !HB [-1] <br>
Body = machine.procs red<br>
<br>
If you wanted to use something else instead of "-1" to indicate
recovery, you could add something like the following in place of the
msg=<blah> lines:<br>
if [ ${ACKCODE} -eq "-1" ] then; msg="Recovered"; <br>
else msg=` <blah>`; msg="\n${msg}";<br>
done<br>
<br>
<o:p></o:p></p>

<div>

<p class=MsoNormal>On Jan 10, 2008 3:31 PM, Joshua Krause <<a
href="mailto:forums@triadbiz.rr.com">forums@triadbiz.rr.com</a>> wrote:<o:p></o:p></p>

<div>

<div>

<p><span style='font-size:11.0pt;color:#1F497D'>I noticed your script sends out
a page with a yellow and red response.  But how would you go about
tweaking it to be able to send the recovery message also.</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'> </span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>Thanks,</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'> </span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'>Josh</span><o:p></o:p></p>

<p><span style='font-size:11.0pt;color:#1F497D'> </span><o:p></o:p></p>

<div style='border:none;border-top:solid windowtext 1.0pt;padding:3.0pt 0in 0in 0in;
border-color:-moz-use-text-color -moz-use-text-color'>

<p><b><span style='font-size:10.0pt'>From:</span></b><span style='font-size:
10.0pt'> Gary Baluha [mailto:<a href="mailto:gumby3203@gmail.com"
target="_blank">gumby3203@gmail.com</a>] <br>
<b>Sent:</b> Thursday, January 03, 2008 11:29 AM<br>
<b>To:</b> <a href="mailto:hobbit@hswn.dk" target="_blank">hobbit@hswn.dk</a><br>
<b>Subject:</b> Re: [hobbit] custom paging script</span><o:p></o:p></p>

</div>

<div>

<div>

<p> <o:p></o:p></p>

<p style='margin-bottom:12.0pt'>Sounds like you're asking for smsplus:<br>
<a href="http://www.trantor.org/theshire/doku.php/alerts" target="_blank">http://www.trantor.org/theshire/doku.php/alerts</a><o:p></o:p></p>

<div>

<p>On Jan 3, 2008 7:31 AM, Joshua Krause < <a
href="mailto:forums@triadbiz.rr.com" target="_blank">forums@triadbiz.rr.com</a>>
wrote:<o:p></o:p></p>

<div>

<div>

<p>Has anyone come up with a custom paging script that will only page out
certain information? <o:p></o:p></p>

<p> <o:p></o:p></p>

<p> <o:p></o:p></p>

</div>

</div>

</div>

<p> <o:p></o:p></p>

</div>

</div>

</div>

</div>

</div>

<p class=MsoNormal><o:p> </o:p></p>

</div>

</body>

</html>