Module: check_mk
Branch: master
Commit: 7070e1c6e489b41a66a17baf9a5bb37eababee7f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7070e1c6e489b4…
Author: Goetz Golla <gg(a)mathias-kettner.de>
Date: Tue Jul 8 22:21:57 2014 +0200
added disk-id/signature to disk inventory
---
inventory/win_disks | 3 ++-
web/plugins/views/inventory.py | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/inventory/win_disks b/inventory/win_disks
index 096d91f..d19e431 100644
--- a/inventory/win_disks
+++ b/inventory/win_disks
@@ -58,7 +58,6 @@
# SCSITargetId : 0
def inv_win_disks(info):
- print info
node = inv_tree("hardware.storage.disks:")
array = {}
for varname, value in info:
@@ -79,6 +78,8 @@ def inv_win_disks(info):
array["size"] = int(value)
elif varname == "MediaType":
array["type"] = value
+ elif varname == "Signature":
+ array["signature"] = int(value)
array["local"] = True
node.append(array)
diff --git a/web/plugins/views/inventory.py b/web/plugins/views/inventory.py
index ddb0ee5..19c18a2 100644
--- a/web/plugins/views/inventory.py
+++ b/web/plugins/views/inventory.py
@@ -574,6 +574,7 @@ inventory_displayhints.update({
".hardware.storage." : { "title" :
_("Storage") },
".hardware.storage.disks:" : { "title" :
_("Block Devices") },
".hardware.storage.disks:*." : { "title" :
_("Block Device %d") },
+ ".hardware.storage.disks:*.signature" : { "title" :
_("Disk ID") },
".hardware.storage.disks:*.vendor" : { "title" :
_("Vendor") },
".hardware.storage.disks:*.local" : { "title" :
_("Local") },
".hardware.storage.disks:*.bus" : { "title" :
_("Bus") },