chitose

command module
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2024 License: GPL-2.0 Imports: 15 Imported by: 0

README

chitose

An iftop alternative for cumulated network traffic monitoring, for OSS mirror admins.

Outbound traffic by default.

Build

go build

This uses gopacket and thus NOT supporting CGO_ENABLED=0 for static linking. You need to install libpcap to use this.

Note that binaries in Releases are compiled under Ubuntu 20.04 (glibc 2.31).

Usage

> ./chitose -h
Usage of ./chitose:
  -i string
        Interface to listen on (default "eth0")
  -inbound
        Show inbound traffic instead of outbound
  -no-netstat
        Do not detect active connections
  -sort-delta
        Sort by delta instead of total
  -top int
        Number of top values to show (default 10)

Press 's' (lowercase) to change sort order

You might need root privilege to run this program.

Naming

Same as the nginx log analyzer ayano, and chitose shares some code with that :)

Documentation

Overview

Modified from https://github.com/golang/term/blob/5b15d269ba1f54e8da86c8aa5574253aea0c2198/term_unix.go#L22 It only changes input flags to disable echo and canonical mode. BSD-3-Clause License

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL