From 879d00775b1f62b7e00ef320c8589f375cf5e78f Mon Sep 17 00:00:00 2001 From: Martin Date: Thu, 7 May 2020 07:06:27 +0200 Subject: [PATCH] Shorter off message for docker_ps --- modules/contrib/docker_ps.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/contrib/docker_ps.py b/modules/contrib/docker_ps.py index 7ece29c..cb2a107 100644 --- a/modules/contrib/docker_ps.py +++ b/modules/contrib/docker_ps.py @@ -26,7 +26,7 @@ class Module(core.module.Module): state = [] if self.__info == "OK - 0": state.append("warning") - elif self.__info in ["n/a", "daemon off"]: + elif self.__info in ["n/a", "Off"]: state.append("critical") return state @@ -38,7 +38,7 @@ class Module(core.module.Module): len(cli.containers.list(filters={"status": "running"})) ) except ConnectionError: - self.__info = "daemon off" + self.__info = "Off" except Exception: self.__info = "n/a" return self.__info