Snort mailing list archives

Re: stopping snort


From: Erick Mechler <emechler () techometer net>
Date: Fri, 13 Dec 2002 11:37:16 -0800

:: Has anyone found a way to stop snort, automatically, what i want to do is
:: have snort stop, if it gets more than 'x' alerts in a single hour, or some
:: time frame, then of course email me that it has stopped.

Sounds like you can do this with a very small shell script, or perl if you 
prefer.

if [ `kill -0 $SNORT_PID` ]; then
  if [ `du -k $LOG_FILE | cut -f1` > $MAX_SIZE ]; then
    stop snort
    email me
  fi
fi

Suitable for a cron job to run, maybe, once per 1/2 hour or so.

Cheers - Erick


-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility 
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
_______________________________________________
Snort-users mailing list
Snort-users () lists sourceforge net
Go to this URL to change user options or unsubscribe:
https://lists.sourceforge.net/lists/listinfo/snort-users
Snort-users list archive:
http://www.geocrawler.com/redir-sf.php3?list=snort-users


Current thread: