Commit 396b4273 authored by mh's avatar mh
Browse files

add a way to pass additional nagios checks

parent 371798ad
......@@ -27,7 +27,8 @@ define webhosting::common(
$user_scripts = 'absent',
$user_scripts_options = {},
$nagios_check = 'ensure',
$nagios_check_domain = 'absent',
Variant[String,Array[String]]
$nagios_check_domain = 'absent',
$nagios_check_url = '/',
$nagios_check_code = '200',
$nagios_use = 'generic-service',
......@@ -234,6 +235,14 @@ define webhosting::common(
use => $nagios_use,
check_code => $real_nagios_check_code,
}
if 'additional_nagios_checks' in $configuration {
$configuration['additional_nagios_checks'].each |$n,$values| {
nagios::service::http{
"${name}-${n}":
* => $values,
}
}
}
}
$watch_webfiles_ensure = $ensure ? {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment