Files
confdroid_apache/manifests/monitoring/target.pp

28 lines
1013 B
ObjectPascal
Raw Normal View History

2026-02-03 00:41:35 +01:00
## confdroid_apache::monitoring::target.pp
# Module name: confdroid_apache
# Author: 12ww1160 (12ww1160@puppetsoft.com)
2018-04-20 10:06:12 +02:00
# @summary class manages exports for nagios monitoring
##############################################################################
2026-02-03 00:41:35 +01:00
class confdroid_apache::monitoring::target (
2018-04-20 10:06:12 +02:00
2026-02-03 00:41:35 +01:00
) inherits confdroid_apache::params {
2018-04-20 10:06:12 +02:00
case $ae_incl_target {
false: { notify { 'Nagios Service target for check_httpd has been disabled via parameters / ENC override': }
2018-04-20 10:06:12 +02:00
}
default: {
@@nagios_service { "check_http_${::hostname}":
check_command => 'check_http',
use => 'generic-service',
host_name => $::fqdn,
notification_period => '24x7',
service_description => "${::hostname}_check_http",
target => $ae_target_service,
2018-04-20 10:06:12 +02:00
owner => 'nagios',
group => 'nagios',
2018-04-29 13:27:51 +02:00
mode => '0640',
2018-04-20 10:06:12 +02:00
contacts => 'ops',
}
}
}
}