]> arthur.barton.de Git - nagcollect.git/blob - client/lib/tests/Uptime.tst
New "Uptime" test to return the system uptime
[nagcollect.git] / client / lib / tests / Uptime.tst
1 # NagCollect -- Nagios Data Collector for Passive Checks
2 # Copyright (c)2009 Alexander Barton, alex@barton.de
3
4 SERVICE="Sys-Load_p"
5
6 uptime=`LC_ALL=C uptime`
7 uptime=${uptime%,*user*}
8 uptime=${uptime##* up }
9
10 STATUS=0
11 TEXT="Uptime: $uptime"