]> arthur.barton.de Git - nagcollect.git/blob - client/lib/tests/Uptime.tst
020111301e3a660ed690f1fde86d4474015d84a1
[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="Uptime_p"
5
6 uptime=`LC_ALL=C uptime`
7 uptime=${uptime%,*user*}
8 uptime=${uptime##* up }
9
10 os="`uname -s` `uname -r`"
11 [ `uname` = "Darwin" ] && os="`sw_vers -productName` `sw_vers -productVersion`"
12
13 STATUS=0
14 TEXT="Uptime: $uptime - $os"