Skip to content

packets-at-rest/par-jaintor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

par-jaintor

Clean up old files in the ring buffer

Jantior is the tool used to ensure that full packet capture data does not fill the harddrive.

Configuring Janitor

Janitor can be tuned..

# Define the directory to check
DIR="/opt/filed-capture"

# Define constants
Minimum=100   # Minimum space below which files will be deleted (MB)
DeleteTo=200  # Delete files until this value is reached (MB)
NumtoDel=25  # Number of files to delete between each free disk space check

CronJobs

*/5 * * * * /usr/local/bin/ruby /opt/packets-at-rest/bin/filer  > /dev/null 2>&1
* * * * * /opt/bin/janitor.sh  > /dev/null 2>&1

About

Clean up old files in the ring buffer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages