Files
confdroid_apache/manifests/monitoring/target.pp
2026-02-03 00:41:35 +01:00

28 lines
1013 B
Puppet

## confdroid_apache::monitoring::target.pp
# Module name: confdroid_apache
# Author: 12ww1160 (12ww1160@puppetsoft.com)
# @summary class manages exports for nagios monitoring
##############################################################################
class confdroid_apache::monitoring::target (
) inherits confdroid_apache::params {
case $ae_incl_target {
false: { notify { 'Nagios Service target for check_httpd has been disabled via parameters / ENC override': }
}
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,
owner => 'nagios',
group => 'nagios',
mode => '0640',
contacts => 'ops',
}
}
}
}