Prerequisites
Before monitoring bandwidth, make sure you have:
- Admin access to HestiaCP
View Bandwidth in HestiaCP
Step 1: Log in to HestiaCP
https://YOUR_SERVER_IP:8083
Step 2: Navigate to SERVER Section
Click on SERVER in the top menu bar.
Step 3: Check Network Stats
The dashboard shows:
- Incoming bandwidth (download)
- Outgoing bandwidth (upload)
- Monthly totals per user
View Bandwidth Per User
/usr/local/hestia/bin/v-list-users
Check specific user:
/usr/local/hestia/bin/v-list-user admin
Monitor Real-Time Network Traffic
Install nload:
apt install nload -y
nload
Install iftop:
apt install iftop -y
iftop
Bandwidth Alert Script
#!/bin/bash
# Get monthly bandwidth for user
BANDWIDTH=$(/usr/local/hestia/bin/v-list-user admin | grep "BANDWIDTH" | awk '{print $2}' | sed 's/GB//')
THRESHOLD=100 # 100GB
if [ $BANDWIDTH -gt $THRESHOLD ]; then
echo "Warning: User admin has used ${BANDWIDTH}GB this month" | mail -s "Bandwidth Alert" admin@example.com
fi
Reset Monthly Bandwidth Counter
HestiaCP automatically resets bandwidth on the 1st of each month.
To manually reset:
/usr/local/hestia/bin/v-update-bandwidth
✅ Bandwidth monitoring is active!