summaryrefslogtreecommitdiff
path: root/doc/traffic-example.conf
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2006-11-28 01:53:20 +0000
committerStef Walter <stef@memberwebs.com>2006-11-28 01:53:20 +0000
commit9791f61c323d2769abfe0e9889b81c52ca1309af (patch)
tree9f1aa63041c6989c389da46994df076e0106656e /doc/traffic-example.conf
parent85aadabd85dd077ae396724b264f9c2bfa5357b0 (diff)
Add traffic example
Diffstat (limited to 'doc/traffic-example.conf')
-rw-r--r--doc/traffic-example.conf44
1 files changed, 44 insertions, 0 deletions
diff --git a/doc/traffic-example.conf b/doc/traffic-example.conf
new file mode 100644
index 0000000..aea1b0d
--- /dev/null
+++ b/doc/traffic-example.conf
@@ -0,0 +1,44 @@
+
+# Monitors traffic on a gateway or router
+# This is a sample rrdbotd configuration file. See:
+# man rrdbot.conf
+
+[general]
+rrd: /var/db/rrds/traffic.rrd
+
+
+# These settings are used by rrdbotd --------------------------------------
+[poll]
+
+# The two fields to store in the RRD: 'in' and 'out'. The
+# interface number (at the end of the OID) may vary from
+# router to router. In this example the SNMP community is
+# 'public'
+in.source: snmp://public@router.example.com/ifInOctets.2
+out.source: snmp://public@router.example.com/ifOutOctets.2
+
+# Poll every 10 seconds
+interval: 10
+
+
+
+# These settings are used by rrdbot-create --------------------------------
+[create]
+
+# Counters are values that continually increase
+in.type: COUNTER
+in.min: 0
+out.type: COUNTER
+out.min: 0
+
+# The consolidation function for the RRD
+cf: AVERAGE
+
+# Archives sets of values to keep.
+# 6 per minute for 2 days
+# 30 per hour for 1 month
+# 2 per hour for 1 year
+archive: 6/minute * 2 days,
+ 30/hour * 1 month,
+ 2/hour * 1 year
+