Module: check_mk
Branch: master
Commit: 632ac903839f8a08af83087421556795418c6256
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=632ac903839f8a…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Wed Feb 3 09:40:51 2016 +0100
fixed exception related to WK#2813
---
agents/special/agent_netapp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/agents/special/agent_netapp b/agents/special/agent_netapp
index 4908a3d..b54e2b7 100755
--- a/agents/special/agent_netapp
+++ b/agents/special/agent_netapp
@@ -678,12 +678,12 @@ else:
dict_reserved["size-total"] =
volume.child_get_string("size-total")
dict_reserved["percent-reserved"] =
volume_snapshots_reserved.child_get_string("percent-reserved")
dict_reserved["blocks-reserved"] =
volume_snapshots_reserved.child_get_string("blocks-reserved")
- snapshots_elements = volume_snapshots.child_get("snapshots")
+ volume_snapshots = server.invoke("snapshot-list-info",
"target-name", name, "target-type", "volume")
+ snapshots_elements = volume_snapshots.child_get("snapshots")
if snapshots_elements:
- volume_snapshots = server.invoke("snapshot-list-info",
"target-name", name, "target-type", "volume")
print format_dict(dict_reserved, prefix = "volume_snapshot %s" %
name, as_line = True)
- print format_config(volume_snapshots.child_get("snapshots"),
"volume_snapshot", name,
+ print format_config(snapshot_elements, "volume_snapshot", name,
config_report = ["volume_snapshot",
"percentage-of-total-blocks", "cumulative-total"])