added new proxy nagios checks
in test environment
This commit is contained in:
parent
34160872ef
commit
0697d55cb1
2 changed files with 26 additions and 0 deletions
|
@ -1103,6 +1103,7 @@ log-1.sveidas.se:
|
||||||
konsulter:
|
konsulter:
|
||||||
autoupdate:
|
autoupdate:
|
||||||
servicemonitor:
|
servicemonitor:
|
||||||
|
proxy_eidas_metadata:
|
||||||
eidas_proxy:
|
eidas_proxy:
|
||||||
version: 1.4.7_hsm2_ubuntu
|
version: 1.4.7_hsm2_ubuntu
|
||||||
hostname: test.proxy.eidas.swedenconnect.se
|
hostname: test.proxy.eidas.swedenconnect.se
|
||||||
|
|
|
@ -291,6 +291,19 @@ class mdsl_publisher() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
class proxy_eidas_metadata() {
|
||||||
|
sunet::nagios::nrpe_check_fileage {"proxy_eidas_metadata":
|
||||||
|
filename => "/etc/eidas-proxy/se/ps-mdcache/metadata.xml",
|
||||||
|
warning_age => '1800',
|
||||||
|
critical_age => '172800'
|
||||||
|
}
|
||||||
|
sunet::nagios::nrpe_check_fileage {"proxy_eidas_metadata_list":
|
||||||
|
filename => "/etc/eidas-proxy/se/ps-mdcache/metadataList.xml",
|
||||||
|
warning_age => '600',
|
||||||
|
critical_age => '172800'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
class md_repo_server($hostname) {
|
class md_repo_server($hostname) {
|
||||||
ensure_resource('sunet::system_user', 'www-data', {
|
ensure_resource('sunet::system_user', 'www-data', {
|
||||||
username => 'www-data',
|
username => 'www-data',
|
||||||
|
@ -1218,6 +1231,18 @@ class nagios_monitor {
|
||||||
description => 'mdsl se age',
|
description => 'mdsl se age',
|
||||||
contact_groups => ['alerts']
|
contact_groups => ['alerts']
|
||||||
}
|
}
|
||||||
|
nagioscfg::service {'proxy_eidas_metadata_age':
|
||||||
|
hostgroup_name => ['proxy_eidas_metadata'],
|
||||||
|
check_command => 'check_nrpe_1arg!check_fileage_proxy_eidas_metadata',
|
||||||
|
description => 'proxy eidas metadata age',
|
||||||
|
contact_groups => ['alerts']
|
||||||
|
}
|
||||||
|
nagioscfg::service {'proxy_eidas_metadata_list_age':
|
||||||
|
hostgroup_name => ['proxy_eidas_metadata_list'],
|
||||||
|
check_command => 'check_nrpe_1arg!check_fileage_proxy_eidas_metadata_list',
|
||||||
|
description => 'proxy eidas metadata age',
|
||||||
|
contact_groups => ['alerts']
|
||||||
|
}
|
||||||
nagioscfg::service {'check_eidas_health':
|
nagioscfg::service {'check_eidas_health':
|
||||||
hostgroup_name => ['servicemonitor'],
|
hostgroup_name => ['servicemonitor'],
|
||||||
check_command => 'check_nrpe_1arg!check_eidas_health',
|
check_command => 'check_nrpe_1arg!check_eidas_health',
|
||||||
|
|
Loading…
Add table
Reference in a new issue