Bug when running broctl cron

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[3]) to avail=float(df[3].strip("%"))


Nick Jones

# 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
   return func(arg)
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[3])
ValueError: invalid literal for float(): 2%

What operating system are you running this on?


Centos 5.4 with Python 2.4.3

Can you please file a ticket with the tracker at