<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:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:D="DAV:" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" 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)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><style>
<!--
 /* Font Definitions */
 @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";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.gmailquote
        {mso-style-name:gmail_quote;}
span.e
        {mso-style-name:e;}
span.q
        {mso-style-name:q;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.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">Phil,<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">I think we have a misunderstanding? We have many remote sites, each with a server running Retrospect to perform backups. BBWin is not running on the servers
 at these remote sites. Retrospect simply sends emails when the backups complete. Retrospect does have the ability to call a script when a backup completes but, that would require installing BBWin on all the remote servers and creating/configuring the Retrospect
 script, etc. To avoid doing that we want to trigger hobbit alerts based on the emails we are already receiving from Retrospect on the remote servers.<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">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""> Phil Wild [mailto:philwild@gmail.com]
<br>
<b>Sent:</b> Tuesday, February 26, 2008 10:25 PM<br>
<b>To:</b> hobbit@hswn.dk<br>
<b>Subject:</b> Re: [hobbit] Monitoring Backups<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Sorry, I wasn't clear... I was talking about the server.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Can the server run a script att he completion of every backup job?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Cheers<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Phil<br>
<br>
 <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="gmailquote">On 27/02/2008, <b>Joshua Johnson</b> <<a href="mailto:joshua@stenhouseconsulting.com">joshua@stenhouseconsulting.com</a>> wrote:</span>
<o:p></o:p></p>
<div>
<div>
<p><span style="font-size:11.0pt;color:#1F497D">Phil,</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">We are using Retrospect and yes it does provide the functionality you are talking about however, we don't want to install the BBWin client on all of these systems. That is why we are going the email route, it
 doesn't require any changes to the clients.</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:10.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 #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p><b><span style="font-size:10.0pt">From:</span></b><span style="font-size:
10.0pt"> Phil Wild [mailto:<a href="mailto:philwild@gmail.com" target="_blank">philwild@gmail.com</a>]
<br>
<b>Sent:</b> Tuesday, February 26, 2008 7:16 PM <o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt"><br>
<span class="e"><b>To:</b> <a href="mailto:hobbit@hswn.dk" target="_blank">hobbit@hswn.dk</a></span><br>
<span class="e"><b>Subject:</b> Re: [hobbit] Monitoring Backups</span><o:p></o:p></span></p>
</div>
</div>
<div>
<p> <o:p></o:p></p>
<div>
<p>Can I ask what backup software you are using?<o:p></o:p></p>
</div>
<div>
<p> <o:p></o:p></p>
</div>
<div>
<p>Rather than processing the email, you may be able to get into the source of the email. If on backup completion you can run a script and you have access to the backup status and error message as variables, you would probably be better off writing a script
 here that calls bb to send a message up.<o:p></o:p></p>
</div>
<div>
<p> <o:p></o:p></p>
</div>
<div>
<p>Phil<br>
<br>
 <o:p></o:p></p>
</div>
<div>
<p>On 27/02/2008, <b>Joshua Johnson</b> <<a href="mailto:joshua@stenhouseconsulting.com" target="_blank">joshua@stenhouseconsulting.com</a>> wrote:
<o:p></o:p></p>
<p style="margin-bottom:12.0pt">Ralph,<br>
<br>
See I knew there was a reason I sent that message. Your 2 cents is way better than what I had!! Why didn't I think of this? It is so much simpler. To make it easier I will have the Exchange server just forward to Sendmail so I don't have to change the current
 setup and then we still get the backup notification emails. Thank you!<br>
<br>
Joshua Johnson<br>
Consultant<br>
<br>
<br>
<br>
-----Original Message-----<br>
From: Ralph Mitchell [mailto:<a href="mailto:ralphmitchell@gmail.com" target="_blank">ralphmitchell@gmail.com</a>]<br>
Sent: Tuesday, February 26, 2008 5:27 PM<br>
To: <a href="mailto:hobbit@hswn.dk" target="_blank">hobbit@hswn.dk</a><br>
Subject: Re: [hobbit] Monitoring Backups<br>
<br>
On Tue, Feb 26, 2008 at 3:45 PM, Joshua Johnson<br>
<<a href="mailto:joshua@stenhouseconsulting.com" target="_blank">joshua@stenhouseconsulting.com</a>> wrote:<br>
><br>
><br>
> 2)      Have the Exchange server script send files (ftp or SMB) to the<br>
> Hobbit server. These files will then be processed by a server side script<br>
> which could use bbhostgrep to check the files and send the alerts into<br>
> Hobbit.<br>
<br>
My $0.02 - is there a compelling reason not to just send email to your<br>
Hobbit server??  I've  done it that way when it wasn't possible to<br>
deliver reports via hobbit/bb protocol over port 1984.<br>
<br>
The way it works is, my (old, decrepit, Redhat 7.2) Hobbit server is<br>
running sendmail.  In /etc/aliases I have:<br>
<br>
    msgman:   "| /usr/local/sbin/msgman"<br>
