[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
proc related alerts based on group (feature request)
- To: hobbit (at) hswn.dk
- Subject: proc related alerts based on group (feature request)
- From: Asif Iqbal <vadud3 (at) gmail.com>
- Date: Fri, 5 Mar 2010 14:00:10 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type; bh=BKHQpL+cE310r7oPg6783pCFSjpJnLkE2n5gNLphWuc=; b=YBIO7VrUdAwhuApp6PITy0e8aMFyr5CFPAwhxYEbOQA1vk62xZrMUXHfcbgP45wfc7 1kSC01B4v9wyHM3vSi6dqUdk0itiXghfJ6IEw+F+Pu24zuXj4++fG8RUnI8I9cLXxHSh 0nbnhTFKk+eMEybnac7O7h/LKOGXXJJfVD/D4=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=aR2nMP3PerM/wu5LXTqVsF7+4GnpjBm/nzb+Ao26cjvsFfnHOr7BgcKNlPGhY9cezA ToLp2D2yoKc67LxpwcgYX7Dza5c125y1dlRwo8hz/6x1AH/ClMe/E4P6j9hShOitbXWC PTPq3c0dFeqYNO0IvOYl1lg8lVLC8Nena+iJ8=
PROC joeproc GROUP=joe
GROUP=joe
MAIL joe (at) example.com
! MAIL wholegroup (at) example.com
Can I do something like this?
I want to alert joe only about `joeproc' . So that part works fine by
giving the process a group-id and
alert `onlyjoe (at) example.com' only when grouip-id matches.
But, I also want only joe gets alert for those processes. So is there
a way I can prevent the whole group to
receive alerts related to joeproc ? would be nice if I could have
EXPROC or NOT MAIL .. something like that.
So
this can be achieved easily:
alert joe (at) example.com ONLY for process joeproc. don't alert him for
any other procs.
this cannot be achieved easily:
alert ONLY joe (at) example.con for process joeproc. don't alert
wholegroup (at) example.com for this process.
I could exservice proc for wholegroup (at) example.com and then for each
group of hosts (PAGE) or each list of hosts (using regex)
I need to setup a GROUP for the list of procs that I want the
wholegroup to be alerted on. That is lot of work
It would be easy if I rather have some negation rule synatx, like
EXPROC or NOT MAIL
any suggestion is welcome.
--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?