[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[hobbit] Nesting rules in hobbit-alerts.cfg
- To: hobbit (at) hswn.dk
- Subject: [hobbit] Nesting rules in hobbit-alerts.cfg
- From: "Gary Baluha" <gumby3203 (at) gmail.com>
- Date: Mon, 17 Mar 2008 13:26:29 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=b6lI2qbSdOltdIyu+r9+0VP8tf1ZkamT91FdKa3znpM=; b=HTqeV0rpBov2ynjJauz0xy9utJVfiiQejlLX56MUc9OCrEnCEhxhrBZ7UGEygjg2HnlGEMnCM4kufMePN/MEn3uuKdimhFIHkMHN+g5aKMlkLl4poS6AA446QX+JCY3giRxAsjuUHNTvK2heKbIECBC4yYUHAs0NvJWpXB6c9as=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=qtTx8t5OfVNk3m/3d4Dzv2JiVDweMRAs9ofzMUtrwTuMIJd6ZFb2ZD4doyZjuK+rUFTqckqg6mAMz4VU5lS4J2sTe8haKpEDgxfu/QFeUIBu4uQoRXsgBa/YOdC9jjZ1QOAO96ktzv/tIbsLLlbIzD+mPH+kXZ0pyHz6kACdGh0=
Is it possible to nest rules in hobbit-alerts.cfg? For example, can I do
something like this (indenting provided for readability):
PAGE=hostPageA NOTICE RECOVERED
HOST=hostA,hostB,hostC
MAIL pager (at) somewhere.com
HOST=%(hostD[0-9])
MAIL email (at) somewhere.com
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:
PAGE=hostPageA NOTICE RECOVERED
MAIL pager (at) somewhere.com HOST=hostA,hostB,hostC
MAIL email (at) somewhere.com HOST=%(hostD[0-9])
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.