Alert test feature
list Allan Spencer
Hi all Not sure if I asked this a while back and didn't get a response or I just didnt ask it at all. Just been making some major changes to a customers alert.cfg file and it reminded me about it. 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 good. Please someone bonk me on the head if this is already in there and I cant find it. Also please provide feedback on if you think would be a nice addition......or not I'm always up for a flaming :) Cheers Allan
list Henrik Størner
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
list Allan Spencer
▸
Henrik Stoerner wrote:
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
Ahh ok I dont remember seeing that before but coolies :) Allan