#!/bin/bash
# pakt dataverkeer van de default gw
GWINTERFACE=$( grep -w 0003 /proc/net/route|cut -f 1 )
TRAFFIC=( $( grep -w "${GWINTERFACE}" /proc/net/dev ) )
echo "hrnet,host=${HOSTNAME} rx=${TRAFFIC[1]},tx=${TRAFFIC[9]}"
