1 # NagCollect -- Nagios Data Collector for Passive Checks
2 # Copyright (c)2009 Alexander Barton, alex@barton.de
6 uptime=`LC_ALL=C uptime`
7 uptime=${uptime%,*user*}
8 uptime=${uptime##* up }
10 os="`uname -s` `uname -r`"
11 [ `uname` = "Darwin" ] && os="`sw_vers -productName` `sw_vers -productVersion`"
14 TEXT="Uptime: $uptime - $os"