You could use macros...<br><br>$hg-pager=%(^hostA|$hostB|^hostC)<br>$hg-email=%%(hostD[0-9])<br><br>PAGE=hostPageA NOTICE RECOVERED<br>     HOST=$hg-pager<br>          MAIL <a href="mailto:pager@somewhere.com" target="_blank">pager@somewhere.com</a><br>

     HOST=$hg-email<br>          MAIL <a href="mailto:email@somewhere.com" target="_blank">email@somewhere.com</a><br><br>This keeps all the clutter out of the rule sets.   <br><br>Stewart<br><br><br><div class="gmail_quote">
On Mon, Mar 17, 2008 at 1:26 PM, Gary Baluha <<a href="mailto:gumby3203@gmail.com">gumby3203@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Is it possible to nest rules in hobbit-alerts.cfg?  For example, can I do 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" target="_blank">pager@somewhere.com</a><br>

     HOST=%(hostD[0-9])<br>          MAIL <a href="mailto:email@somewhere.com" target="_blank">email@somewhere.com</a><br><br>Our alerting rules are starting to get kind of complex, and nesting alert 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" target="_blank">pager@somewhere.com</a> HOST=hostA,hostB,hostC<br>     MAIL <a href="mailto:email@somewhere.com" target="_blank">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), so the above 2nd example would look a lot uglier than it does in this post (which was simplified for readability).  If nesting rules won't work, I wonder how much effort would be involved in adding this feature.<br>

</blockquote></div><br><br clear="all"><br>-- <br>Stewart<br><br>The revolution will not be televised.<br>The revolution will be no re-run brothers;<br>The revolution will be live.