|
We recently had a similar
problem and support sent us a script which is self explanatory. Appended is the
entire email for your reference. Trust this will be of help. Althoug we are yet to try due to the machine being heavily utilized .. Let us know how u fare.. Rgds Tushar -----Original Message----- Bahaa, With the release pending of Server Sensor 7.0 for
Solaris, it is likely that the solution will be addressed in a 7.0 release
rather than in an SR for Server Sensor 6.5. Regardless, the problem is centered
around the inability of Server Sensor to clean logs quickly on busy systems.
Basically, the removal or reduction of the auditing log files is being hindered
by new audit events causeing the the
next log to fill before the initial log is reduced. There are two work arounds that should help to allieviate
this issue. First, the policy can be tweaked to reduce the number of audit
events. Secondly, a cron job script can be run to
clean the logs. The following Cron job script can be
used to clean up BSM logs at a specified interval: #!/bin/sh
# Version 1.3 by Stephen de Vries ( # This script runs from crontab every 10 minutes. It # deletes BSM logs if they take up more than 1MB of # space, or more than 10% of
free disk space on the # logging volume. This
script should reside in % /opt/ISS/RealSecure. PATH=/usr/sbin:/usr/bin
AUDITDIR=/var/audit REMOVE="/usr/bin/xargs
/usr/bin/rm -f" WAIT=/usr/bin/wait
MEG=1000 ALLAVAIL=`df -k ${AUDITDIR}|grep -v capacity|awk '{print
$4}'` AVAIL=`expr $ALLAVAIL / 10` USED=`du -sk ${AUDITDIR}|awk '{print $1}'` if [ ${USED} -gt
$MEG ] then TOOBIG=$AVAIL else TOOBIG=$MEG fi if [
"`/usr/bin/du -sk
$AUDITDIR`" -gt $TOOBIG ] then
HOSTNAME=`hostname` /usr/sbin/audit -n sleep 3 cd $AUDITDIR /usr/bin/ls
"$AUDITDIR" |/usr/bin/egrep
"[0-9]*\.[0-9]+\.$HOSTNAME"| ${REMOVE} fi Thanks, ================================================= Joshua Backing Technical Internet Security Systems: <http://www.iss.net>Phone: (404) 236-2700 or
(888) 447-4861 Technical PGP Public Keys <http://www.iss.net/support/howto_encrypted_email.php>
Training <http://www.iss.net/education/> Internet Security Systems Product Knowledgebase <http://www.iss.net/support/knowledgebase/> -----Original Message-----
|
- [ISSForum] BSM Audit Daemon storm
- RE: [ISSForum] BSM Audit Daemon Tushar Ghosh
- RE: [ISSForum] BSM Audit Daemon MY-Nicholas Ng
- RE : [ISSForum] BSM Audit Daemon Marco Proulx
