# rrds/df-* - disk space available via the unix-status-collector
#
# Disk space available, including inodes, if the file-system has them.
# Percent is really redundant, as it can be calculated.  (TODO)
source		unix-status
step		600
data		size=dfsize:* GAUGE:600:0:U	df
data		used=dfused:* GAUGE:600:0:U	df
data		percent=dfpercent:* GAUGE:600:0:100	df
data		inodes=inodessize:* GAUGE:600:0:U	df
data		inodeuse=inodesused:* GAUGE:600:0:U	df
data		inodepct=inodespercent:* GAUGE:600:0:100	df
alert		percent < 90 95 98
alert		inodepct < 90 95 98
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 3month year
graph		df-* desc='how much of the disk is used'
		--title '##HOST## - Disk Usage - ##WILDPART## (##GRAPHTIME##)'
		--lower-limit 0
		--vertical-label 'bytes'
		DEF:size=##DB##:size:AVERAGE
		DEF:used=##DB##:used:AVERAGE
		CDEF:free=size,used,-
		'AREA:size###TOTALCOLOR##:Disk Size'
		'LINE3:used###USEDCOLOR##:Disk Used'
		'GPRINT:free:LAST:free=%.0lf%s'

#graph		dfi-* desc='how many of the i-nodes are used; only applies to UFS file-systems and will be blank for other types'
#		--title '##HOST## - Inode Usage - ##WILDPART## (##GRAPHTIME##)'
#		--lower-limit 0
#		--vertical-label 'inodes'
#		DEF:inodes=##DB##:inodes:AVERAGE
#		DEF:inodeuse=##DB##:inodeuse:AVERAGE
#		CDEF:free=inodes,inodeuse,-
#		'AREA:inodes###TOTALCOLOR##:Inodes'
#		'LINE3:inodeuse###USEDCOLOR##:Inodes Used'
#		'GPRINT:free:LAST:free=%.0lf%s'

