From: Rob B. <rob...@ar...> - 2007-03-22 16:46:22
|
All, I've checked in the latest registry & agent code. If you have the chance to play with this, please do as I'd really appreciate some feedback. I also checked in two new commands, namely delete_host and delete_service. As the name would suggest, they enable you to remove hosts/services from blue on the fly. The commands try to be as clean as they can be by firstly stopping all checks of any hosts/services specified in these commands. To facilitate this I have also checked in an update to commands.java, which is explained below. There are three changes to commands.java. The first is to expose a new method, namely disable_host_services(objects_h.host host). This method will disable all services on a given host. While I appreciate that there is an external command for this task already, this simple extension prevents us from having to write to the external command file. There are also two updates to commands.java to fix bug id 1686153. The bug has been logged on the tracker and the fix has been checked in. There is also an update to objects.java. Within objects.java there are several new methods: remove_host(string hostname), remove_host_services(string hostname) remove_host_from_host_list(string hostname) remove_host_from_host_hashlist() remove_host_from_hostgroups remove_host_from_hostgroups_list remove_host_from_hostgroups_hashlist() and the same for services. These are there to support the above commands that allow objects to be removed from Blue. I've also checked in an extremely small update to blue.java. In this I've moved the location in which the embedded console is started. Blue will now complete sanity checks of it's configuration before attempting to launch the console. It became increasingly annoying having to wait for the console to load only for Blue to bail out due to an error in the config files. cheers Rob -- Registered Office: Floor A, Milburn House, Dean Street, Newcastle upon Tyne, NE1 1LE VAT Registration No: 764173128. Company registered in England Registration No: 4497081 |