#!/bin/bash ntpdc -c iostats |grep -E 'received packets' |sed -e 's,.*received packets:,,' |sed -e 's/^[ \t]*//' > /tmp/ntp.mrtg ntpdc -c iostats |grep -E 'packets sent' |sed -e 's,.*packets sent:,,' |sed -e 's/^[ \t]*//' >> /tmp/ntp.mrtg