# rrds/ntuptime - NT host system uptime
# CVS $Id: ntuptime,v 1.6 2003/03/20 18:09:45 remstats Exp $
# from remstats version @@VERSION@@
# Copyright 2003 by Thomas Erskine <@@AUTHOR@@>

desc	uptime for a NT host
source	nt-status
step	300
data	uptime GAUGE:600:0:U	psinfo
alert	uptime delta> 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 month 3month year

graph	uptime desc="This is collected by the nt-status-collector.  It works by running the <B>psinfo</B> command from the NT Resource Kit and parsing the result.  It shows the number of seconds that the host has been up."
	--title '##HOST## - Up-time (##GRAPHTIME##)'
	--vertical-label 'sec'
	DEF:uptime=##DB##:uptime:AVERAGE
	CDEF:missing=uptime,UN,INF,UNKN,IF
	'LINE1:uptime###COLOR1##:uptime'
	'GPRINT:uptime:LAST:current=%.0lf%s'
	'AREA:missing###MISSING##:missing'

