<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="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 11 (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:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=ZH-CN link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=1 color=navy face=Arial><span lang=EN-US
style='font-size:9.0pt;font-family:Arial;color:navy'>Thanks! Your information
is really helpful, I now understand this is not a bug, and it’s a build-in
feature of Hobbit and well documented in man page. <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 color=navy face=Arial><span lang=EN-US
style='font-size:9.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=1 color=navy face=Arial><span lang=EN-US
style='font-size:9.0pt;font-family:Arial;color:navy'>We don’t have defined
LIFETIME, so more like to use INTERVAL to control status. I’ll shorten
the internal from 30m to 25m to avoid this problem.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 color=navy face=Arial><span lang=EN-US
style='font-size:9.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=1 color=navy face=Arial><span lang=EN-US
style='font-size:9.0pt;font-family:Arial;color:navy'>Samuel Cai<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 color=navy face=Arial><span lang=EN-US
style='font-size:9.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span lang=EN-US
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>
Ralph Mitchell [mailto:ralphmitchell@gmail.com] <br>
<b><span style='font-weight:bold'>Sent:</span></b> Tuesday, September 16, 2008
12:44 PM<br>
<b><span style='font-weight:bold'>To:</span></b> hobbit@hswn.dk<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [hobbit] Tricky bug
in Purple status determination</span></font><span lang=EN-US><o:p></o:p></span></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'><o:p> </o:p></span></font></p>

<div>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>When a report
comes in to Hobbit, the default "time to live" for the report is 30
mins.  As long as another report comes in within that time, the timer is
reset.  If there's no report, that column goes purple.<br>
<br>
If your test is reporting every 30 mins, there's a good chance it'll exhibit
the behaviour you describe.<br>
<br>
What you should do is alter the test script to use the
"status+LIFETIME" format, where LIFETIME is the life span of the
report, as described in the bb man page, and make the lifetime a bit longer
than the the test interval.<br>
<br>
Ralph Mitchell<br>
<br>
<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'>On Mon, Sep 15, 2008 at 9:43 PM, Samuel Cai <<a
href="mailto:Samuel.Cai@ehealth-china.com">Samuel.Cai@ehealth-china.com</a>>
wrote:<o:p></o:p></span></font></p>

<div link=blue vlink=purple>

<div>

<p><font size=1 face=Arial><span lang=EN-US style='font-size:9.0pt;font-family:
Arial'>Hi,</span></font><span lang=EN-US><o:p></o:p></span></p>

<p><font size=1 face=Arial><span lang=EN-US style='font-size:9.0pt;font-family:
Arial'> </span></font><span lang=EN-US><o:p></o:p></span></p>

<p><font size=1 face=Arial><span lang=EN-US style='font-size:9.0pt;font-family:
Arial'>Recently we found a weird problem in history of one monitoring, there
were a lot of purple status, and the duration was "none" or 1second.
The thing we were monitoring was running fine, and this problem was there since
we used Hobbit (more than half a year), so it rules out possibility of error in
that thing.</span></font><span lang=EN-US><o:p></o:p></span></p>

<p><font size=1 face=Arial><span lang=EN-US style='font-size:9.0pt;font-family:
Arial'>This monitoring is a script defined in hobbitlaunch.cfg on Hobbit
server, runs every 30m</span></font><span lang=EN-US><o:p></o:p></span></p>

<p><font size=1 face=Arial><span lang=EN-US style='font-size:9.0pt;font-family:
Arial'>I checked log, the purple status was updated by hobbitd, and then I
checked source code of hobbitd, found it checked purple status every 30m
(correct me if I'm wrong since I only know a little of C), so I guess due to
some program issues, there were some milliseconds differences bettwen hobbitd's
determination and script's update, that results in very short duration of
purple status.</span></font><span lang=EN-US><o:p></o:p></span></p>

<p><font size=1 face=Arial><span lang=EN-US style='font-size:9.0pt;font-family:
Arial'> </span></font><span lang=EN-US><o:p></o:p></span></p>

<p><font size=1 face=Arial><span lang=EN-US style='font-size:9.0pt;font-family:
Arial'>So after I changed interval to 25m, that weird problem is gone.</span></font><span
lang=EN-US><o:p></o:p></span></p>

<p><font size=1 face=Arial><span lang=EN-US style='font-size:9.0pt;font-family:
Arial'> </span></font><span lang=EN-US><o:p></o:p></span></p>

<p><font size=1 face=Arial><span lang=EN-US style='font-size:9.0pt;font-family:
Arial'>Thanks,</span></font><span lang=EN-US><o:p></o:p></span></p>

<p><font size=1 face=Arial><span lang=EN-US style='font-size:9.0pt;font-family:
Arial'>Samuel Cai</span></font><span lang=EN-US><o:p></o:p></span></p>

</div>

</div>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'><o:p> </o:p></span></font></p>

</div>

</div>

</body>

</html>