Files
Private-Proxy/server_config/scripts/rrpp-stats
T

5 lines
144 B
Bash

#!/bin/bash
# /usr/local/bin/rrpp-stats — returns traffic stats as JSON
vnstat --json 2>/dev/null || echo '{"error":"vnstat not available"}'