[checkmk-commits] Check_MK Git: check_mk: zpool_status on Solaris: run cached in order to avoid hanging processes

Mathias Kettner mk at mathias-kettner.de
Wed Aug 20 09:42:45 CEST 2014


Module: check_mk
Branch: master
Commit: 0c25a8449554ca58c5f73167ce10d797d1784231
URL:    http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0c25a8449554ca58c5f73167ce10d797d1784231

Author: Mathias Kettner <mk at mathias-kettner.de>
Date:   Wed Aug 20 09:42:35 2014 +0200

zpool_status on Solaris: run cached in order to avoid hanging processes

---

 agents/check_mk_agent.solaris |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/agents/check_mk_agent.solaris b/agents/check_mk_agent.solaris
index c61d226..61eac42 100644
--- a/agents/check_mk_agent.solaris
+++ b/agents/check_mk_agent.solaris
@@ -188,8 +188,7 @@ echo $load 1/$ps $$ $procs
 
 # zpool status
 if [ -x /sbin/zpool ]; then
-    echo "<<<zpool_status>>>"
-    /sbin/zpool status -x
+    run_cached -s zpool_status 120 "/sbin/zpool status -x"
 fi
 
 



More information about the checkmk-commits mailing list