Module: check_mk
Branch: master
Commit: 25008b364f92a0616c4ae0dd3adc0d38d89adaf6
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=25008b364f92a0…
Author: Bernd Stroessenreuther <bs(a)mathias-kettner.de>
Date: Fri Jan 10 11:22:38 2014 +0100
emcvnx_disks: Disk slots reported to be empty are not inventorized
---
checks/emcvnx_disks | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/checks/emcvnx_disks b/checks/emcvnx_disks
index 7169b92..63cb7fb 100644
--- a/checks/emcvnx_disks
+++ b/checks/emcvnx_disks
@@ -130,7 +130,12 @@ def parse_emcvnx_disks(info):
def inventory_emcvnx_disks(info):
- return [ (disk, None) for disk in parse_emcvnx_disks(info).keys() ]
+ parsed = parse_emcvnx_disks(info)
+ inventory = []
+ for disk in parsed:
+ if parsed[disk]["state"] != "Empty":
+ inventory.append((disk, None))
+ return inventory
def check_emcvnx_disks(item, _no_params, info):