statedir = /home/ats/.rrdpage
outdir = /home/pub/rrd
period = 5

[source const-0]
	command = echo 0 0 0 0 0 0 0 0

# eth0.0 (LAN) is 2, eth0.1 (ADSL) is 4
[source router-snmp]
	snmp = roberts.at.offog.org PUBLIC ifInOctets.2 ifOutOctets.2 ifInOctets.3 ifOutOctets.3

[var router-net-eth0]
	source = router-snmp
	match = 0 ifInOctets.2
	match = 0 ifOutOctets.2
	fields = 0:1 1:1
	title = Router Ethernet traffic
	labels = in out
	units = B/s
	type = COUNTER
	minvalue = 0
	maxvalue = 11000000

[var router-net-ppp0]
	source = router-snmp
	match = 0 ifInOctets.3
	match = 0 ifOutOctets.3
	fields = 0:1 1:1
	title = ADSL traffic
	labels = in out
	units = B/s
	type = COUNTER
	minvalue = 0
	maxvalue = 2000000

[source adsl]
	command = printf 'Administrator\r\rxdsl info expand=enabled\rexit\r' | nc 192.168.1.254 23

[var adsl-margin]
	source = adsl
	match = 0 Margins
	fields = 2 3
	title = ADSL margin
	labels = down up
	units = dB

[var adsl-attenuation]
	source = adsl
	match = 0 Attenuation
	fields = 2 3
	title = ADSL attenuation
	labels = down up
	units = dB

[var adsl-rate]
	source = adsl
	match = 0 Payload
	fields = 3 4
	title = ADSL payload rate
	labels = down up
	units = kbps

[source cartman-sensors]
	command = env LANG=C sensors -A adm1025-i2c-0-2d
	exclude = ^[a-z]
	split = (?:: +\+?| V +| RPM +|[� ]C +)

[var cartman-psu]
	source = cartman-sensors
	match = 0 VCC
	match = 0 VCore
	match = 0 \+2.5V
	match = 0 \+3.3V
	match = 0 \+5V
	fields = 0:1 1:1 2:1 3:1 4:1
	title = cartman PSU voltages
	labels = Vcc Vcore 2.5V 3.3V 5V
	units = V

[var cartman-temp]
	source = cartman-sensors
	match = 0 CPU Temp
	match = 0 M/B Temp
	fields = 0:1 1:1
	title = cartman temperatures
	labels = CPU case
	units = degC

[source pye-sensors]
	command = env -u SSH_AUTH_SOCK ssh -i /home/ats/.ssh/id_rrdpage ats@pye sensors -A
	split = (?:: +\+?| V +| RPM +|[� ]C +)

[var pye-psu]
	source = pye-sensors
	match = 0 in0
	match = 0 in1
	match = 0 in2
	match = 0 in3
	match = 0 in4
	match = 0 in5
	match = 0 in6
	match = <const-0
	match = <const-0
	fields = 0:1 1:1 2:1 3:1 4:1 5:1 6:1 7:1 8:1
	title = pye PSU voltages
	labels = 1.8V1 1.8V2 3.3V1 3.0V 3.3V2 3.3V3 3.3V4 standby battery
	units = V

[var pye-fans]
	source = pye-sensors
	match = 0 fan1
	match = 0 fan2
	match = 0 fan3
	fields = 0:1 1:1 2:1
	title = pye fan speeds
	labels = CPU case PSU
	units = RPM

[var pye-temp]
	source = pye-sensors
	match = 0 temp1
	match = <const-0
	match = 0 temp4
	fields = 0:1 1:1 2:1
	title = pye temperatures
	labels = southbridge case cpu
	units = degC

[source pye-hddtemp]
	command = nc pyep 7634 | sed 's,||,\n|,g'
	split = \|

[var pye-hddtemp]
	source = pye-hddtemp
	match = 1 /dev/sda
	match = <const-0
	match = 1 /dev/sdb
	match = 1 /dev/sdc
	match = 1 /dev/sdd
	match = 1 /dev/sde
	fields = 0:3 1:3 2:3 3:3 4:3 5:3
	title = pye hard disk temperatures
	labels = hda hdb sda sdb sdc sdd
	units = degC

[source cartman-statgrab]
	command = statgrab
	split = \s+=\s+

[var cartman-mem]
	source = cartman-statgrab
	match = 0 mem.used
	match = 0 mem.cache
	match = 0 swap.used
	fields = 0:1i-1:1 1:1 2:1
	title = cartman memory usage
	labels = RAM cache swap
	units = B
	stacked = yes

[var cartman-paging]
	source = cartman-statgrab
	match = 0 page.in
	match = 0 page.out
	fields = 0:1 1:1
	title = cartman paging activity
	labels = in out
	units = pages
	type = COUNTER
	minvalue = 0
	maxvalue = 10000

