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
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
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
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
Ahh ok I dont remember seeing that before but coolies :)
Allan
participants (2)
-
allan@zandahar.net
-
henrik@hswn.dk