<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><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>



      </body></html>