summaryrefslogtreecommitdiff
path: root/doc/traffic-example.conf
blob: e0d40d2a1745fa40c542f098fbee15454fa61a71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50

# 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

# You might also use table queries to acheive the above.
# If the interface's names is 'eth0', then this would work.
#
# in.source: snmp://public@router.example.com/ifInOctets?ifDescr=eth0
# out.source: snmp://public@router.example.com/ifOutOctets?ifDescr=eth0

# 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