Skip to content

Simple tool to get network traffic statistics of each port; Port traffic monitor

License

Notifications You must be signed in to change notification settings

sfpprxy/portmon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Portmon

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

service portmon start

Stop

service portmon stop

Restart

service portmon restart

Get network traffic of port 443

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

Get network traffic of port 22

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

License

MIT

About

Simple tool to get network traffic statistics of each port; Port traffic monitor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages