<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.5730.11" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=649441719-18032008><FONT face=Arial
size=2>Gary,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=649441719-18032008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=649441719-18032008><FONT face=Arial
size=2>One way to clean up and simplify your alert rules is to use a (host
group) macro, as in <A
href="http://www.hswn.dk/hobbiton/2005/01/msg00287.html">http://www.hswn.dk/hobbiton/2005/01/msg00287.html</A> (but
see also <A
href="http://www.hswn.dk/hobbiton/2005/01/msg00123.html">http://www.hswn.dk/hobbiton/2005/01/msg00123.html</A> for
a tighter syntax) so long as these macros can run across
lines...</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=649441719-18032008><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=649441719-18032008><FONT face=Arial
size=2>Sebastian</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> Gary Baluha [mailto:gumby3203@gmail.com]
<BR><B>Sent:</B> 17 March 2008 17:47<BR><B>To:</B>
hobbit@hswn.dk<BR><B>Subject:</B> Re: [hobbit] Nesting rules in
hobbit-alerts.cfg<BR></FONT><BR></DIV>
<DIV></DIV>That was one thought I had, but the current version of Hobbit
doesn't display the group alerting under the "info" column. But I do
currently have some group alerts set up. I'm just looking at ways to
clean up and simplify the alert rules.<BR><BR>
<DIV class=gmail_quote>On Mon, Mar 17, 2008 at 1:41 PM, Patrick Nixon <<A
href="mailto:pnixon@gmail.com">pnixon@gmail.com</A>> wrote:<BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">Did
you look into maybe making a host group out of them?<BR><BR>I forget the
hobbit term for them of course, but I know you can do<BR>groups, which is a
regex or simple declaration.<BR>
<DIV>
<DIV></DIV>
<DIV class=Wj3C7c><BR>On Mon, Mar 17, 2008 at 1:26 PM, Gary Baluha <<A
href="mailto:gumby3203@gmail.com">gumby3203@gmail.com</A>> wrote:<BR>>
Is it possible to nest rules in hobbit-alerts.cfg? For example, can I
do<BR>> something like this (indenting provided for
readability):<BR>><BR>> PAGE=hostPageA NOTICE RECOVERED<BR>>
HOST=hostA,hostB,hostC<BR>>
MAIL <A
href="mailto:pager@somewhere.com">pager@somewhere.com</A><BR>>
HOST=%(hostD[0-9])<BR>>
MAIL <A
href="mailto:email@somewhere.com">email@somewhere.com</A><BR>><BR>>
Our alerting rules are starting to get kind of complex, and nesting
alert<BR>> rules as above would make things easier. I know I could
do something like:<BR>><BR>> PAGE=hostPageA NOTICE RECOVERED<BR>>
MAIL <A
href="mailto:pager@somewhere.com">pager@somewhere.com</A>
HOST=hostA,hostB,hostC<BR>> MAIL <A
href="mailto:email@somewhere.com">email@somewhere.com</A>
HOST=%(hostD[0-9])<BR>><BR>> But some of the HOST= lists are very long
(i.e. wrap across multiple lines),<BR>> so the above 2nd example would
look a lot uglier than it does in this post<BR>> (which was simplified
for readability). If nesting rules won't work, I<BR>> wonder how
much effort would be involved in adding this
feature.<BR>><BR><BR></DIV></DIV>To unsubscribe from the hobbit list,
send an e-mail to<BR><A
href="mailto:hobbit-unsubscribe@hswn.dk">hobbit-unsubscribe@hswn.dk</A><BR><BR><BR></BLOCKQUOTE></DIV><BR></BLOCKQUOTE></BODY></HTML>