# rrds/ntcpu - basic processor usage for NT

source	nt-status
step	300
data	system=system:percent_total_privileged_time COUNTER:600:0:U perfcounters
data	user=system:percent_total_user_time COUNTER:600:0:U perfcounters

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 month 3month year

graph	cpu
	--title '##HOST## - CPU (##GRAPHTIME##)'
	--lower-limit 0
	--vertical-label '%'
	DEF:system100ns=##DB##:system:AVERAGE
	DEF:user100ns=##DB##:user:AVERAGE
	CDEF:system=system100ns,1000000000,/
	CDEF:user=user100ns,1000000000,/
	'AREA:system###COLOR1##:Privileged Time'
	'STACK:user###COLOR2##:User Time'
	'GPRINT:system:AVERAGE:priv avg=%.0lf'
	'GPRINT:system:MAX:max=%.0lf'
	'GPRINT:user:AVERAGE:user avg=%.0lf'
	'GPRINT:user:MAX:max=%.0lf'
