示例#1
0
    def apply(self):
        if self.__inherit:
            DefaultLocalChecks.apply(self)

        for server in DefaultLocalChecks.get_servers(self):
            if True is self.__check_bind_running:
                self.create_running_check_arguments('bind', 'named', server,
                                                    ['dns'])
    def apply(self: T):
        if self.__inherit:
            DefaultLocalChecks.apply(self)

        for server in DefaultLocalChecks.get_servers(self):
            if True is self.__check_apache2_proxy_requests:
                check = CheckProxyRequests.create('proxy_requests_' +
                                                  server.get_id())
                self.apply_check(check, server)
示例#3
0
 def __init__(self,
              servers=[],
              notifications=[],
              sudoers=[],
              additional_users=[]):
     DefaultLocalChecks.__init__(self, servers, notifications, sudoers,
                                 additional_users)
     self.__check_bind_running = True
     self.__inherit = True
    def __init__(self: T,
                 servers=[],
                 notifications=[],
                 sudoers=[],
                 additional_users=[]):
        DefaultLocalChecks.__init__(self, servers, notifications, sudoers,
                                    additional_users)
        self.__inherit = True

        self.__check_apache2_proxy_requests = True
    def apply(self):
        if self.__inherit:
            DefaultLocalChecks.apply(self)

        for server in DefaultLocalChecks.get_servers(self):
            if True is self.__check_docker_running:
                self.create_running_check_arguments('docker', 'dockerd',
                                                    server, ['docker'])

            if True is self.__check_containerd_running:
                self.create_running_check_arguments('containerd', 'containerd',
                                                    server, ['docker'])
示例#6
0
 def __init__(self,
              servers=[],
              notifications=[],
              sudoers=[],
              additional_users=[]):
     DefaultLocalChecks.__init__(self, servers, notifications, sudoers,
                                 additional_users)
     self.__check_amavisd_running = True
     self.__check_dovecot_running = True
     self.__check_postgrey_running = True
     self.__check_opendkim_running = True
     self.__inherit = True
     DefaultLocalChecks.check_freshclam_running(self, True)
     DefaultLocalChecks.check_clamd_running(self, True)
     DefaultLocalChecks.check_postfix_running(self, True)
示例#7
0
    def apply(self):
        if self.__inherit:
            DefaultLocalChecks.apply(self)

        for server in DefaultLocalChecks.get_servers(self):
            if True is self.__check_amavisd_running:
                self.create_running_check_arguments('amavisd', 'amavisd',
                                                    server, ['mail'])

            if True is self.__check_dovecot_running:
                self.create_running_check('dovecot', 'dovecot', server,
                                          ['mail'])

            if True is self.__check_postgrey_running:
                self.create_running_check('postgrey', 'postgrey', server,
                                          ['mail'])

            if True is self.__check_opendkim_running:
                self.create_running_check('opendkim', 'opendkim', server,
                                          ['mail'])

            # force checking if enabled and not inherited
            if True is DefaultLocalChecks.is_checking_postfix_running(
                    self) and not self.__inherit:
                self.create_running_check_arguments('postfix', 'postfix',
                                                    server, ['mail'])

            if True is DefaultLocalChecks.is_checking_freshclam_running(
                    self) and not self.__inherit:
                self.create_running_check('freshclam', 'freshclam', server,
                                          ['security', 'antivirus'])

            if True is DefaultLocalChecks.is_checking_clamd_running(
                    self) and not self.__inherit:
                self.create_running_check('clamd', 'clamd', server,
                                          ['security', 'antivirus'])