# rrds/load - load averages on unix boxen
# Load-average over the past 1, 5 and 15 minutes, respectively.  The 
# load-average is, roughly, the number of processes waiting that could have
# used the CPU if it had been available.  Which it wasn't if it's greater
# than one.
source		unix-status
step		300
data		users GAUGE:600:0:U	uptime
data		load1 GAUGE:600:0:U	uptime
data		load5 GAUGE:600:0:U	uptime
data		load15 GAUGE:600:0:U	uptime
alert		load5 < 3 7 10
archives	day-avg week-avg month-avg 3month-avg year-avg
times		day yesterday week 3month year
graph		load desc="The load-average is the number of processes that were waiting to use the CPU, but couldn't because another process was using it."
	--title '##HOST## - Load Average (##GRAPHTIME##)'
	--lower-limit 0
	--vertical-label 'processes'
	DEF:load1=##DB##:load1:AVERAGE
	DEF:load5=##DB##:load5:AVERAGE
	DEF:load15=##DB##:load15:AVERAGE
	'LINE1:load1###COLOR1##:1 Minute'
	'LINE1:load5###COLOR2##:5 Minute'
	'LINE1:load15###COLOR3##:15 Minute'
	'GPRINT:load1:AVERAGE:avg=%.2lf%s'
	'GPRINT:load1:MAX:max=%.2lf%s'

graph	users desc="Number of users on the host.  If someone is using X-windows, this can be artificially inflated. "
	--title '##HOST## - Users (##GRAPHTIME##)'
	--lower-limit 0
	--vertical-label 'users'
	--units-exponent 0
	DEF:users=##DB##:users:AVERAGE
	'LINE1:users###COLOR1##:users'
	'GPRINT:users:AVERAGE:avg=%.2lf%s'
	'GPRINT:users:MAX:max=%.2lf%s'

