From 88e207f51cf73c64ef792ecc8fd753597470e1db Mon Sep 17 00:00:00 2001 From: Kenyon Ralph Date: Fri, 15 Mar 2013 19:24:25 -0700 Subject: [PATCH] time/ntp_packets: set minimums to zero to avoid spikes on counter restarts --- plugins/time/ntp_packets | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/time/ntp_packets b/plugins/time/ntp_packets index f1e52ec8..9b7d653d 100755 --- a/plugins/time/ntp_packets +++ b/plugins/time/ntp_packets @@ -39,13 +39,17 @@ if len(sys.argv) == 2 and sys.argv[1] == 'config': print('received.label Received') print('received.type DERIVE') print('received.graph no') + print('received.min 0') print('sent.label Rx/Tx') print('sent.type DERIVE') print('sent.negative received') + print('sent.min 0') print('dropped.label Dropped') print('dropped.type DERIVE') + print('dropped.min 0') print('ignored.label Ignored') print('ignored.type DERIVE') + print('ignored.min 0') sys.exit(0) os.environ['PATH'] = '/usr/local/sbin:/usr/local/bin:' + os.environ['PATH']