<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<STYLE type=text/css>DIV {
        MARGIN: 0px
}
</STYLE>

<META content="MSHTML 6.00.5730.11" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=613472115-15102008><FONT face=Arial 
size=2>Thanks for the suggestion.  I'll certainly give that some 
thought.  Comma-separated is just the easiest when it comes to converting 
my existing bbwarnrules.cfg file as I can just select the hosts and replace 
spaces with commas.  Going forward I had thought of using macros, but I'll 
look at PAGEs too.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=613472115-15102008><FONT face=Arial 
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=613472115-15102008><FONT face=Arial 
size=2>SebA</FONT></SPAN></DIV><BR>
<BLOCKQUOTE 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> jm54601@yahoo.com 
  [mailto:jm54601@yahoo.com] <BR><B>Sent:</B> 15 October 2008 
  16:03<BR><B>To:</B> hobbit@hswn.dk<BR><B>Subject:</B> Re: [hobbit] 
  Comma-separated lists of hostnames, etc. in hobbit-alerts.cfg is not 
  documented<BR></FONT><BR></DIV>
  <DIV></DIV>
  <DIV 
  style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">
  <DIV>I struggled with the same thing through a lot of trial and error.  
  On a related note, I highly recommend trying to get away from using a comma 
  separated list as it's a nightmare to maintain.  I'm working toward using 
  the PAGE token, where a list of hosts on a given page alerts a group, so 
  you're effectively grouping your hosts based on the support team 
  responsible.  There will still be exceptions, but if you can generalize 
  alerts so all the hosts on a given page can alert the same way, you'll save 
  time and avoid the possibility of a host not having an alert configured.  
  Just my 2 cents.</DIV>
  <DIV> </DIV>
  <DIV><BR> </DIV>
  <DIV 
  style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><BR>
  <DIV 
  style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif">----- 
  Original Message ----<BR>From: SebA <spa@syntec.co.uk><BR>To: 
  hobbit@hswn.dk<BR>Sent: Wednesday, October 15, 2008 7:43:35 AM<BR>Subject: 
  [hobbit] Comma-separated lists of hostnames, etc. in hobbit-alerts.cfg is not 
  documented<BR><BR>
  <P><FONT face=Arial size=2>Comma-separated lists of hostnames in 
  hobbit-alerts.cfg is not documented, so maybe we could add something like this 
  (taken from  </FONT><A 
  href="http://hobbitmon.sourceforge.net/docs/man5/hobbit-clients.cfg.5.html" 
  target=_blank rel=nofollow><U><FONT face=Arial color=#0000ff 
  size=2>http://hobbitmon.sourceforge.net/docs/man5/hobbit-clients.cfg.5.html</FONT></U></A><FONT 
  face=Arial size=2>) to </FONT><A 
  href="http://hobbitmon.sourceforge.net/docs/man5/hobbit-alerts.cfg.5.html" 
  target=_blank rel=nofollow><U><FONT face=Arial color=#0000ff 
  size=2>http://hobbitmon.sourceforge.net/docs/man5/hobbit-alerts.cfg.5.html</FONT></U></A><FONT 
  face=Arial size=2>:</FONT></P>
  <P><FONT face="Courier New" size=2>        
  HOST=targetstring Rule matching a host by the hostname.  
  "targetstring"<BR>        is either a 
  comma-separated list of hostnames (from the bb-hosts 
  file),<BR>        "*"  to  
  indicate "all hosts", or a Perl-compatible regular 
  expression.<BR>        E.g.  
  "HOST=dns.foo.com,</FONT><A href="http://www.foo.com/" target=_blank 
  rel=nofollow><U><FONT face="Courier New" color=#0000ff 
  size=2>www.foo.com</FONT></U></A><FONT face="Courier New" size=2>"  
  identifies  two  specific  
  hosts;<BR>        "HOST=%www.*.<A 
  href="http://foo.com/" target=_blank>foo.com</A>  
  EXHOST=www-test.foo.com" matches all hosts with 
  a<BR>        name beginning with "www", 
  except the "www-test" host.</FONT> </P>
  <P><FONT face=Arial size=2>Adding an example that used the comma-separated 
  syntax to </FONT><A 
  href="http://hobbitmon.sourceforge.net/docs/hobbit-alerts.html" target=_blank 
  rel=nofollow><U><FONT face=Arial color=#0000ff 
  size=2>http://hobbitmon.sourceforge.net/docs/hobbit-alerts.html</FONT></U></A><FONT 
  face=Arial size=2> and hobbit-alerts.cfg (sample) files would also be 
  good.</FONT></P>
  <P><FONT face=Arial size=2>And, actually, maybe something to say that the 
  comma-separated syntax can be used in all XXX= places (except, presumably, 
  REPEAT) and also for the recipient.  One really shouldn't have to work 
  this basic stuff out using:</FONT></P>
  <P><FONT face=Arial size=2>$</FONT> <FONT face="Courier New" 
  size=2>./bin/bbcmd hobbitd_alert --test</FONT> <BR><FONT face=Arial 
  size=2>!</FONT> <BR><FONT face=Arial size=2>We definitely need some more 
  complex examples.  Maybe someone who has a complex and varied 
  hobbit-alerts.cfg can post some sanitized examples that someone can commit to 
  SVN?</FONT></P>
  <P><FONT face=Arial size=2>Many thanks,</FONT> </P>
  <P><FONT face=Arial size=2>SebA</FONT> 
</P></DIV></DIV></DIV><BR></BLOCKQUOTE></BODY></HTML>