[hobbit] Alert test feature

Henrik Stoerner henrik at hswn.dk
Thu May 26 08:24:59 CEST 2005


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




More information about the Xymon mailing list