Ticket #276 (seen Feature Request)

Opened 18 months ago

Last modified 17 months ago

broctl status commands should run regardless of lock

Reported by: solomon Owned by: robin
Priority: High Milestone:
Component: BroControl Version: 1.5.2
Keywords: Cc:

Description

broctl should allow the informational commands (top, capstats, netstats, diag, peerstatus, status, et al.) to run without interference from a concurrently locked broctl process. If there is 'broctl cron' or 'broctl start' command runnning, say, from the system crontab, use of broctl to check on the status is often delayed or prevented. Allowing the informational commands to run unimpeded would allow monitoring suites, such as Nagios, to more easily watch the status of the cluster. With the frequent 'cannot get lock' errors, Nagios cannot work with bro & broctl.

Change History

comment:1 Changed 17 months ago by seth

  • Priority changed from Normal to High

comment:2 Changed 17 months ago by robin

  • Status changed from new to seen

The problem here is that even the informational commands may rewrite broctl's state file, potentially overwriting what the concurrent Bro process did. We need to change writing of the state file to be depend on any actual changes. That shouldn't be too hard, but will require a bit care to identify cases where it's save to not update the state file.

Note: See TracTickets for help on using tickets.