1 # NagCollect -- Nagios Data Collector for Passive Checks
2 # Copyright (c)2009-2010 Alexander Barton, alex@barton.de
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
8 # Please read the file COPYING, README and AUTHORS for more information.
13 uptime=`LC_ALL=C uptime`
14 uptime=${uptime%,*user*}
15 uptime=${uptime##* up }
17 os="`uname -s` `uname -r`"
18 [ `uname` = "Darwin" ] \
19 && os="`sw_vers -productName` `sw_vers -productVersion`"
22 TEXT="Uptime: $uptime - $os"