Beispiel #1
0
 def __init__(self, id: str):
     Check.__init__(self, id, 'CheckRPC', 'nagios_plugins_rpc')
     self.__host = None
     self.__command = None
     self.__port = None
     self.__version = None
     self.add_service_group(ServiceGroup.create('rpc'))
 def __init__(self, id: str):
     Check.__init__(self, id, 'CheckPathExists',
                    'monitoring_plugins_path_exists')
     self.__file = None
     self.__dir = None
     self.__invert = False
     self.add_service_group(ServiceGroup.create('path_exists'))
 def __init__(self, id: str):
     Check.__init__(self, id, 'CheckSNMP', 'nagios_plugins_snmp')
     self.__over_ipv4 = False
     self.__over_ipv6 = False
     self.__host = None
     self.__port = 161
     self.__snmp_getnext = False
     self.__protocol = None
     self.__context = None
     self.__seclevel = None
     self.__authproto = None
     self.__privproto = None
     self.__community = None
     self.__username = None
     self.__authpassword = None
     self.__privpassword = None
     self.__oids = None
     self.__delimiter = None
     self.__warning = None
     self.__critical = None
     self.__rate = False
     self.__rate_multiplier = None
     self.__offset = None
     self.__string = None
     self.__ereg = None
     self.__invert = False
     self.__label = None
     self.__units = None
     self.__output_delimiter = None
     self.__timeout = 10
     self.__retries = 2
     self.__perf_oids = False
     self.add_service_group(ServiceGroup.create('snmp'))
     self.add_service_group(ServiceGroup.create('network'))
 def __init__(self, id: str):
     Check.__init__(self, id, 'CheckHPJD', 'nagios_plugins_hpjd')
     self.__host = None
     self.__community = None
     self.__paper_check = False
     self.__port = None
     self.add_service_group(ServiceGroup.create('hpjd'))
Beispiel #5
0
 def __init__(self, id: str):
     Check.__init__(self, id, 'CheckBreeze', 'nagios_plugins_breeze')
     self.__host = None
     self.__warning = None
     self.__critical = None
     self.__community = None
     self.add_service_group(ServiceGroup.create('breeze'))
 def __init__(self, id: str):
     Check.__init__(self, id, 'CheckIrcd', 'nagios_plugins_ircd')
     self.__host = None
     self.__warning = None
     self.__critical = None
     self.__port = None
     self.add_service_group(ServiceGroup.create('ircd'))
Beispiel #7
0
 def __init__(self, id: str):
     Check.__init__(self, id, 'CheckUDP', 'nagios_plugins_udp')
     self.__host = None
     self.__port = None
     self.__ipv4 = False
     self.__ipv6 = False
     self.__escape = False
     self.__send = None
     self.__expect = None
     self.__all = False
     self.__quit = None
     self.__refuse_state = None
     self.__mismatch_state = None
     self.__jail = False
     self.__maxbytes = None
     self.__delay = None
     self.__cert_warning = 29
     self.__cert_critical = 15
     self.__cert = True
     self.__use_ssl = False
     self.__sni = None
     self.__warning_time = None
     self.__critical_time = None
     self.__timeout = 10
     self.add_service_group(ServiceGroup.create('udp'))
Beispiel #8
0
    def __init__(self: T, id: str):
        Check.__init__(self, id, 'CheckProxyRequests',
                       'monitoring_plugins_webserver_apache2_proxy_requests')
        self.add_service_group(ServiceGroup.create('security'))
        self.add_service_group(ServiceGroup.create('webserver'))
        self.set_check_interval('24h')

        self.__allow: List[str] = []
 def __init__(self, id: str):
     Check.__init__(self, id, 'CheckLoad', 'nagios_plugins_load')
     self.__warning = '10,8,6'
     self.__critical = '15,12,9'
     self.__percpu = True
     self.__procs_to_show = None
     self.add_service_group(ServiceGroup.create('load'))
     self.add_service_group(ServiceGroup.create('system_health'))
