Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ libnethogs.a
results/
build/
nethogs.egg-info

# IDE configurations
.vscode
.idea
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(you can use a global gitignore, but I'm not opposed to adding those)

8 changes: 7 additions & 1 deletion doc/nethogs.8
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ bughunt mode - implies tracemode.
delay for update refresh rate in seconds. default is 1.
.TP
\fB-v\fP
view mode (0 = kB/s, 1 = total kB, 2 = total bytes, 3 = total MB, 4 = MB/s, 5 = GB/s). default is 0.
view mode (0 = kB/s, 1 = total kB, 2 = total bytes, 3 = total MB, 4 = MB/s, 5 = GB/s, 6 = B/s). default is 0.

kB: 2e10 bytes, MB: 2e20 bytes, GB: 2e30 bytes
.TP
Expand Down Expand Up @@ -75,6 +75,12 @@ garbage collection period in number of refresh. default is 50.
\fB-P\fP
Show only processes with the specified pid(s).
.TP
\fB-j\fP
Output in JSON format.
.TP
\fB-z\fP
Sort by PID.
.TP
\fB-f\fP
EXPERIMENTAL: specify string pcap filter (like tcpdump). This may be removed or changed in a future version.
.TP
Expand Down
28 changes: 28 additions & 0 deletions monitor-service/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Nethogs monitor

Use nethogs as a background service to monitor network usage.

## Installation

```sh
sh nethogs-monitor-install.sh
```

## Usage

Enable service:
```sh
systemctl enable nethogs-monitor
```

Start service:
```sh
systemctl start nethogs-monitor
```

View report:
```sh
nethogs-monitor-report.sh
```


Loading