[var cartman-diskio]
	source = cartman-statgrab
	match = 0 disk..da.read_bytes
	match = 0 disk..da.write_bytes
	match = 0 disk..db.read_bytes
	match = 0 disk..db.write_bytes
	fields = 0:1 1:1 2:1 3:1
	title = cartman disk I/O
	labels = hda-read hda-write hdb-read hdb-write
	units = B/s
	type = COUNTER
	stacked = yes
	minvalue = 0
	maxvalue = 100000000

[var cartman-proc]
	source = cartman-statgrab
	match = 0 proc.running
	match = 0 proc.sleeping
	match = 0 proc.stopped
	match = 0 proc.zombie
	fields = 0:1 1:1 2:1 3:1
	title = cartman processes
	labels = running sleeping stopped zombie
	stacked = yes

[var cartman-cpu]
	source = cartman-statgrab
	match = 0 cpu.iowait
	match = 0 cpu.kernel
	match = 0 cpu.nice
	match = 0 cpu.user
	fields = 0:1 1:1 2:1 3:1
	title = cartman CPU usage
	labels = iowait kernel nice user
	type = COUNTER
	stacked = yes
	minvalue = 0
	maxvalue = 100

[var cartman-load]
	source = cartman-statgrab
	match = 0 load.min1
	match = 0 load.min5
	match = 0 load.min15
	fields = 0:1 1:1 2:1
	title = cartman system load
	labels = 1-min 5-min 15-min

[var cartman-net-eth0]
	source = cartman-statgrab
	match = 0 net.eth0.rx
	match = 0 net.eth0.tx
	fields = 0:1 1:1
	title = cartman Ethernet traffic
	labels = in out
	units = B/s
	type = COUNTER
	minvalue = 0
	maxvalue = 110000000

[source pye-statgrab]
	command = env -u SSH_AUTH_SOCK ssh -i /home/ats/.ssh/id_rrdpage2 ats@pye statgrab
	split = \s+=\s+

[var pye-mem]
	source = pye-statgrab
	match = 0 mem.used
	match = 0 mem.cache
	match = 0 swap.used
	fields = 0:1i-1:1 1:1 2:1
	title = pye memory usage
	labels = RAM cache swap
	units = B
	stacked = yes

[var pye-paging]
	source = pye-statgrab
	match = 0 page.in
	match = 0 page.out
	fields = 0:1 1:1
	title = pye paging activity
	labels = in out
	units = pages
	type = COUNTER
	minvalue = 0
	maxvalue = 10000

[var pye-diskio]
	source = pye-statgrab
	match = 0 disk.sda.read_bytes
	match = 0 disk.sda.write_bytes
	match = <const-0
	match = <const-0
	match = 0 disk.sdb.read_bytes
	match = 0 disk.sdb.write_bytes
	match = 0 disk.sdc.read_bytes
	match = 0 disk.sdc.write_bytes
	match = 0 disk.sdd.read_bytes
	match = 0 disk.sdd.write_bytes
	match = 0 disk.sde.read_bytes
	match = 0 disk.sde.write_bytes
	fields = 0:1 1:1 2:1 3:1 4:1 5:1 6:1 7:1 8:1 9:1 10:1 11:1
	title = pye disk I/O
	labels = hda-read hda-write hdb-read hdb-write sda-read sda-write sdb-read sdb-write sdc-read sdc-write sdd-read sdd-write
	units = B/s
	type = COUNTER
	stacked = yes
	minvalue = 0
	maxvalue = 100000000

[var pye-proc]
	source = pye-statgrab
	match = 0 proc.running
	match = 0 proc.sleeping
	match = 0 proc.stopped
	match = 0 proc.zombie
	fields = 0:1 1:1 2:1 3:1
	title = pye processes
	labels = running sleeping stopped zombie
	stacked = yes

[var pye-cpu]
	source = pye-statgrab
	match = 0 cpu.iowait
	match = 0 cpu.kernel
	match = 0 cpu.nice
	match = 0 cpu.user
	fields = 0:1 1:1 2:1 3:1
	title = pye CPU usage
	labels = iowait kernel nice user
	type = COUNTER
	stacked = yes
	minvalue = 0
	maxvalue = 100

[var pye-load]
	source = pye-statgrab
	match = 0 load.min1
	match = 0 load.min5
	match = 0 load.min15
	fields = 0:1 1:1 2:1
	title = pye system load
	labels = 1-min 5-min 15-min

[var pye-net-eth0]
	source = pye-statgrab
	match = 0 net\.eth.\.rx
	match = 0 net\.eth.\.tx
	fields = 0:1 1:1
	title = pye Ethernet traffic
	labels = in out
	units = B/s
	type = COUNTER
	minvalue = 0
	maxvalue = 110000000

