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)
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'])
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'])