def __init__(self, **kwds): GenericServer.__init__(self, **kwds) # Entries for monitor default actions in context menu self.MENU_ACTIONS = ["Monitor", "Recheck", "Acknowledge", "Downtime"] self.STATUS_SVC_MAPPING = {"0": "OK", "1": "WARNING", "2": "CRITICAL", "3": "UNKNOWN"} self.STATUS_HOST_MAPPING = {"0": "UP", "1": "DOWN", "2": "UNREACHABLE"}
def __init__(self, **kwds): GenericServer.__init__(self, **kwds) # Entries for monitor default actions in context menu self.MENU_ACTIONS = ["Monitor", "Recheck", "Acknowledge", "Downtime"] self.STATUS_SVC_MAPPING = {'0':'OK', '1':'WARNING', '2':'CRITICAL', '3':'UNKNOWN'} self.STATUS_HOST_MAPPING = {'0':'UP', '1':'DOWN', '2':'UNREACHABLE'}
def __init__(self, **kwds): GenericServer.__init__(self, **kwds) # dictionary to translate status bitmaps on webinterface into status flags # this are defaults from Nagios # Entries for monitor default actions in context menu self.MENU_ACTIONS = ["Monitor", "Recheck", "Acknowledge", "Downtime"]
def __init__(self, **kwds): # add all keywords to object, every mode searchs inside for its favorite arguments/keywords for k in kwds: self.__dict__[k] = kwds[k] GenericServer.__init__(self, **kwds) # Entries for monitor default actions in context menu self.MENU_ACTIONS = ["Monitor", "Recheck", "Acknowledge", "Downtime"]
def __init__(self, **kwds): GenericServer.__init__(self, **kwds) # Prepare all urls needed by nagstamon - self.urls = {} self.statemap = {} # Entries for monitor default actions in context menu self.MENU_ACTIONS = ["Recheck", "Acknowledge", "Downtime"] self.username = self.conf.servers[self.get_name()].username self.password = self.conf.servers[self.get_name()].password
def __init__(self, **kwds): # add all keywords to object, every mode searchs inside for its favorite arguments/keywords for k in kwds: self.__dict__[k] = kwds[k] GenericServer.__init__(self, **kwds) # Entries for monitor default actions in context menu self.MENU_ACTIONS = ["Recheck", "Acknowledge", "Downtime"] # cache MD5 username + password to reduce load self.MD5_username = Actions.MD5ify(self.conf.servers[self.get_name()].username) self.MD5_password = Actions.MD5ify(self.conf.servers[self.get_name()].password)
def __init__(self, **kwds): GenericServer.__init__(self, **kwds) # dictionary to translate status bitmaps on webinterface into status flags # this are defaults from Nagios self.STATUS_MAPPING = { "acknowledged.png" : "acknowledged",\ "active-checks-disabled.png" : "passiveonly",\ "notify-disabled.png" : "notifications_disabled",\ "scheduled_downtime.png" : "scheduled_downtime",\ "flapping.gif" : "flapping" } # Entries for monitor default actions in context menu self.MENU_ACTIONS = ["Recheck", "Acknowledge", "Downtime"]
def __init__(self, **kwds): # add all keywords to object, every mode searchs inside for its favorite arguments/keywords for k in kwds: self.__dict__[k] = kwds[k] GenericServer.__init__(self, **kwds) # Entries for monitor default actions in context menu self.MENU_ACTIONS = ["Recheck", "Acknowledge", "Downtime"] # cache MD5 username + password to reduce load self.MD5_username = Actions.MD5ify( self.conf.servers[self.get_name()].username) self.MD5_password = Actions.MD5ify( self.conf.servers[self.get_name()].password)
def __init__(self, **kwds): GenericServer.__init__(self, **kwds) self.States = ["UP", "UNKNOWN", "WARNING", "CRITICAL", "UNREACHABLE", "DOWN", "CRITICAL", "HIGH", "AVERAGE"] self.nagitems_filtered = { "services": {"CRITICAL": [], "HIGH": [], "AVERAGE": [], "WARNING": [], "INFORMATION": [], "UNKNOWN": []}, "hosts": {"DOWN": [], "UNREACHABLE": []}, } # Prepare all urls needed by nagstamon - self.urls = {} self.statemap = {} # Entries for monitor default actions in context menu self.MENU_ACTIONS = ["Recheck", "Acknowledge", "Downtime"] self.username = self.conf.servers[self.get_name()].username self.password = self.conf.servers[self.get_name()].password self.min_severity = self.conf.servers[self.get_name()].min_severity
def __init__(self, **kwds): GenericServer.__init__(self, **kwds) # flag for newer cookie authentication self.CookieAuth = False
def __init__(self, **kwds): GenericServer.__init__(self, **kwds) self.MENU_ACTIONS = []
def __init__(self, **kwds): GenericServer.__init__(self, **kwds) self.ws = None