Uptime test: add operating system version
[nagcollect.git] / client / lib / tests / Uptime.tst
index fb4d7aa0d44296ad81f8b1b1f7cc9a5cfefe796f..020111301e3a660ed690f1fde86d4474015d84a1 100644 (file)
@@ -7,5 +7,8 @@ uptime=`LC_ALL=C uptime`
 uptime=${uptime%,*user*}
 uptime=${uptime##* up }
 
+os="`uname -s` `uname -r`"
+[ `uname` = "Darwin" ] && os="`sw_vers -productName` `sw_vers -productVersion`"
+
 STATUS=0
-TEXT="Uptime: $uptime"
+TEXT="Uptime: $uptime - $os"