[Bro] Bug when running broctl cron
jones at nics.utk.edu
Fri Jan 22 08:19:40 PST 2010
I have a fresh installation of Bro 1.5.1, and I am encountering an error when running 'broctl cron'. It appears that when broctl attempts to do a df, the % symbol is not stripped before python tries to convert it to a float. This throws a python error, as you can see below.
I made the error disappear by changing avail=float(df) to avail=float(df.strip("%"))
# broctl cron
warning: removing stale lock
Traceback (most recent call last):
File "/usr/local/bro/bin/broctl", line 726, in ?
File "/usr/lib64/python2.4/cmd.py", line 219, in onecmd
File "/usr/local/bro/bin/broctl", line 341, in do_cron
File "/usr/local/bro/lib/broctl/BroControl/cron.py", line 41, in doCron
File "/usr/local/bro/lib/broctl/BroControl/cron.py", line 150, in _checkDiskSpace
avail = float(df)
ValueError: invalid literal for float(): 2%
More information about the Bro