# rrds/collector- unix-status - status of the unix-status collector
# All collector RRDs are the same except for the source
source	unix-status
#desc	monitoring the running of the unix-status-collector
step	300
data	requests=unix-status-collector:requests GAUGE:600:0:U
data	collected=unix-status-collector:collected GAUGE:600:0:U
data	used=unix-status-collector:used GAUGE:600:0:U
data	runtime=unix-status-collector:runtime GAUGE:600:0:U
alert	collected > 0 0 0
alert	used > 0 0 0
archives day-avg week-avg month-avg 3month-avg year-avg day-max week-max month-max 3month-max year-max
times	day yesterday week 3month year

graph	entries-unix-status desc="showing the efficiency of the collector.  Anomalies usually indicate that something is wrong"
	--lower-limit 0
	--vertical-label 'entries'
	--title '##HOST## - unix-status-collector (##GRAPHTIME##)'
	--units-exponent 0
	DEF:collected=##DB##:collected:AVERAGE
	DEF:requests=##DB##:requests:AVERAGE
	DEF:used=##DB##:used:AVERAGE
	'AREA:collected###COLOR2##:entries collected'
	'LINE2:requests###COLOR1##:requests sent'
	'LINE2:used###COLOR3##:entries used'

graph runtime desc="how long the collector took to collect the info.  Again, amomalies indicate problems.  Unless you add more things to be collected, or there is increased load, it should remain relatively constant."
	--lower-limit 0
	--vertical-label 'sec'
	--title '##HOST## - unix-status-collector - runtime (##GRAPHTIME##)'
	--units-exponent 0
	DEF:runtime=##DB##:runtime:AVERAGE
	'LINE2:runtime###COLOR1##:runtime'
	'GPRINT:runtime:MIN:min=%.0lf'
	'GPRINT:runtime:AVERAGE:avg=%.0lf'
	'GPRINT:runtime:MAX:max=%.0lf'

