Module: check_mk
Branch: master
Commit: 9e345339400f74d452bce1d80ca7ddfa57934b65
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9e345339400f74…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Wed Jul 22 08:02:16 2015 +0200
removed additional info in check aix_hacmp_resources
---
checks/aix_hacmp_resources | 19 ++-----------------
1 file changed, 2 insertions(+), 17 deletions(-)
diff --git a/checks/aix_hacmp_resources b/checks/aix_hacmp_resources
index 2f343db..da125bb 100644
--- a/checks/aix_hacmp_resources
+++ b/checks/aix_hacmp_resources
@@ -43,7 +43,7 @@ def parse_aix_hacmp_resources(info):
parsed[line[0]] = [ (line[2], line[1].lower()) ]
else:
parsed[line[0]].append(
- tuple( [line[2], line[1].lower()] )
+ (line[2], line[1].lower())
)
return parsed
@@ -54,27 +54,12 @@ def inventory_aix_hacmp_resources(parsed):
def check_aix_hacmp_resources(item, params, parsed):
- resource_stats_info = {
- 'online' : "",
- 'offline' : " (unmet dependencies or user requested)",
- 'acquiring' : " (coming up on one of the nodes)",
- 'releasing' : " (in the process of being released)",
- 'error' : "",
- 'unmanaged' : " (currently not managed)",
- 'unknown' : " (status cannot be attained)",
- }
-
if item in parsed:
resource_stats = []
infotext = ""
for node_name, resource_status in parsed[item]:
resource_stats.append(resource_status)
- infotext += resource_status
-
- if resource_status in resource_stats_info:
- infotext += resource_stats_info[resource_status]
-
- infotext += " on node %s, " % node_name
+ infotext += "%s on node %s, " % (resource_status, node_name)
if 'online' in resource_stats:
state = 0