You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 16, 2021. It is now read-only.
Added the following to /usr/local/lib/nsmnow/lib-nsm-sensor-utils:
# Initialize REMOVED to "no".
# We recursively run this job until one of the following conditions exist:
# - there are no more files/dirs to delete (REMOVED=no even at the end)
# - disk is under $CRIT_DISK_USAGE
REMOVED="no"
# find the oldest Bro logs directory and exclude today
OLDEST_DIR=$(ls /nsm/bro/logs/ | grep -v "current" | grep -v "stats" | sort | grep -v $TODAY | head -n 1)
if [ -z "$OLDEST_DIR" -o "$OLDEST_DIR" == ".." -o "$OLDEST_DIR" == "." ]
then
echo_msg 1 "${RED}no old Bro logs available to clean up in /nsm/bro/logs/"
else
echo_msg 1 "removing directory: /nsm/bro/logs/$OLDEST_DIR"
rm -rf /nsm/bro/logs/"$OLDEST_DIR"
REMOVED="yes"
fi
Original comment by doug.bu...@gmail.com on 26 Jan 2012 at 9:28
Original issue reported on code.google.com by
doug.bu...@gmail.com
on 24 Jan 2012 at 8:01The text was updated successfully, but these errors were encountered: