Module: check_mk
Branch: master
Commit: 236d4eed86303664bda0fbf743ba525af7cd89ba
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=236d4eed863036…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Wed Aug 1 15:16:23 2018 +0200
6392 FIX check_mk_agent.solaris: Fixed computing uptime
Change-Id: I497d69cdf64028093d74a8551b00a9474e08c821
---
.werks/6392 | 11 +++++++++++
agents/check_mk_agent.solaris | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/6392 b/.werks/6392
new file mode 100644
index 0000000..43318a3
--- /dev/null
+++ b/.werks/6392
@@ -0,0 +1,11 @@
+Title: check_mk_agent.solaris: Fixed computing uptime
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1533129338
+
+
diff --git a/agents/check_mk_agent.solaris b/agents/check_mk_agent.solaris
index a038367..b8dc0bc 100755
--- a/agents/check_mk_agent.solaris
+++ b/agents/check_mk_agent.solaris
@@ -303,7 +303,7 @@ fi
# /proc/uptime
# Simulated output of Linux /proc/uptime
echo '<<<uptime>>>'
-btime=$(`kstat '-p' 'unix:::boot_time' 2>&1|grep
'boot_time'|awk '{print $2}'`;)
+btime=$(kstat '-p' 'unix:::boot_time' 2>&1|grep
'boot_time'|awk '{print $2}';)
echo $btime