[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] Alert test feature
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] Alert test feature
- From: henrik (at) hswn.dk (Henrik Stoerner)
- Date: Thu, 26 May 2005 08:24:59 +0200
- References: <42952578.70007@zandahar.net>
- User-agent: Mutt/1.5.6+20040907i
On Thu, May 26, 2005 at 11:25:12AM +1000, Allan wrote:
> Just wondering if its possible to implement a time= param on the on the
> hobbitd_alert --test command. Its really wicked to be able to check your
> rules and see what they're going to do but it would be even better if
> you could simulate a time as well. An extension to that would be
> possibly to have a duration tag to ensure your duration settings in the
> alerts.cfg file are all ood.
Currently, you can set anything but the time of day.
$ bbcmd hobbitd_alert --test
2005-05-26 08:18:17 Using default environment file /usr/lib/hobbit/server/etc/hobbitserver.cfg
Usage: hobbitd_alert --test HOST SERVICE [PAGE [duration [color]]]
I'm about to remove the "PAGE" parameter, since it is now
automatically detected from the bb-hosts file.
I'll see if I can get a time-parameter in there. It's not difficult,
it's just a lot of places that need changing to use a custom routine
to get the current system time, instead of the normal one.
Henrik