Beispiel #10
0
 def __init__(self, id: str):
     Check.__init__(self, id, 'CheckGroupMembers',
                    'monitoring_plugins_group_members')
     self.__group = 'sudo'
     self.__users = []
     self.set_check_interval('15m')
     self.add_service_group(ServiceGroup.create('security'))
     self.add_service_group(ServiceGroup.create('group_members'))
 def __init__(self, id: str):
     Check.__init__(self, id, 'CheckSWAP', 'nagios_plugins_swap')
     self.__warning = 30
     self.__critical = 15
     self.__allswaps = False
     self.__no_swap = None
     self.add_service_group(ServiceGroup.create('swap'))
     self.add_service_group(ServiceGroup.create('system_health'))
 def __init__(self, id: str):
     Check.__init__(self, id, 'CheckRebootRequired',
                    'monitoring_plugins_reboot_required')
     self.__exit_critical = False
     self.__ignore_scheduled = True
     self.set_check_interval('15m')
     self.add_service_group(ServiceGroup.create('reboot'))
     self.add_service_group(ServiceGroup.create('system_health'))
Beispiel #13
0
 def __init__(self, id: str):
     Check.__init__(self, id, 'CheckMRTGtraf', 'nagios_plugins_mrt_gtraf')
     self.__file = None
     self.__aggregation = None
     self.__warning = None
     self.__critical = None
     self.__expires = None
     self.add_service_group(ServiceGroup.create('mrt_gtraf'))
Beispiel #14
0
 def __init__(self, id: str):
     Check.__init__(self, id, 'CheckFileAge', 'nagios_plugins_file_age')
     self.__file = None
     self.__warning_seconds = None
     self.__critical_seconds = None
     self.__warning_size = None
     self.__critical_size = None
     self.__ignore_missing = False
     self.add_service_group(ServiceGroup.create('file_age'))
Beispiel #15
0
 def __init__(self, id: str):
     Check.__init__(self, id, 'CheckMailq', 'nagios_plugins_mailq')
     self.__warning = None
     self.__critical = None
     self.__warning_same_domain = None
     self.__critical_same_domain = None
     self.__sudo = False
     self.add_service_group(ServiceGroup.create('mailq'))
     self.add_service_group(ServiceGroup.create('mail'))
Beispiel #16
0
 def __init__(self, id: str):
     Check.__init__(self, id, 'CheckUptime', 'nagios_plugins_uptime')
     self.__warning = None
     self.__critical = None
     self.__for = None
     self.__since = None
     self.set_check_interval('15m')
     self.add_service_group(ServiceGroup.create('uptime'))
     self.add_service_group(ServiceGroup.create('system_health'))
Beispiel #17
0
 def __init__(self, id: str):
     Check.__init__(self, id, 'CheckDockerLogin',
                    'monitoring_plugins_docker_login')
     self.__user = None
     self.__credentials = None
     self.__address = None
     self.__port = None
     self.__as_sudo = False
     self.add_service_group(ServiceGroup.create('docker'))
Beispiel #18
0
 def __init__(self, id: str):
     Check.__init__(self, id, 'CheckDenyTlsVersion', 'monitoring_plugins_deny_tls_version')
     self.__protocol = None
     self.__domain = None
     self.__address = None
     self.set_check_interval('15m')
     self.add_service_group(ServiceGroup.create('security'))
     self.add_service_group(ServiceGroup.create('webserver'))
     self.add_service_group(ServiceGroup.create('tls'))
 def __init__(self, id: str):
     Check.__init__(self, id, 'CheckDS18B20',
                    'monitoring_plugins_sensor_ds18b20')
     self.__device = None
     self.__path = None
     self.__name = None
     self.__warning = None
     self.__critical = None
     self.add_service_group(ServiceGroup.create('temperature'))
Beispiel #20
0
 def __init__(self, id: str):
     Check.__init__(self, id, 'CheckSSH', 'nagios_plugins_ssh')
     self.__hostname = None
     self.__port = None
     self.__timeout = None
     self.__remote_version = None
     self.__remote_protocol = None
     self.__force_ipv4 = None
     self.__force_ipv6 = None
     self.add_service_group(ServiceGroup.create('sshd'))
Beispiel #21
0
 def __init__(self, id: str):
     Check.__init__(self, id, 'CheckSPF', 'monitoring_plugins_spf')
     self.__domain = None
     self.__expected = None
     self.__resolver = '1.1.1.1'
     self.__timeout = 10
     self.set_check_interval('15m')
     self.add_service_group(ServiceGroup.create('security'))
     self.add_service_group(ServiceGroup.create('dns'))
     self.add_service_group(ServiceGroup.create('spf'))
 def __init__(self, id: str):
     Check.__init__(self, id, 'CheckDHCP', 'nagios_plugins_dhcp')
     self.__server = None
     self.__requested_ip = None
     self.__timeout = 10
     self.__interface = None
     self.__mac = None
     self.__unicast = False
     self.add_service_group(ServiceGroup.create('dhcp'))
     self.add_service_group(ServiceGroup.create('network'))
