added new checks

This commit is contained in:
Maria Haider 2022-07-18 15:20:12 +02:00
parent 94b7e4f841
commit 65751fc9f8
Signed by: mariah
GPG key ID: 7414A760CA747E57

View file

@ -1223,7 +1223,7 @@ class nagios_monitor {
nagioscfg::command {'check_ssl_cert_3_without_ocsp':
command_line => "/usr/lib/nagios/plugins/check_ssl_cert -A -H '\$HOSTNAME\$' --ignore-ocsp -c '\$ARG2\$' -w '\$ARG1\$' -p '\$ARG3\$'"
}
$public_hosts = ['demw.eidas.swedenconnect.se','api.swedenconnect.se','qa.test.swedenconnect.se','qa.md.swedenconnect.se','md.swedenconnect.se','md.eidas.swedenconnect.se','qa.md.eidas.swedenconnect.se','qa.connector.eidas.swedenconnect.se','qa.proxy.eidas.swedenconnect.se','connector.eidas.swedenconnect.se','test.connector.eidas.swedenconnect.se']
$public_hosts = ['proxy.eidas.swedenconnect.se','validator.swedenconnect.se','qa.demw.eidas.swedenconnect.se','demw.eidas.swedenconnect.se','api.swedenconnect.se','qa.test.swedenconnect.se','test.swedenconnect.se','qa.md.swedenconnect.se','md.swedenconnect.se','md.eidas.swedenconnect.se','qa.md.eidas.swedenconnect.se','qa.connector.eidas.swedenconnect.se','qa.proxy.eidas.swedenconnect.se','connector.eidas.swedenconnect.se','test.connector.eidas.swedenconnect.se']
nagioscfg::host {$public_hosts: }
nagioscfg::service {'check_public_ssl_cert':
host_name => $public_hosts,
@ -1251,16 +1251,16 @@ class nagios_monitor {
nagioscfg::command {'check_website':
command_line => "/usr/lib/nagios/plugins/check_http -H '\$HOSTNAME\$' -S -u '\$ARG1\$'"
}
nagioscfg::service {'check_metadata_eIDAS':
nagioscfg::service {'check_idp_metadata_eIDAS':
host_name => ['md.eidas.swedenconnect.se'],
check_command => 'check_website!https://md.eidas.swedenconnect.se/',
description => 'check metadata for eIDAS',
check_command => 'check_website!https://md.eidas.swedenconnect.se/role/idp.xml',
description => 'check IdP metadata for eIDAS',
contact_groups => ['alerts'],
}
nagioscfg::service {'check_metadata_swedenconnect':
nagioscfg::service {'check_idp_metadata_swedenconnect':
host_name => ['md.swedenconnect.se'],
check_command => 'check_website!https://md.swedenconnect.se/',
description => 'check metadata for Sweden Connect',
check_command => 'check_website!https://md.swedenconnect.se/role/idp.xml/',
description => 'check IdP metadata for Sweden Connect',
contact_groups => ['alerts'],
}
nagioscfg::service {'check_connector':
@ -1275,6 +1275,54 @@ class nagios_monitor {
description => 'check metadata for DE middleware',
contact_groups => ['alerts'],
}
nagioscfg::service {'check_metadata_proxy':
host_name => ['proxy.eidas.swedenconnect.se'],
check_command => 'check_website!https://proxy.eidas.swedenconnect.se/eidas-ps/ServiceMetadata',
description => 'check metadata for Proxy',
contact_groups => ['alerts'],
}
nagioscfg::service {'check_api':
host_name => ['api.swedenconnect.se'],
check_command => 'check_website!https://api.swedenconnect.se/testid/',
description => 'check api',
contact_groups => ['alerts'],
}
nagioscfg::service {'check_metadata_DE_middleware_QA':
host_name => ['qa.demw.eidas.swedenconnect.se'],
check_command => 'check_website!https://qa.demw.eidas.swedenconnect.se/eidas-middleware/Metadata',
description => 'check metadata for DE middleware QA',
contact_groups => ['alerts'],
}
nagioscfg::service {'check_ref_idp':
host_name => ['qa.test.swedenconnect.se'],
check_command => 'check_website!https://qa.test.swedenconnect.se/idp/metadata/idp.xml',
description => 'check Reference IdP',
contact_groups => ['alerts'],
}
nagioscfg::service {'check_mdservicelist_metadata_eIDAS_QA':
host_name => ['qa.md.eidas.swedenconnect.se'],
check_command => 'check_website!https://qa.md.eidas.swedenconnect.se/mdservicelist-aggregate.xml/',
description => 'check MDSservicelist metadata for eIDAS',
contact_groups => ['alerts'],
}
nagioscfg::service {'check_sp_metadata_swedenconnect_QA':
host_name => ['qa.md.swedenconnect.se'],
check_command => 'check_website!https://qa.md.swedenconnect.se/role/sp.xml/',
description => 'check SP metadata for Sweden Connect',
contact_groups => ['alerts'],
}
nagioscfg::service {'check_connector_QA':
host_name => ['qa.connector.eidas.swedenconnect.se'],
check_command => 'check_website!https://qa.connector.eidas.swedenconnect.se/idp/metadata/sp',
description => 'check metadata for Sweden Connect',
contact_groups => ['alerts'],
}
nagioscfg::service {'check_metadata_proxy_QA':
host_name => ['qa.proxy.eidas.swedenconnect.se'],
check_command => 'check_website!https://qa.proxy.eidas.swedenconnect.se/eidas-ps/ServiceMetadata',
description => 'check metadata for Proxy',
contact_groups => ['alerts'],
}
nagioscfg::command {'check_country_count':
command_line => "/usr/lib/nagios/plugins/check_eidas_country_count.sh '\$ARG1\$' '\$ARG2\$' '\$ARG3\$' '\$ARG4\$'"
}