Simple tool to get network traffic statistics of each port; Port traffic monitor.
Portmon is a simple network traffic monitoring tool.
Install
To install
chmod 755 install.sh
./install.shTo uninstall
chmod 755 uninstall.sh
./uninstall.shUsage
Config ports you need to monitor
Edit config ~/.portmon/portmon.ini
[DEFAULT]
serve_port = 9000
monitor_ports = 443,22,8080Start
service portmon startStop
service portmon stopRestart
service portmon restartGet network traffic of port 443
> curl localhost:9000/443
Port 443 data usage: 12134354KB = 11.57GBGet network traffic of port 22
> curl localhost:9000/22 Port 22 data usage: 97282KB = 0.09GB
from https://github.com/sfpprxy/portmon
No comments:
Post a Comment