Beispiel #23
0
 def __init__(self: T, id: str, class_name: str, var_name: str):
     Check.__init__(self, id, class_name, var_name)
     self.__username: Union[str, None] = None
     self.__password: Union[str, None] = None
     self.__host: Union[str, None] = None
     self.__version: Union[str, None] = '3'
     self.__community: Union[str, None] = None
     self.__timeout: int = 30
     self.set_timeout(self.__timeout)
     self.add_service_group(ServiceGroup.create('snmp'))
Beispiel #24
0
 def __init__(self, id: str):
     Check.__init__(self, id, 'CheckPing', 'nagios_plugins_ping')
     self.__warning_percent_lost = 5
     self.__warning_average_time = 100
     self.__critical_percent_lost = 10
     self.__critical_average_time = 250
     self.__timeout = 10
     self.__packets = 4
     self.__address = None
     self.add_service_group(ServiceGroup.create('ping'))
     self.add_service_group(ServiceGroup.create('network'))
Beispiel #25
0
 def __init__(self, id: str):
     Check.__init__(self, id, 'CheckDiskSMB', 'nagios_plugins_disk_smb')
     self.__host = None
     self.__warning = 85
     self.__critical = 95
     self.__share = None
     self.__workgroup = None
     self.__ip = None
     self.__user = None
     self.__password = None
     self.__port = 445
     self.add_service_group(ServiceGroup.create('disk'))
Beispiel #26
0
 def __init__(self, id: str):
     Check.__init__(self, id, 'CheckExistingUsers',
                    'monitoring_plugins_existing_users')
     self.__uid_min = None
     self.__uid_max = None
     self.__users = ["root"]
     self.__shell_filter = [
         "/bin/false", "/bin/sync", "/sbin/nologin", "/usr/sbin/nologin"
     ]
     self.set_check_interval('15m')
     self.add_service_group(ServiceGroup.create('security'))
     self.add_service_group(ServiceGroup.create('existing_user'))
Beispiel #27
0
    def __init__(self, id: str):
        Check.__init__(self, id, 'CheckStorcenter',
                       'claudio_kuenzler_storcenter')
        self.__host: Union[str, None] = None
        self.__user: Union[str, None] = None
        self.__password: Union[str, None] = None

        self.__type: Union[str, None] = None
        self.__warning: Union[int, None] = None
        self.__critical: Union[int, None] = None

        self.add_service_group(ServiceGroup.create('storcenter'))
Beispiel #28
0
 def __init__(self, id: str):
     Check.__init__(self, id, 'CheckUPS', 'nagios_plugins_ups')
     self.__host = None
     self.__port = 3493
     self.__ups = None
     self.__temperature = True
     self.__variable = None
     self.__timeout = None
     self.__warning = None
     self.__critical = None
     self.add_service_group(ServiceGroup.create('ups'))
     self.add_service_group(ServiceGroup.create('system_health'))
 def __init__(self, id: str):
     Check.__init__(self, id, 'CheckDNSSECExpire', 'monitoring_plugins_dnssec_expiry')
     self.__warning = 10
     self.__critical = 5
     self.__dns_domains = []
     self.__resolver = '1.1.1.1'
     self.__ignore_root = True
     self.__ignore_tld = True
     self.__timeout = 30
     self.set_check_interval('15m')
     self.add_service_group(ServiceGroup.create('security'))
     self.add_service_group(ServiceGroup.create('dns'))
     self.add_service_group(ServiceGroup.create('dnssec'))
 def __init__(self, id: str):
     Check.__init__(self, id, 'CheckRadius', 'nagios_plugins_radius')
     self.__host = None
     self.__port = 1645
     self.__username = None
     self.__password = None
     self.__nas_id = None
     self.__nas_ip = None
     self.__config_file = None
     self.__expect = None
     self.__retries = 2
     self.__timeout = 10
     self.add_service_group(ServiceGroup.create('radius'))