[Bro-Dev] #347: Problem with df helper script

Bro Tracker bro at tracker.icir.org
Tue Jan 11 07:18:38 PST 2011


#347: Problem with df helper script
------------------------+------------------------
 Reporter:  seth        |      Owner:  robin
     Type:  Problem     |     Status:  new
 Priority:  High        |  Milestone:
Component:  BroControl  |    Version:  git/master
 Keywords:              |
------------------------+------------------------
 This is related to ticket #251.  The problem is seen in that ticket but is
 not found as the correct problem.

 On some machines, the file system device will be too long and df will wrap
 the line which messes up the df helper...

 {{{
 [root at local bro]# df -h /bro
 Filesystem            Size  Used Avail Use% Mounted on
 /dev/mapper/VolGroup00-LogVol00
                       212G  8.0G  193G   4% /
 }}}

 The fix seems to be to add the -P flag to the df command in the df helper
 script.  I just don't know if that's going to cause compatibility problems
 with different 'df's.  It seems to work on MacOS X and GNU df.

 {{{
 [root at local bro]# df -Ph /bro
 Filesystem            Size  Used Avail Use% Mounted on
 /dev/mapper/VolGroup00-LogVol00  212G  8.0G  193G   4% /
 }}}
 I think we should try and get this fix in before we do the final 1.5
 release because many boxes can't run the broctl cron command fully due to
 this bug.

-- 
Ticket URL: <http://tracker.icir.org/bro/ticket/347>
Bro Tracker <http://tracker.icir.org/bro>
Bro Issue Tracker



More information about the bro-dev mailing list