[Bro] trying to puppetise bro -- status
dnthayer at illinois.edu
Sun Sep 22 22:30:53 PDT 2013
On 09/22/2013 11:14 PM, Russell Fulton wrote:
> The bald question is "Does broctl status return information via exit code?" I had a quick look at the code and could not figure it out.
> I use puppet to maintain the configurations of my sensors, puppet will update config changes and restart jobs as appropriate. It also expects to check the status of services and will start them if they are not running. It expect a "status command" to return code ah la http://refspecs.linux-foundation.org/LSB_3.1.0/LSB-Core-generic/LSB-Core-generic/iniscrptact.html
If you're using the Bro 2.1 release, then the answer is "no".
This feature was added very recently (it's now in git master).
The "broctl status" command will return 0 if all bro nodes
are running, and non-zero otherwise.
More information about the Bro