#!/bin/sh* Note: The output from the script can be read by Paessler PRTG.
DataOut=`netstat -bi | grep -v Obytes | grep -v "-" | grep "^en" | awk '{ x += $10 } END { print x }'`
DataOut2=`netstat -bi | grep -v Obytes | grep -v "-" | grep "^lo" | awk '{ x += $6 } END { print x }'`
DataTol=( $DataOut + $DataOut2 )
echo "0:$DataTol:OK"
No comments:
Post a Comment