[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] sending particular alert message to particular users
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] sending particular alert message to particular users
- From: Greg Hubbard <glh.forums (at) gmail.com>
- Date: Thu, 10 Sep 2009 09:37:55 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=N+OLM4DkWHZJ9LAUtzn2/J19nb1G1ZIZ/X8Z5Aq6tv8=; b=KQ7PlES4Ds7zDcn78HR5XCZLSaC1thyZPZ1fXQXFukQuBVMFqY/R/mmbJseolvW96i m5PV3BJLctXHFVCojP8ewawwz0zRfO8j5Od2MRvGrQFqATFmmR3tEDpaJM/z08othDEu ApM/Vw6ahxV77WSeck/8vBzQRqu4oq4Xb0HV0=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=d9pmuwWxGZzg1q8O/hz/l6rFpDnUdmqyLOzU2ZIWETISGpDKNIPkEOecTUTn9bkdUQ rzpcKpre7oZovxNVAZtRyxpPXqyK9PsoRAKVuwY/Xc2+665d75f5ScPkZ3fcPImqe0e6 5Oso1KA90ujEq963UVZredFLYQ/CEhn7i2Xck=
- References: <645D8508A770D04F91F427D76401D3820449486C (at) smtp3.cjh.org>
I don't think you can do this via the standard alerts function (because all
log messages are grouped into the one "msg" test). However, you might be
able to do what you want if you call a script and have the script examine
the message content and then send the email to the proper user.
GLH
On 9/10/09, Camelia Anghel <canghel (at) cjh.org> wrote:
>
>
>
> Hello,
>
> This is how my hobbit-client.cfg and hobbit-alerts.cfg look and I would
> like to send the first LOG to some users and the second LOG to different
> users.
>
> How do I send an alert based on a warning expression?
>
>
>
> Hobbit-client.cfg
>
> HOST=myhost.org
>
> LOG /var/log/messages %failure*|%failed*|%error*|%Warning* COLOR=red
>
> LOG /var/log/www_server_4881.log %exceeded* COLOR=red
>
>
>
> Hobbit-alerts.cfg
>
> HOST=myhost.org
>
> MAIL user (at) something.org SERVICE=msgs REPEAT=30m COLOR=red
> RECOVERED
>
>
>
> Any help, suggestion will be appreciated
>
>
>
> Thanks,
>
> Camelia Anghel
>
> canghel (at) cjh.org
>
--
Disclaimer: 1) all opinions are my own, 2) I may be completely wrong, 3) my
advice is worth at least as much as what you are paying for it, or your
money cheerfully refunded.