[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] timed alerts
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] timed alerts
- From: "Ralph Mitchell" <ralphmitchell (at) gmail.com>
- Date: Thu, 11 Dec 2008 19:05:00 -0600
- 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:in-reply-to:mime-version:content-type:references; bh=e0+VQL7/jU81jmMx0UjZ6m48kT46Q0VmA6exqWpqUcM=; b=gVT2xihtio4PKt8hYqTlcRUvH7DK7wOlno60KVoFVhtJzcUbGIhfFnXNTwRVf7ecxJ BFpJ8ku5FIr7K6urWVG18WeDtPHdKpyizFLoYq8zuVp5TiQDcw2aAtSeaB2CcM0+aOaQ d2WA3BYMLQWcixbfguFoJH2zv0W4FSlM/p+Tc=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=n1ft7gPaBy4SvQ+wXcr3FVlGGDW3LzM1j4XCzcPoGeKXeWmSSYrGkYl5o+8veE32qo 0lX4ti38GWNzs/mQxjfsuR++zN2dQjv3LATXctqX6yoBLGTEWEJuAX9zMJYC5SQudNgO YN4k5a4yLObBjYUdV3ZflfvPqh8o+X8luAQe4=
- References: <49403EA2.7090906 (at) richter-it.net> <ghqcl0$3c8$1 (at) voodoo.hswn.dk> <4941A716.9060902 (at) richter-it.net>
On Thu, Dec 11, 2008 at 5:49 PM, Torsten Richter <bb4 (at) richter-it.net> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi Henrik,
>
> thanks for the answers.
>
> Henrik Størner wrote:
> > In <49403EA2.7090906 (at) richter-it.net> Torsten Richter <bb4 (at) richter-it.net>
> writes:
> >
> >> is it possible with Hobbit 4.2.0 to time alerts?
> >> I was asked this by colleagues. They want something that
> >> if a yellow alert is displayed for more than a configurable
> >> time that Hobbit/XYmon sets the state of this alert to red.
> >
> > Not possible today. It has not come up until now, but it's
> > an interesting idea.
>
> It was just a thought since Hobbit/XYmon is recording everything
> with a timestamp and this timestamp "just" needs to be evaluated.
>
> > I guess some people would also like a status to go blue if
> > it's been red for more than a day :-)
>
> Please don't say that as it might be possible that my colleagues
> are reading this mailing list too and then they are going to tease
> me about integrating this kind of stuff :-/
>
Actually, it's not hard to make something go blue after a certain length of
time - I have that set up on a machine that's pinging some F5 BigIP group
members.
What you do is, get the list of red things using hobbitdboard, then pipe it
into a loop that checks the date/time. If it's greater than your designated
max, send a "disable until OK" message.
I'd post a copy of my script, except that the company laid me off at the
beginning of last week, and I didn't think to keep a copy at home... If
anyone's interested I can recreate it from scratch...
Ralph Mitchell