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