Module: check_mk
Branch: master
Commit: cf3717518ec74b8555e2efc279d010f9e9029d02
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cf3717518ec74b…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Mar 8 11:06:20 2016 +0100
mk_inventory.solaris: fix detection of global zone
Option -q on grep was missing
---
agents/plugins/mk_inventory.solaris | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/agents/plugins/mk_inventory.solaris b/agents/plugins/mk_inventory.solaris
index 1674674..fcfe2d3 100755
--- a/agents/plugins/mk_inventory.solaris
+++ b/agents/plugins/mk_inventory.solaris
@@ -50,7 +50,7 @@ then
echo "<<<solaris_uname:sep(61):persist($UNTIL)>>>"
uname -X
- if zoneadm list | grep -q global
+ if zoneadm list | grep global >/dev/null 2>&1
then
if type prtdiag > /dev/null; then
echo
"<<<solaris_prtdiag:sep(10):persist($UNTIL)>>>"