[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Multiple regex on PAGE line of hobbit-alerts.cfg?
- To: <xymon (at) xymon.com>
- Subject: Multiple regex on PAGE line of hobbit-alerts.cfg?
- From: "Cade Robinson" <cade.robinson (at) gmail.com>
- Date: Tue, 5 Oct 2010 09:55:38 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :message-id:mime-version:content-type:content-transfer-encoding :x-mailer:thread-index:content-language:x-cr-hashedpuzzle :x-cr-puzzleid; bh=QLxQf7jOrsJn7oM+rNJjwwZIjfFYdXrGebIAwbuyShk=; b=UvqDc63YPW4oLIZLhmQ2+d/9B91I1O+TSQCXpPPr40gmBo2eb79gRPtOGe63QUcpuT PqvidSjTdY7M8rZ8TjJ3n4QTEYbSM+BhBBmUUpA6f/FYLlpExsLPCX2cQ7zGftp3NZrm Biz0URfPno48DXjNIKaVgzzFfRDgL4TGeK+As=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:mime-version:content-type :content-transfer-encoding:x-mailer:thread-index:content-language :x-cr-hashedpuzzle:x-cr-puzzleid; b=vceMuH0X8QBq8T02UzMfaEF1E1u4PEs/kJwXZZuJuyIKnAtRXo2UA85yQFqR/9XKaO 2rjf9/ww8rXrnz+IM836Z/eZ0dRteEbudE64kkGF0IhBNDKg9Xr43R5wOgBGSXgZIWlD bpEl07NReWj/H2dxWQB2dpvQIeojokqPbOQcE=
- Thread-index: ActknV2RU5Z/hErwS+uKL1kNM14jXA==
Is it possible to use multiple regex on a PAGE= line of hobbit-alerts.cfg?
EG bb-hosts
page prodlinux Linux Servers
...
subpage criticalprodlinux Critical Prod Linux Servers
...
subpage noncriticalprodlinux Non-Critical Prod Linux Servers
...
page prodwin Windows Servers
...
subpage criticalprodwin Critical Prod Windows Servers
...
subpage noncriticalprodwin Non-Critical Prod Windows Servers
...
So what I have is my "prod" servers and then a subpage of critical ones that
I want to get sms text pages on and then non-critical prod servers that I
don't really need a page at 3am on.
In my hobbit-alerts.cfg I want an email if any prodlinux or prodwin goes
yellow and a page if the critical ones go red
So in hobbit-alerts something like this:
PAGE=%prodlinux/.*,%prodwin/.*,someotherpage
...
COLOR=yellow
...
PAGE=prodlinux/criticalprodlinux,prodwin/criticalprodwin,someotherpage
...
COLOR=red
...
The red part works but the yellow doesn't.
Presumably because I am trying to do two regex in the PAGE line?
Thanks
Cade