<br>
which allows me to send email to <a href="mailto:msgman@hobbit.myserver.com" target="_blank">
msgman@hobbit.myserver.com</a>.  Any<br>
incoming email for that address is piped through the msgman script,<br>
which could be written in bash, perl, C, python, &c.  What comes<br>
through the pipe via stdin is a bunch of headers, including From, To,<br>
Date & Subject, then a blank line, then the body of the message.<br>
Here's one way to break out the message into useful bits:<br>
<br>
    #!/bin/ksh<br>
<br>
    # First line is "From sender date"<br>
    read junk sender date<br>
<br>
    while read token string<br>
    do<br>
       # Detect a blank line<br>
      if [ "X$token$string" == "X" ]; then<br>
        break;<br>
      fi<br>
<br>
      # extract the Subject line<br>
      if [ "X$token" == "XSubject:" ]; then<br>
        subject=$string<br>
      fi<br>
    done<br>
<br>
    # pick up first line in body<br>
    read text<br>
<br>
    while read line<br>
    do<br>
      # pick up any other body lines<br>
      text="$text\n$line"<br>
    done<br>
<br>
    # Do "stuff" to discover the system name, the test name, the<br>
color and some message<br>
    # ...<br>
<br>
    LINE="status $SYSTEM.$TEST $COLOR `date`<br>
    $MESSAGE"<br>
<br>
    /home/hobbit/server/bin/bb <a href="http://0.0.0.0/" target="_blank">0.0.0.0</a> "$LINE"<br>
<br>
I don't think you'd need to load the hobbit environment (I've got this<br>
running in an old BB hierarchy) just to deliver the report.<br>
<br>
It's not exactly rocket science, but I then I already had email<br>
working and didn't want to have to maintain ftp/scp/smb across the<br>
company network.  I imagine there's a way for Postfix (and other<br>
MTA's) to deliver to a pipe, but maybe not - I simply haven't tried<br>
because it ain't broke...  :)<br>
<br>
Ralph Mitchell<br>
<br>
To unsubscribe from the hobbit list, send an e-mail to<br>
<a href="mailto:hobbit-unsubscribe@hswn.dk" target="_blank">hobbit-unsubscribe@hswn.dk</a><br>
<br>
<br>
<br>
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential
 information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.<br>
<br>
To unsubscribe from the hobbit list, send an e-mail to<br>
<a href="mailto:hobbit-unsubscribe@hswn.dk" target="_blank">hobbit-unsubscribe@hswn.dk</a><o:p></o:p></p>
</div>
<p><br>
<br clear="all">
<br>
-- <br>
Tel: 0400 466 952<br>
Fax: 0433 123 226<br>
email: <a href="mailto:philwild@gmail.com" target="_blank">philwild@gmail.com</a>
<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div class="MsoNormal" align="center" style="text-align:center">
<hr size="2" width="100%" align="center">
</div>
<p class="MsoNormal"><span class="q"><span style="font-size:7.5pt;font-family:"Arial","sans-serif";
color:gray">This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.
 If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this
 e-mail.</span></span><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<br>
-- <br>
Tel: 0400 466 952<br>
Fax: 0433 123 226<br>
email: <a href="mailto:philwild@gmail.com">philwild@gmail.com</a> <o:p></o:p></p>
</div>
<br>
<hr>
<font face="Arial" color="Gray" size="1">This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system
 manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.<br>
</font>
</body>
</html>