Shorter off message for docker_ps
This commit is contained in:
parent
478ee68f89
commit
879d00775b
1 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ class Module(core.module.Module):
|
||||||
state = []
|
state = []
|
||||||
if self.__info == "OK - 0":
|
if self.__info == "OK - 0":
|
||||||
state.append("warning")
|
state.append("warning")
|
||||||
elif self.__info in ["n/a", "daemon off"]:
|
elif self.__info in ["n/a", "Off"]:
|
||||||
state.append("critical")
|
state.append("critical")
|
||||||
return state
|
return state
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ class Module(core.module.Module):
|
||||||
len(cli.containers.list(filters={"status": "running"}))
|
len(cli.containers.list(filters={"status": "running"}))
|
||||||
)
|
)
|
||||||
except ConnectionError:
|
except ConnectionError:
|
||||||
self.__info = "daemon off"
|
self.__info = "Off"
|
||||||
except Exception:
|
except Exception:
|
||||||
self.__info = "n/a"
|
self.__info = "n/a"
|
||||||
return self.__info
|
return self.__info
|
||||||
|
|
Loading…
Reference in a new issue