Module: check_mk
Branch: master
Commit: 1965c92bd611e796fc249f676b8afad1af73bdbe
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1965c92bd611e7…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed May 2 07:52:01 2018 +0200
Fixed non working docker display hints; Added some more
Change-Id: Iff4f29fe12125901634f510e43ce6b67bb097616
---
web/plugins/views/inventory.py | 41 ++++++++++++++++++++++++++++++++---------
1 file changed, 32 insertions(+), 9 deletions(-)
diff --git a/web/plugins/views/inventory.py b/web/plugins/views/inventory.py
index 3d00f97..5c1b5ef 100644
--- a/web/plugins/views/inventory.py
+++ b/web/plugins/views/inventory.py
@@ -761,34 +761,57 @@ inventory_displayhints.update({
".software.applications.docker.images:*.amount_containers" : {
"title" : _("# Containers"), },
+ ".software.applications.docker.networks.*.": {
+ "title": "Network %s",
+ },
+ ".software.applications.docker.networks.*.network_id": {
+ "title": "Network ID",
+ },
+
".software.applications.docker.container.": {
"title" : _("Container"),
},
".software.applications.docker.container.node_name": {
"title" : _("Node name"),
},
+ ".software.applications.docker.container.ports:": {
+ "title" : _("Ports"),
+ "keyorder" : [ "port", "protocol",
"host_addresses" ],
+ },
+
".software.applications.docker.container.networks:": {
"title" : _("Networks"),
"keyorder" : [ "name", "ip_address",
"ip_prefixlen", "gateway",
"mac_address", "network_id" ],
},
- ".software.applications.docker.container.ports:": {
- "title" : _("Ports"),
- "keyorder" : [ "port", "protocol",
"host_addresses" ],
+ ".software.applications.docker.container.networks:*.ip_address": {
+ "title" : _("IP address"),
},
-
- ".software.applications.docker.networks:*.": {
- "title": "Network %d",
+ ".software.applications.docker.container.networks:*.ip_prefixlen": {
+ "title" : _("IP Prefix"),
+ },
+ ".software.applications.docker.container.networks:*.mac_address": {
+ "title" : _("MAC address"),
},
- ".software.applications.docker.networks:*.containers:": {
+ ".software.applications.docker.container.networks:*.network_id": {
+ "title" : _("Network ID"),
+ },
+
+ ".software.applications.docker.networks.*.containers:": {
"keyorder" : [ "name", "id",
"ipv4_address", "ipv6_address", "mac_address" ],
},
- ".software.applications.docker.networks:*.containers:*.ipv4_address": {
+ ".software.applications.docker.networks.*.containers:*.id": {
+ "title" : _("ID"),
+ },
+ ".software.applications.docker.networks.*.containers:*.ipv4_address": {
"title" : _("IPv4 address"),
},
- ".software.applications.docker.networks:*.containers:*.ipv6_address": {
+ ".software.applications.docker.networks.*.containers:*.ipv6_address": {
"title" : _("IPv6 address"),
},
+ ".software.applications.docker.networks.*.containers:*.mac_address": {
+ "title" : _("MAC address"),
+ },
".software.applications.citrix." : {
"title" : _("Citrix") },
".software.applications.citrix.controller." : {
"title" : _("Controller") },