<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Re: [hobbit] Test goes purple randomly</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.3314" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=349074312-27102008>Use this as a starting point.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=349074312-27102008>It will generate heaps of little files, one per host, 
containing the disk info.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=349074312-27102008>Parse the files, and you have what you 
need.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=349074312-27102008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><FONT 
face="Courier New">cat /etc/hobbit/bb-hosts | egrep -v 
"^#|^page|^$|^subpage|^group|^include" | awk '{ print $2 }' \<BR>   | 
while read HOSTNAME<BR>     
do<BR>        wget -O $HOSTNAME -o /dev/null 
</FONT><A 
href="http://hobbit/hobbit-cgi/bb-hostsvc.sh\?HOST\=$HOSTNAME\&SERVICE\=disk"><FONT 
face="Courier New">http://hobbit/hobbit-cgi/bb-hostsvc.sh\?HOST\=$HOSTNAME\&SERVICE\=disk</FONT></A><FONT 
face="Courier New"> &<BR>     
done<BR></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial><SPAN class=349074312-27102008><FONT 
face="Courier New" color=#0000ff size=2>Cheers</FONT></SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial><SPAN class=349074312-27102008><FONT 
face="Courier New" color=#0000ff size=2>     
V</FONT></SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial><SPAN 
class=349074312-27102008></SPAN> </DIV></FONT><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> RENARD Samuel 
[mailto:Samuel.RENARD@cg29.fr] <BR><B>Sent:</B> Monday, 27 October 2008 7:58 
PM<BR><B>To:</B> hobbit@hswn.dk<BR><B>Subject:</B> [hobbit] make disk report 
<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT size=2><SPAN 
class=472213710-27102008>Hello,</SPAN></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT size=2><SPAN 
class=472213710-27102008></SPAN></FONT></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT size=2><SPAN 
class=472213710-27102008>I've a problem with reporting. I explain : I want 
to make a report with all my hosts testing disks in a table like this 
:</SPAN></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT size=2><SPAN 
class=472213710-27102008></SPAN></FONT></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT size=2><SPAN 
class=472213710-27102008>                                            
Host 1</SPAN></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT size=2><SPAN 
class=472213710-27102008>1K-blocks     
Used       Avail    
Capacity    Mounted      
Summary(Total\Avail)<BR>XXXX             
xxxx       xxx       
xxxx          
xxxxx           
xxxxxxxx</SPAN></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT size=2><SPAN 
class=472213710-27102008>XXXX             
xxxx       xxx       
xxxx          
xxxxx           
xxxxxxxx</SPAN></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT size=2><SPAN 
class=472213710-27102008></SPAN></FONT></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT size=2><SPAN 
class=472213710-27102008>                                            
Host 2 
<DIV dir=ltr align=left><FONT face=Arial><FONT size=2><SPAN 
class=472213710-27102008>1K-blocks     
Used       Avail    
Capacity    Mounted      
Summary(Total\Avail)<BR>XXXX             
xxxx       xxx       
xxxx          
xxxxx           
xxxxxxxx</SPAN></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT size=2><SPAN 
class=472213710-27102008>XXXX             
xxxx       xxx       
xxxx          
xxxxx           
xxxxxxxx</SPAN></FONT></FONT></DIV></SPAN></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT size=2><SPAN 
class=472213710-27102008></SPAN></FONT></FONT><FONT face=Arial><FONT 
size=2><SPAN class=472213710-27102008><FONT 
color=#0000ff></FONT></SPAN></FONT></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT color=#0000ff size=2><SPAN 
class=472213710-27102008></SPAN></FONT></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT size=2><SPAN 
class=472213710-27102008>But I don't know how can i do! I don't know how can i 
get differents disk's informations.</SPAN></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT size=2><SPAN 
class=472213710-27102008>I want just to get informations, then format is 
simple.</DIV></SPAN></FONT></FONT>
<DIV dir=ltr align=left><FONT face=Arial><FONT size=2><SPAN 
class=472213710-27102008></SPAN></FONT></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial><FONT size=2><SPAN 
class=472213710-27102008>I tested bb-gen but i've got this error 
:</SPAN></FONT></FONT></DIV>
<DIV dir=ltr align=left><FONT size=+0><FONT face=Arial><FONT size=2> <SPAN 
class=472213710-27102008>" </SPAN>No BBACKS! Cannot cd to directory 
/usr/lib/hobbit/data/acks<SPAN class=472213710-27102008> </SPAN><SPAN 
class=472213710-27102008>"</SPAN></FONT></FONT></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=472213710-27102008>There's no directory 
/usr/lib/hobbit/data !</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=472213710-27102008><FONT face=Arial 
size=2>Thanks,</FONT></SPAN></DIV>
<DIV><SPAN class=472213710-27102008><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=472213710-27102008><FONT face=Arial 
size=2>Regards,</FONT></SPAN></DIV>
<DIV><SPAN class=472213710-27102008><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=472213710-27102008><FONT face=Arial size=2>Samuel 
R.</FONT></SPAN></DIV>
<DIV><BR></DIV>
<DIV class=OutlookMessageHeader lang=fr dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>De :</B> Michael A. Price 
[mailto:mprice@sgt-inc.com] <BR><B>Envoyé :</B> lundi 27 octobre 2008 
10:58<BR><B>À :</B> hobbit@hswn.dk<BR><B>Objet :</B> Re: [hobbit] Test 
goes purple randomly<BR></FONT><BR></DIV>
<DIV></DIV><FONT face="Verdana, Helvetica, Arial"><SPAN 
style="FONT-SIZE: 12px">Is this a fix to the hobbit turning purple issue for 
devmon also?<BR><BR>Thanks, michael<BR><BR>On 10/24/08 10:05 PM, "Richard 
Finegold" <goldfndr@gmail.com> wrote:<BR><BR></SPAN></FONT>
<BLOCKQUOTE><FONT face="Verdana, Helvetica, Arial"><SPAN 
  style="FONT-SIZE: 12px">If one uses a default ratio of 5:30 (5 minute poll, 30 
  minute expire)<BR>then LIFETIME should be more than "a bit longer than" the 
  life span of<BR>the report. Assuming the philosophy of no less than 5 missed 
  intervals<BR>leading to purple is consistent. Hmm...<BR><BR>Ah, the bb manpage 
  says "sligtly more than" (sic) "is a good idea".<BR>This is contradicted by 
  the LIFETIME default of 30. Two ways come to<BR>mind to resolve this 
  contradiction:<BR>  * Change LIFETIME to 6 or 7 (hobbitd.c, 
  handle_status, validity).<BR>  * Change the manpage's text, from 
  "sligtly more than" to "a multiple<BR>of" (or something similar).<BR><BR>On 
  Thu, Oct 23, 2008 at 6:47 PM, Samuel 
  Cai<BR><Samuel.Cai@ehealth-china.com> wrote:<BR>> From: Ralph 
  Mitchell [<A 
  href="mailto:ralphmitchell@gmail.com]">mailto:ralphmitchell@gmail.com]</A><BR>> 
  Sent: Tuesday, September 16, 2008 12:44 PM<BR>> To: hobbit@hswn.dk<BR>> 
  Subject: Re: [hobbit] Tricky bug in Purple status 
  determination<BR>><BR>[snip]<BR>> What you should do is alter the test 
  script to use the "status+LIFETIME"<BR>> format, where LIFETIME is the life 
  span of the report, as described in<BR>> the bb man page, and make the 
  lifetime a bit longer than the the test<BR>> interval.<BR><BR>To 
  unsubscribe from the hobbit list, send an e-mail 
  to<BR>hobbit-unsubscribe@hswn.dk<BR><BR></SPAN></FONT></BLOCKQUOTE>
<TABLE>
  <TBODY>
  <TR>
    <TD bgColor=#ffffff><FONT 
      color=#000000>-------------------------------------------------------------------------<BR>Ce 
      message a ete scanne par l'anti-virus du Conseil General du 
      Finistere.<BR>-------------------------------------------------------------------------<BR></FONT></TD></TR></TBODY></TABLE>
<TABLE>
  <TBODY>
  <TR>
    <TD bgColor=#ffffff><FONT 
      color=#000000>-------------------------------------------------------------------------<BR>Ce 
      message a ete scanne par l'anti-virus du Conseil General du 
      Finistere.<BR>-------------------------------------------------------------------------<BR></FONT></TD></TR></TBODY></TABLE><pre>
NOTICE: This email and any attachments are confidential. 
They may contain legally privileged information or 
copyright material. You must not read, copy, use or 
disclose them without authorisation. If you are not an 
intended recipient, please contact us at once by return 
email and then delete both messages and all attachments.
</pre></BODY></HTML>