В 01:41 +0300 на 28.07.2012 (сб), Anssi Johansson написа:
..

Based on the same idea, a simple plugin for munin:

#!/bin/bash
# -*- sh -*-

. $MUNIN_LIBDIR/plugins/plugin.sh

if [ "$1" = "autoconf" ]; then
        echo yes
        exit 0
fi


if [ "$1" = "config" ]; then

        echo 'graph_title ntp packet rate'
        echo 'graph_args --lower-limit 0'
        echo 'graph_vlabel addresses'
        echo 'graph_category time'
        echo "in.label in"
        echo "in.type COUNTER"
        echo "in.info packets received"

        echo "out.label out"
        echo "out.type COUNTER"
        echo "out.info packets sent"

        exit 0
fi

ntpdc -c iostats |grep -E 'received packets|packets sent' |sed 's/packets sent: 
*/out.value /;s/received packets: */in.value /'
# end

-- 
Regards,
Vasil Kolev

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
pool mailing list
[email protected]
http://lists.ntp.org/listinfo/pool

Reply via email to