Module: check_mk
Branch: master
Commit: 33c5b05a8408f3cd60700f99f3de8fc2579041c6
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=33c5b05a8408f3…
Author: Moritz Kiemer <mo(a)mathias-kettner.de>
Date: Tue Jul 17 14:46:50 2018 +0200
solaris_mem: only discover if info is available
Change-Id: I03c36df90612f4985256a185e9d9d4c619ce277b
---
checks/solaris_mem | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/checks/solaris_mem b/checks/solaris_mem
index 5fc402e..21986da 100644
--- a/checks/solaris_mem
+++ b/checks/solaris_mem
@@ -68,7 +68,8 @@ def solaris_mem_to_kbytes(s):
def inventory_solaris_mem_used(parsed):
- return [(None, {})]
+ if parsed:
+ return [(None, {})]
def check_solaris_mem_used(_no_item, params, parsed):