# Written by Checkmk store active_checks.setdefault('cmk_inv', []) active_checks['cmk_inv'] = [ {'id': '078cbbf1-dfcb-4a0e-863c-46ba5b373e53', 'value': {'status_data_inventory': True}, 'condition': {'host_labels': {'cmk/docker_object': 'node'}}}, ] + active_checks['cmk_inv'] active_checks.setdefault('http', []) active_checks['http'] = [ {'id': '5a3560c3-48c1-4834-96a9-cb41869fccfb', 'value': {'name': 'Web Check', 'host': {'address': '192.168.0.100', 'port': 443}, 'mode': ('url', {'uri': '/PRESENTATION/HTML/TOP/INDEX.HTML', 'ssl': 'auto', 'urlize': True})}, 'condition': {'host_name': ['epson-xp-8600.realm.local']}, 'options': {'description': 'check webserver status'}}, {'id': '00472ca8-df94-4bb2-9dde-e0c52d11bae8', 'value': {'name': 'Web Check Gitea', 'host': {'address': 'gitea.realm.local', 'port': 443}, 'mode': ('url', {'ssl': 'auto', 'urlize': True})}, 'condition': {'host_name': ['serviceraspi.realm.local']}, 'options': {'description': 'check gitea status'}}, {'id': 'cd277099-1fa8-4969-af8e-8a439a04c28c', 'value': {'name': 'Web Check ADGuard', 'host': {'address': 'adguard.realm.local', 'port': 443}, 'mode': ('url', {'uri': '/login.html', 'ssl': 'auto', 'urlize': True})}, 'condition': {'host_name': ['serviceraspi.realm.local']}, 'options': {'description': 'check adguard status'}}, {'id': '40d08b3b-bacc-4594-8cbd-ac8c43cc96ab', 'value': {'name': 'Web Check Portainer', 'host': {'address': 'portainer.realm.local', 'port': 443}, 'mode': ('url', {'ssl': 'auto', 'urlize': True})}, 'condition': {'host_name': ['serviceraspi.realm.local']}, 'options': {'description': 'check portainer status'}}, {'id': '3a98cd94-057f-4800-8e55-3b9962b7c6eb', 'value': {'name': 'Web Check Grafana', 'host': {'address': 'grafana.realm.local', 'port': 443}, 'mode': ('url', {'ssl': 'auto', 'urlize': True})}, 'condition': {'host_name': ['serviceraspi.realm.local']}, 'options': {'description': 'check grafana status'}}, {'id': '639d093d-d40f-483c-b1a0-3604c85a75c1', 'value': {'name': 'Web Check InfluxDB', 'host': {'address': 'influxdb.realm.local', 'port': 443}, 'mode': ('url', {'ssl': 'auto', 'urlize': True})}, 'condition': {'host_name': ['serviceraspi.realm.local']}, 'options': {'description': 'check InfluxDB status'}}, {'id': 'deaa0f42-c339-4b25-8f8b-f224cd7e5655', 'value': {'name': 'Web Check OpenHAB', 'host': {'address': 'openhab.realm.local', 'port': 443}, 'mode': ('url', {'ssl': 'auto', 'urlize': True})}, 'condition': {'host_name': ['serviceraspi.realm.local']}, 'options': {'description': 'check OpenHAB status'}}, {'id': '94856693-93b8-4512-8893-0132012b4bd6', 'value': {'name': 'Web Check PhotoPrism', 'host': {'address': 'photoprism.realm.local', 'port': 443}, 'mode': ('url', {'ssl': 'auto', 'urlize': True})}, 'condition': {'host_name': ['serviceraspi.realm.local']}, 'options': {'description': 'check PhotoPrism status'}}, {'id': 'c805bfff-9ac1-4d31-88cb-7db026b11061', 'value': {'name': 'Web Check Switch', 'host': {'address': '192.168.0.3', 'port': 80}, 'mode': ('url', {'urlize': True})}, 'condition': {'host_name': ['switch.realm.local']}, 'options': {'description': 'check Switch status'}}, ] + active_checks['http'] agent_config.setdefault('cmk_update_agent', []) agent_config['cmk_update_agent'] = [ {'id': 'e9588a9e-4ef1-4fe7-8085-68d4e204d2a5', 'value': {'activated': True, 'server_data': {'usage': 'always', 'server': '192.168.0.99', 'site': 'realm', 'protocol': 'http'}, 'interval': 3600, 'edition': '64bit', 'signature_keys': ['-----BEGIN CERTIFICATE-----\nMIIC2DCCAcACAQEwDQYJKoZIhvcNAQEFBQAwMTEcMBoGA1UECgwTQ2hlY2tfTUsg\nU2l0ZSByZWFsbTERMA8GA1UEAwwIY21rYWRtaW4wIBcNMjAwODIxMDk0NjE0WhgP\nMjA1MDA4MTQwOTQ2MTRaMDExHDAaBgNVBAoME0NoZWNrX01LIFNpdGUgcmVhbG0x\nETAPBgNVBAMMCGNta2FkbWluMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKC\nAQEAvBdk25ubecYpjBvPTuon1X9ZC5VQXbLkCZqMvKazygF/JwTluENnwZlDo4xn\nCIYcVTg7AP6D2dbX7+jrhlp5TuMyISKR5CuQX4gOwIrOVrufHdI7Bv19LwrFhKjZ\nZ0i1nycBgZBIlc5RN2fN25pLhMzqQppPHrKBNVEf/ARWjz4iQ4DmwAS+iqnFmw4x\nBYF0bSA25Cc+T/krptICidmoPJ2YbW8J0S/VBo1LUQ1pavGLgQ0X4cnZ98w86I+I\nizqOh9fl1BVdJm4j1l8qk87IkEDXLlnm4umUyLG8WBCFrG/Dnfjf0Akk+YQxhrZ8\n028Sl4ZHJiCHXeyF7BAMl2S+kwIDAQABMA0GCSqGSIb3DQEBBQUAA4IBAQA6j4uL\nqItEiNZp9RWO+Woon6Nj+zerIjz+ObYC86QLO8mwTSN2oQymssfXXy/iAfSoRsqK\ndZ6R/Jgc0iWukEnXTsEdWwHE8jGzwXncI6K7hJ+Yb4eaqlPIcAArodVAs6NwQ+BO\nSu6oKMuuKRZdeF2u7OxZTAG3uuNmFYwK0s32QthUYmqhDD9kuZCHSNfPjIg8Na1H\nsbmssgGLWZYZU3l4uFjT++F70u/GuQPx1ajE4E/Wjg1n4U4d3FnMIi77ZIS/Bb/R\naQr14hY/weN8PXc8rs0+qwdYKfGg1+mxye62obUQt4I6EuAc1Sv5XnNwIefEDxVN\nwFWG11DIXR5sSb78\n-----END CERTIFICATE-----\n']}, 'condition': {'host_name': {'$nor': ['euve130167.solusar.de']}}, 'options': {'description': 'auto-deployment rule'}}, ] + agent_config['cmk_update_agent'] agent_config.setdefault('custom_files', []) agent_config['custom_files'] = [ {'id': 'affad557-22ce-450b-8567-a96e7b896684', 'value': ['my_mrpe_checks'], 'condition': {'host_name': ['serviceraspi.realm.local', 'localhost']}, 'options': {'description': 'custom mrpe checks'}}, ] + agent_config['custom_files'] agent_config.setdefault('mk_apt', []) agent_config['mk_apt'] = [ {'id': 'b4471dac-d08e-4318-b504-ab2dc05695a0', 'value': {'interval': 86400, 'method': 'upgrade', 'update': True}, 'condition': {}, 'options': {'description': 'apt updates'}}, ] + agent_config['mk_apt'] agent_config.setdefault('mk_docker', []) agent_config['mk_docker'] = [ {'id': 'd56238d4-e233-4f5b-ab4a-d18a23e56be6', 'value': {'node': [], 'containers': [], 'container_id': 'short'}, 'condition': {'host_name': {'$nor': ['euve130167.solusar.de']}}, 'options': {'description': 'Docker', 'docu_url': 'caelebfi'}}, ] + agent_config['mk_docker'] agent_config.setdefault('mk_inventory', []) agent_config['mk_inventory'] = [ {'id': 'f5fd9995-14b5-480a-a38b-b067fb67ca6a', 'value': {'interval': 14400, 'reg_paths': ['Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall', 'Software\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall']}, 'condition': {}}, ] + agent_config['mk_inventory'] agent_config.setdefault('mk_logins', []) agent_config['mk_logins'] = [ {'id': '56115e83-83f6-4a4f-af11-1f86133381d2', 'value': True, 'condition': {'host_name': ['euve130167.solusar.de']}, 'options': {'description': 'Logins Check'}}, ] + agent_config['mk_logins'] agent_config.setdefault('mk_mysql', []) agent_config['mk_mysql'] = [ {'id': '8969a38b-54ee-4c80-b2e1-da25add718ef', 'value': {'credentials': ('monitor', '3TghcItqnx4unPfEY9wa')}, 'condition': {'host_name': ['euve130167.solusar.de']}, 'options': {'description': 'MySQL check'}}, ] + agent_config['mk_mysql'] agent_config.setdefault('netstat', []) agent_config['netstat'] = [ {'id': '4f18c90f-021f-4267-8249-1cdf2e60eb2d', 'value': {}, 'condition': {}}, ] + agent_config['netstat'] agent_config.setdefault('nginx_status', []) agent_config['nginx_status'] = [ {'id': '79825c5b-95c1-44df-96d5-e1b05bd63c97', 'value': ('static', [{'protocol': 'http', 'address': '127.0.0.1', 'port': 80}]), 'condition': {'host_name': ['euve130167.solusar.de', 'serviceraspi.realm.local']}, 'options': {'description': 'Nginx Checks', 'docu_url': 'caelebfi'}}, ] + agent_config['nginx_status'] agent_config.setdefault('smart', []) agent_config['smart'] = [ {'id': '0e9b9e70-0dd2-41c8-b19f-680502d47ea5', 'value': True, 'condition': {'host_name': ['localhost']}, 'options': {'description': 'S.M.A.R.T. Check'}}, ] + agent_config['smart'] globals().setdefault('bulkwalk_hosts', []) bulkwalk_hosts = [ {'id': '17f65e16-29c0-4321-904c-418862aa1edf', 'value': True, 'condition': {'host_tags': {'snmp': 'snmp', 'snmp_ds': {'$ne': 'snmp-v1'}}}, 'options': {'description': 'Hosts with the tag "snmp-v1" must not use bulkwalk'}}, ] + bulkwalk_hosts checkgroup_parameters.setdefault('if', []) checkgroup_parameters['if'] = [ {'id': '26e4e1b3-e84d-4ace-bd2e-b08275f4a6ae', 'value': {'unit': 'bit'}, 'condition': {}}, ] + checkgroup_parameters['if'] globals().setdefault('cmc_host_rrd_config', []) cmc_host_rrd_config = [ {'id': '6f0de5d6-c82e-4282-9df1-6e9d083edec9', 'value': {'format': 'cmc_single', 'cfs': ['MIN', 'MAX', 'AVERAGE'], 'step': 60, 'rras': [(50.0, 1, 2880), (50.0, 5, 2880), (50.0, 30, 4320), (50.0, 360, 5840)]}, 'condition': {}, 'options': {'description': 'Default RRD configuration, using new single RRD format'}}, ] + cmc_host_rrd_config globals().setdefault('cmc_service_rrd_config', []) cmc_service_rrd_config = [ {'id': '9a3a69c8-29b1-445f-82d3-44d7eb54f016', 'value': {'format': 'cmc_single', 'cfs': ['MIN', 'MAX', 'AVERAGE'], 'step': 60, 'rras': [(50.0, 1, 2880), (50.0, 5, 2880), (50.0, 30, 4320), (50.0, 360, 5840)]}, 'condition': {}, 'options': {'description': 'Default RRD configuration, using new single RRD format'}}, ] + cmc_service_rrd_config extra_host_conf.setdefault('notification_options', []) extra_host_conf['notification_options'] = [ {'id': '8c0aa135-6c56-483e-a02a-9d5a07ac942a', 'value': 'd,r,f,s', 'condition': {}}, ] + extra_host_conf['notification_options'] extra_service_conf.setdefault('check_interval', []) extra_service_conf['check_interval'] = [ {'id': '6d3c5e95-f2a0-465f-869b-d5df38095308', 'value': 1440.0, 'condition': {'service_description': [{'$regex': 'Check_MK HW/SW Inventory$'}]}, 'options': {'description': 'Restrict HW/SW-Inventory to once a day'}}, ] + extra_service_conf['check_interval'] globals().setdefault('host_check_commands', []) host_check_commands = [ {'id': '4c533a26-a8b8-48d9-8d46-db776225a86c', 'value': ('service', 'Docker container status'), 'condition': {'host_labels': {'cmk/docker_object': 'container'}}, 'options': {'description': 'Make all docker container host states base on the "Docker container status" service'}}, ] + host_check_commands globals().setdefault('host_contactgroups', []) host_contactgroups = [ {'id': '6c4ac064-a117-4246-9a63-66f86db48930', 'value': 'all', 'condition': {}, 'options': {'description': 'Put all hosts into the contact group "all"'}}, ] + host_contactgroups globals().setdefault('inventory_df_rules', []) inventory_df_rules = [ {'id': '9b3e15f7-eff9-4ffa-8deb-7c768c57fdb9', 'value': {'ignore_fs_types': ['tmpfs', 'nfs', 'smbfs', 'cifs', 'iso9660'], 'never_ignore_mountpoints': ['~.*/omd/sites/[^/]+/tmp$']}, 'condition': {'host_labels': {'cmk/check_mk_server': 'yes'}}}, ] + inventory_df_rules globals().setdefault('only_hosts', []) if only_hosts is None: only_hosts = [] only_hosts = [ {'id': '5020d388-2319-45ad-8f73-c40e8927bc41', 'value': True, 'condition': {'host_tags': {'criticality': {'$ne': 'offline'}}}, 'options': {'description': 'Do not monitor hosts with the tag "offline"'}}, ] + only_hosts globals().setdefault('periodic_discovery', []) periodic_discovery = [ {'id': '218a9cb6-7134-4bfc-b2f9-2657fa6ca1fb', 'value': {'severity_unmonitored': 1, 'severity_vanished': 0, 'check_interval': 120.0, 'inventory_check_do_scan': True}, 'condition': {}, 'options': {'description': 'Perform every two hours a service discovery'}}, ] + periodic_discovery globals().setdefault('ping_levels', []) ping_levels = [ {'id': 'cf1db287-5f50-406f-a011-bb1eec1417d3', 'value': {'rta': (1500.0, 3000.0), 'loss': (80.0, 100.0), 'packets': 6, 'timeout': 20}, 'condition': {'host_tags': {'networking': 'wan'}}, 'options': {'description': 'Allow longer round trip times when pinging WAN hosts'}}, ] + ping_levels special_agents.setdefault('fritzbox', []) special_agents['fritzbox'] = [ {'id': '04f3e578-4e29-460f-bd9d-713a57f94154', 'value': {'timeout': 10}, 'condition': {'host_name': ['fritz.box']}, 'options': {'description': 'Fritz Checks'}}, ] + special_agents['fritzbox']