# rrds/snmpmem - Memory usage via SNMP.  

# Comes from a Cisco-specific MIB which only appears to
# be implemented in the routers.
source	snmp
step	300
data	freemem=ciscofreemem GAUGE:600:0:U
data	totalmem=ciscototalmem GAUGE:600:0:U
archives day-avg week-avg month-avg 3month-avg year-avg day-min week-min month-min 3month-min year-min
times	day yesterday week month year
oid	CiscoFreeMem
oid	CiscoTotalMem

graph	snmpmem
	--title '##HOST## - Memory (##GRAPHTIME##)'
	--lower-limit 0
	--vertical-label 'bytes'
	DEF:freemem=##DB##:freemem:AVERAGE
	DEF:totalmem=##DB##:totalmem:AVERAGE
	'AREA:totalmem###TOTALCOLOR##:Total memory'
	'LINE2:freemem###USEDCOLOR##:Free memory'
	'GPRINT:freemem:LAST:free=%.0lf%s'
	'GPRINT:freemem:MIN:free min=%.0lf%s'

