sfpprxy/portmon: Simple tool to get network traffic statistics of each port
2019-08-07 20:01:05 Author: github.com(查看原文) 阅读量:236 收藏

Join GitHub today

GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.

Sign up

Simple tool to get network traffic statistics of each port

Python Shell

Portmon is a simple network traffic monitoring tool.

Install

To install

chmod +x install.sh
./install.sh

To uninstall

chmod +x uninstall.sh
./uninstall.sh

Usage

Config ports you need to monitor:

Edit config ~/.portmon/portmon.ini

[DEFAULT]
serve_port = 9000
monitor_ports = 443,22,8080

Start

Stop

Restart

Get network traffic of port 443:

> curl localhost:9000/443
Port 9999 data usage: 12134354KB = 11.57GB

Get network traffic of port 22:

> curl localhost:9000/22
Port 9999 data usage: 97282KB = 0.09GB

License

MIT


文章来源: https://github.com/sfpprxy/portmon
如有侵权请联系:admin#unsafe.sh