summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--glusternagios/utils.py26
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