diff options
author | Bala.FA <barumuga@redhat.com> | 2014-03-17 15:39:44 +0530 |
---|---|---|
committer | Bala.FA <barumuga@redhat.com> | 2014-04-28 16:20:46 +0530 |
commit | 3ddcde1155b6c278d7775f52e9197bff47ff37d1 (patch) | |
tree | 178cb2d0e096c043beb403d7896115284a2d639d | |
parent | 1b8e982332b81644c3dc90d0fa3367dd4ff6f53c (diff) |
constants: add host and service plugin status codes
Change-Id: Ideb9975c73ebc7c7339fa4aac354a974f1e3921e
Signed-off-by: Bala.FA <barumuga@redhat.com>
Reviewed-on: https://cuckoo.blr.redhat.com:8443/17
Reviewed-by: Sahina Bose <sabose@redhat.com>
Reviewed-by: Shubhendu Tripathi <shtripat@redhat.com>
-rw-r--r-- | glusternagios/utils.py | 26 |
1 files changed, 26 insertions, 0 deletions
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 |