<br><br><div class="gmail_quote">On Tue, Oct 5, 2010 at 10:55 AM, Cade Robinson <span dir="ltr"><<a href="mailto:cade.robinson@gmail.com">cade.robinson@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Is it possible to use multiple regex on a PAGE= line of hobbit-alerts.cfg?<br>
<br>
EG bb-hosts<br>
<br>
page prodlinux Linux Servers<br>
        ...<br>
        subpage criticalprodlinux Critical Prod Linux Servers<br>
        ...<br>
        subpage noncriticalprodlinux Non-Critical Prod Linux Servers<br>
        ...<br>
page prodwin Windows Servers<br>
        ...<br>
        subpage criticalprodwin Critical Prod Windows Servers<br>
        ...<br>
        subpage noncriticalprodwin Non-Critical Prod Windows Servers<br>
        ...<br>
<br>
<br>
So what I have is my "prod" servers and then a subpage of critical ones that<br>
I want to get sms text pages on and then non-critical prod servers that I<br>
don't really need a page at 3am on.<br>
<br>
In my hobbit-alerts.cfg I want an email if any prodlinux or prodwin goes<br>
yellow and a page if the critical ones go red<br>
<br>
So in hobbit-alerts something like this:<br>
<br>
PAGE=%prodlinux/.*,%prodwin/.*,someotherpage<br>
        ...<br>
        COLOR=yellow<br>
        ...<br>
<br>
PAGE=prodlinux/criticalprodlinux,prodwin/criticalprodwin,someotherpage<br>
        ...<br>
        COLOR=red<br>
        ...<br>
<br>
The red part works but the yellow doesn't.<br>
Presumably because I am trying to do two regex in the PAGE line?<br>
<br>
Thanks<br>
Cade<br>
<br>
<br>
<br>
<br>
<br>
<br>
To unsubscribe from the xymon list, send an e-mail to<br>
<a href="mailto:xymon-unsubscribe@xymon.com">xymon-unsubscribe@xymon.com</a><br>
<br>
<br>
</blockquote></div><br><meta charset="utf-8">Since you are using the pcre on the first one, replace the commas with '|' (or). <div><br></div><div>e.g.:</div><div><br></div><div>PAGE=%prodlinux/.*|prodwin/.*|someotherpage</div>

<div><br></div><div>Note you only need the % at the beginning of the string.</div><div><br></div><div>Steve<br clear="all"><br>-- <br>The test of a democracy is not the magnificence of buildings or the speed of automobiles or the efficiency of air transportation, but rather the care given to the welfare of all the people. -Helen Adams Keller, lecturer and author (1880-1968)<br>

<br>Truth never damages a cause that is just. -Mohandas Karamchand Gandhi (1869-1948) <br>
</div>