Wireguard lite monitoring
cd ~ ;\
wget https://github.com/nalgeon/sqlite/releases/download/3.38.0/sqlite3-ubuntu ;\
mv sqlite3-ubuntu sqlite3 ;\
chmod +x sqlite3
python main.py --users_path /path/to/clients/keys
~/sqlite3 $HOME/db/wg-stats.db -box
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](https://raw.githubusercontent.com/meanother/wg-stats/main/pics/ex.jpg)