meanother / wg-stats

wireguard lite monitoring

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wireguard lite monitoring

sqlite3.37 on Ubuntu

cd ~ ;\
wget https://github.com/nalgeon/sqlite/releases/download/3.38.0/sqlite3-ubuntu ;\
mv sqlite3-ubuntu sqlite3 ;\
chmod +x sqlite3

Run

python main.py --users_path /path/to/clients/keys

Check stats

~/sqlite3 $HOME/db/wg-stats.db -box

Check stats hotkey

vim $HOME/check.sh

$HOME/code/wg-stats/env/bin/python $HOME/code/wg-stats/main.py --users_path /root/clients/ > /dev/null ;\
$HOME/sqlite3 -box $HOME/db/wg-stats.db -box "select * from v_stats;" ".q"

chmod +x check.sh
vim .zshrc
alias pp="$HOME/check.sh"

source .zshrc
# RUN
pp

img

About

wireguard lite monitoring


Languages

Language:Python 89.7%Language:Makefile 10.3%