# filer sub-tree
#
# This is where we collect stats on the chassis of our filers
# (i.e. CPU, network, ...). These are kept separate from the volumes 
# themselves since they have quite different configuration needs.

# All the root target defaults are appropriate here, except that we 
# want an entry named "filer" available to make things more readable. 
# This also shows an example of using "forward references" to the 
# domain variable, which gets set in each of the target files.

# Author: Matthew Stier
# Email: Matthew.Stier@fnc.fujitsu.com

Target	--default--
	directory-desc	= "Network Appliance filers"
	filer		= %auto-target-name%
	snmp-host	= %filer%.%domain%
	target-type	= undef
	util-dir	= %auto-base%/../cricket/util

# OID's we'll be using in this tree
OID		cpuusage	1.3.6.1.4.1.789.1.2.1.2.0
OID		nfsops		1.3.6.1.4.1.789.1.2.2.1.0
OID		netrcvd		1.3.6.1.4.1.789.1.2.2.2.0
OID		netsent		1.3.6.1.4.1.789.1.2.2.3.0
OID		cifsread	1.3.6.1.4.1.789.1.7.3.1.1.5.0
OID		cifswrite	1.3.6.1.4.1.789.1.7.3.1.1.5.0
#OID		cifsread	1.3.6.1.4.1.789.1.1000.1.2.3.0
#OID		cifswrite	1.3.6.1.4.1.789.1.1000.1.2.4.0

datasource	--default--
	rrd-ds-type	= COUNTER
	rrd-heartbeat	= 1800
	rrd-min		= undef
	rrd-max		= undef
	
datasource	cpuusage
	ds-source	= snmp://%snmp%/cpuusage

datasource	nfsops
	ds-source	= snmp://%snmp%/nfsops

datasource	netsent
	ds-source	= "exec:0:%util-dir%/netapp %snmp-host%"

datasource	netrcvd
	ds-source	= "exec:1:%util-dir%/netapp %snmp-host%"

datasource	cifsread
	ds-source	= snmp://%snmp%/cifsread

datasource	cifswrite
	ds-source	= snmp://%snmp%/cifswrite

# CPU
graph   cpuusage
	units		= "%"
	color		= dark-green
	draw-as		= AREA
	legend		= "Percent CPU utilization"
	y-min		= 0
	y-max		= 100
	y-axis		= "Percent CPU utilization"

# Network Data
graph   netrcvd
	units		= "bytes per second"
	color		= "dark-green"
	draw-as		= AREA
	legend		= "Network Data received"
	y-axis		= "Network Data"

graph   netsent
	units		= "bytes per second"
	color		= "blue"
	draw-as		= LINE2
	legend		= "Network Data sent"

# NFS
graph   nfsops
	units		= "operations per second"
	color		= "dark-green"
	draw-as		= AREA
	legend		= "NFS operations"
	y-axis		= "NFS operations"

# CIFS
graph   cifsread
	units		= "operations per second"
	color		= "dark-green"
	draw-as		= AREA
	legend		= "CIFS Data received"
	y-axis		= "CIFS operations"

graph   cifswrite
	units		= "operations per second"
	color		= "blue"
	draw-as		= LINE2
	legend		= "CIFS Data sent"

