check mdsl fileage

This commit is contained in:
Leif Johansson 2019-02-05 14:03:02 +01:00
parent 667804f048
commit 2baf42ee33
2 changed files with 28 additions and 0 deletions

View file

@ -411,6 +411,7 @@ eupub-1.komreg.net:
autoupdate:
md_publisher:
keyname: eupub-1.komreg.net_infra
mdsl_publisher:
sunet::frontend::register_sites:
sites:
'md.eidas.swedenconnect.se':
@ -457,6 +458,7 @@ eupub-2.komreg.net:
autoupdate:
md_publisher:
keyname: eupub-2.komreg.net_infra
mdsl_publisher:
sunet::frontend::register_sites:
sites:
'md.eidas.swedenconnect.se':
@ -496,6 +498,7 @@ p2.qa.komreg.net:
autoupdate:
md_publisher:
keyname: p2.qa.komreg.net_infra
mdsl_publisher:
sunet::frontend::register_sites:
sites:
'qa.md.eidas.swedenconnect.se':

View file

@ -244,6 +244,19 @@ class md_publisher(Array $allow_clients=['any'], $keyname=undef, String $dir="/v
}
}
class mdsl_publisher() {
sunet::nagios::nrpe_check_fileage {"mdsl_aggregate":
filename => "/var/www/html/mdservicelist-aggregate.xml", # yes this is correct
warning_age => '600',
critical_age => '86400'
}
sunet::nagios::nrpe_check_fileage {"mdsl_se":
filename => "/var/www/html/mdservicelist-se.xml", # yes this is correct
warning_age => '600',
critical_age => '86400'
}
}
class md_repo_server($hostname) {
ensure_resource('sunet::system_user', 'www-data', {
username => 'www-data',
@ -965,6 +978,18 @@ class nagios_monitor {
description => 'metadata aggregate age',
contact_groups => ['alerts']
}
nagioscfg::service {'mdsl_aggregate_age':
hostgroup_name => ['mdsl_publisher'],
check_command => 'check_nrpe_1arg!check_fileage_mdsl_aggregate',
description => 'mdsl aggregate age',
contact_groups => ['alerts']
}
nagioscfg::service {'mdsl_se_age':
hostgroup_name => ['mdsl_publisher'],
check_command => 'check_nrpe_1arg!check_fileage_mdsl_se',
description => 'mdsl se age',
contact_groups => ['alerts']
}
nagioscfg::service {'check_eidas_health':
hostgroup_name => ['servicemonitor'],
check_command => 'check_nrpe_1arg!check_eidas_health',