Module: check_mk
Branch: master
Commit: 05b03b7b4effb4ad4f0ff4516a451ae833976752
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=05b03b7b4effb4…
Author: Bernd Stroessenreuther <bs(a)mathias-kettner.de>
Date: Mon Apr 7 15:56:53 2014 +0200
agent_ibmsvc: a version additionally calling lsdrive
---
agents/special/agent_ibmsvc | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/agents/special/agent_ibmsvc b/agents/special/agent_ibmsvc
index 4a61a04..6a3e64f 100755
--- a/agents/special/agent_ibmsvc
+++ b/agents/special/agent_ibmsvc
@@ -163,6 +163,14 @@ for module in command_options.keys():
else:
cmd += "%s -nohdr -delim :;" % module
+ # in these 2 sections we need to run the lsdrive command additionaly
+ # to find out if there are drives. Only if there are some, the drives
+ # checks need to be created by inventory
+ if module in [ "lsnodestats", "lssystemstats" ]:
+ cmd += "echo \[lsdrive start\];"
+ cmd += "lsdrive -delim : -nohdr;"
+ cmd += "echo \[lsdrive end\];"
+
cmd += "'"
if opt_debug: