예제 #1
0
    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"}
예제 #2
0
    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'}
예제 #3
0
파일: Ninja.py 프로젝트: sjas/Nagstamon
    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"]
예제 #4
0
파일: Centreon.py 프로젝트: sjas/Nagstamon
    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"]
예제 #5
0
    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"]
예제 #6
0
파일: Ninja.py 프로젝트: ageric/Nagstamon
    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"]
예제 #7
0
    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
예제 #8
0
파일: Zabbix.py 프로젝트: clark42/Nagstamon
    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
예제 #9
0
    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)
예제 #10
0
    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"]      
예제 #11
0
    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"]
예제 #12
0
    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)
예제 #13
0
    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
예제 #14
0
파일: Thruk.py 프로젝트: nono-gdv/Nagstamon
    def __init__(self, **kwds):
        GenericServer.__init__(self, **kwds)

        # flag for newer cookie authentication
        self.CookieAuth = False
예제 #15
0
파일: Thruk.py 프로젝트: sjas/Nagstamon
    def __init__(self, **kwds):
        GenericServer.__init__(self, **kwds)

        # flag for newer cookie authentication
        self.CookieAuth = False
예제 #16
0
파일: Dude.py 프로젝트: gquadro/Nagstamon
    def __init__(self, **kwds):
        GenericServer.__init__(self, **kwds)
	self.MENU_ACTIONS = []
예제 #17
0
    def __init__(self, **kwds):
        GenericServer.__init__(self, **kwds)

        self.ws = None