Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Nov 3, 2022. It is now read-only.

avatar4d/openbsd-dum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

openbsd-dum

OpenBSD Data Usage Meter

This is a script for OpenBSD that will report daily data consumption in MB as well as the total for the month based on data from netstat. It is intended to be called from cron, which will email the report to root or whoever root is aliased to in /etc/mail/aliases.

By default it logs to /var/log/odum/odum.log in the following format:

DATE|BYTES-IN|BYTES-OUT

Example Log Entry:

2012-04-01|164584809291|162057262018

Example Output:

Today's Data Usage In: 713  MB
Today's Data Usage Out: 63 MB
This Month's Data Usage In: 2415 MB
This Month's Data Usage Out: 709 MB

Usage:

sudo su -
mkdir ~/bin
cd ~/bin
git clone git://github.com/avatar4d/openbsd-dum.git
crontab -e

Then add the following:

0       0       *       *       *       /root/bin/openbsd-odum/odum.sh

About

This script will report daily data consumption on OpenBSD

Resources

License

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages