Module: check_mk
Branch: master
Commit: 3b1b5e052e6b5ee5be2b2311d61b01a2695e126e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3b1b5e052e6b5e…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Apr 10 11:46:57 2018 +0200
Cleaned up descriptions of docker checks
Change-Id: Id8a5a005b603cfd1c61e29dcb48390b3e171fd1e
---
checks/docker_container_status | 4 ++--
checks/docker_node_disk_usage | 2 +-
checks/docker_node_info | 4 ++--
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/checks/docker_container_status b/checks/docker_container_status
index 603818b..f1cb43d 100644
--- a/checks/docker_container_status
+++ b/checks/docker_container_status
@@ -68,7 +68,7 @@ def check_docker_container_status_health(_no_item, params, parsed):
check_info["docker_container_status.health"] = {
"inventory_function" : inventory_docker_container_status_health,
"check_function" : check_docker_container_status_health,
- "service_description" : "Docker Container Health",
+ "service_description" : "Docker container health",
}
#.
@@ -104,5 +104,5 @@ check_info['docker_container_status'] = {
'parse_function' : parse_docker_container_status,
'inventory_function' : inventory_docker_container_status,
'check_function' : check_docker_container_status,
- 'service_description' : 'Docker Container Status',
+ 'service_description' : 'Docker container status',
}
diff --git a/checks/docker_node_disk_usage b/checks/docker_node_disk_usage
index edc0cbd..0038a6d 100644
--- a/checks/docker_node_disk_usage
+++ b/checks/docker_node_disk_usage
@@ -32,7 +32,7 @@ def parse_docker_node_disk_usage(info):
for line in info:
data = json.loads(",".join(line))
- type_ = data.pop('Type')
+ type_ = data.pop('Type').lower()
parsed[type_] = data
data['Active'] = int(data['Active']) if data['Active']
else 0
diff --git a/checks/docker_node_info b/checks/docker_node_info
index 4c0d5b8..5f72551 100644
--- a/checks/docker_node_info
+++ b/checks/docker_node_info
@@ -50,7 +50,7 @@ check_info['docker_node_info'] = {
'parse_function' : parse_docker_node_info,
'inventory_function' : inventory_docker_node_info,
'check_function' : check_docker_node_info,
- 'service_description' : 'Docker Node Info',
+ 'service_description' : 'Docker node info',
}
@@ -96,7 +96,7 @@ def check_docker_node_containers(item, params, parsed):
check_info["docker_node_info.containers"] = {
"inventory_function": inventory_docker_node_containers,
"check_function": check_docker_node_containers,
- "service_description": "Docker Containers",
+ "service_description": "Docker containers",
"has_perfdata": True,
"group": "docker_node_containers",
}