Module: check_mk
Branch: master
Commit: 0c25a8449554ca58c5f73167ce10d797d1784231
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0c25a8449554ca…
Author: Mathias Kettner <mk(a)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