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.
14 uptime=`LC_ALL=C uptime`
15 uptime=${uptime%,*user*}
16 uptime=${uptime##* up }
18 os="`uname -s` `uname -r`"
20 if [ `uname` = "Darwin" ]; then
21 os="`sw_vers -productName` `sw_vers -productVersion`"
42 TEXT="Uptime: $uptime - $os"