From 3ddcde1155b6c278d7775f52e9197bff47ff37d1 Mon Sep 17 00:00:00 2001 From: "Bala.FA" Date: Mon, 17 Mar 2014 15:39:44 +0530 Subject: constants: add host and service plugin status codes Change-Id: Ideb9975c73ebc7c7339fa4aac354a974f1e3921e Signed-off-by: Bala.FA Reviewed-on: https://cuckoo.blr.redhat.com:8443/17 Reviewed-by: Sahina Bose Reviewed-by: Shubhendu Tripathi --- glusternagios/utils.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'glusternagios/utils.py') diff --git a/glusternagios/utils.py b/glusternagios/utils.py index b4d77c6..b1bfe10 100644 --- a/glusternagios/utils.py +++ b/glusternagios/utils.py @@ -34,6 +34,32 @@ import errno import signal +class HostStatus: + UP = 'UP' + DOWN = 'DOWN' + UNREACHABLE = 'UNREACHABLE' + + +class HostStatusCode: + UP = 0 + DOWN = 1 + UNREACHABLE = 2 + + +class PluginStatus: + OK = 'OK' + WARNING = 'WARNING' + CRITICAL = 'CRITICAL' + UNKNOWN = 'UNKNOWN' + + +class PluginStatusCode: + OK = 0 + WARNING = 1 + CRITICAL = 2 + UNKNOWN = 3 + + class CommandPath(object): def __init__(self, name, *args): self.name = name -- cgit