[var mail]
	match = </home/ats/.counters/likely-virus
	match = </home/ats/.counters/found-virus
	match = </home/ats/.counters/likely-spam
	match = </home/ats/.counters/found-spam
	match = </home/ats/.counters/phishing
	match = </home/ats/.counters/all-real
	match = </home/ats/.counters/mirror
	match = </home/ats/.counters/inbox
	fields = 0:0 1:0 2:0 3:0 4:0 5:0i-6:0i-7:0 6:0 7:0
	title = Mail
	labels = likely-virus found-virus likely-spam found-spam phishing lists mirror inbox
	type = COUNTER
	stacked = yes
	minvalue = 0
	maxvalue = 1000

#[source toggle-snmp]
#	snmp = toggle public ifInOctets.101 ifOutOctets.101 ifInOctets.102 ifOutOctets.102 ifInOctets.103 ifOutOctets.103 ifInOctets.104 ifOutOctets.104 ifInOctets.105 ifOutOctets.105 ifInOctets.106 ifOutOctets.106 ifInOctets.107 ifOutOctets.107 ifInOctets.108 ifOutOctets.108
#
#[var toggle-ports]
#	source = toggle-snmp
#	match = 0 ifInOctets.101
#	match = 0 ifOutOctets.101
#	match = 0 ifInOctets.102
#	match = 0 ifOutOctets.102
#	match = 0 ifInOctets.103
#	match = 0 ifOutOctets.103
#	match = 0 ifInOctets.104
#	match = 0 ifOutOctets.104
#	match = 0 ifInOctets.105
#	match = 0 ifOutOctets.105
#	match = 0 ifInOctets.106
#	match = 0 ifOutOctets.106
#	match = 0 ifInOctets.107
#	match = 0 ifOutOctets.107
#	match = 0 ifInOctets.108
#	match = 0 ifOutOctets.108
#	fields = 0:1 1:1 2:1 3:1 4:1 5:1 6:1 7:1 8:1 9:1 10:1 11:1 12:1 13:1 14:1 15:1
#	title = toggle switch ports
#	labels = 1-in 1-out 2-in 2-out 3-in 3-out 4-in 4-out 5-in 5-out 6-in 6-out 7-in 7-out 8-in 8-out
#	units = B/s
#	type = COUNTER
#	minvalue = 0
#	maxvalue = 1100000000

[source button-snmp]
	snmp = button.at.offog.org public ifInOctets.101 ifOutOctets.101 ifInOctets.102 ifOutOctets.102 ifInOctets.103 ifOutOctets.103 ifInOctets.104 ifOutOctets.104 ifInOctets.105 ifOutOctets.105 ifInOctets.106 ifOutOctets.106 ifInOctets.107 ifOutOctets.107 ifInOctets.108 ifOutOctets.108

[var button-ports]
	source = button-snmp
	match = 0 ifInOctets.101
	match = 0 ifOutOctets.101
	match = 0 ifInOctets.102
	match = 0 ifOutOctets.102
	match = 0 ifInOctets.103
	match = 0 ifOutOctets.103
	match = 0 ifInOctets.104
	match = 0 ifOutOctets.104
	match = 0 ifInOctets.105
	match = 0 ifOutOctets.105
	match = 0 ifInOctets.106
	match = 0 ifOutOctets.106
	match = 0 ifInOctets.107
	match = 0 ifOutOctets.107
	match = 0 ifInOctets.108
	match = 0 ifOutOctets.108
	fields = 0:1 1:1 2:1 3:1 4:1 5:1 6:1 7:1 8:1 9:1 10:1 11:1 12:1 13:1 14:1 15:1
	title = button switch ports
	labels = 1-in 1-out 2-in 2-out 3-in 3-out 4-in 4-out 5-in 5-out 6-in 6-out 7-in 7-out 8-in 8-out
	units = B/s
	type = COUNTER
	minvalue = 0
	maxvalue = 1100000000

[var cartman-df-root]
	source = cartman-statgrab
	match = 0 fs.root.used
	fields = 0:1
	title = cartman / disk used
	labels = used
	units = B
	minvalue = 0
	maxvalue = 39314370560

[var cartman-df-d1]
	source = cartman-statgrab
	match = 0 fs.sdc3.used
	fields = 0:1
	title = cartman /d1 disk used
	labels = used
	units = B
	minvalue = 0
	maxvalue = 840752029696

[var pye-df-root]
	source = pye-statgrab
	match = 0 fs.sde2.used
	fields = 0:1
	title = pye / disk used
	labels = used
	units = B
	minvalue = 0
	maxvalue = 19681792000

[var pye-df-home]
	source = pye-statgrab
	match = 0 fs.sde3.used
	fields = 0:1
	title = pye /home disk used
	labels = used
	units = B
	minvalue = 0
	maxvalue = 19681792000

[var pye-df-stuff]
	source = pye-statgrab
	match = 0 fs.md0.used
	fields = 0:1
	title = pye /stuff disk used
	labels = used
	units = B
	minvalue = 0
	maxvalue = 2864916865024
