24 lines
914 B
Puppet
24 lines
914 B
Puppet
#### confdroid_ntp::monitoring::target.pp
|
|
# Module name: confdroid_ntp
|
|
# Author: 12ww1160 (12ww1160@confdroid.com)
|
|
# @summary Class manages nagios monitoring for the confdroid_ntp services
|
|
###############################################################################
|
|
class confdroid_ntp::monitoring::target (
|
|
|
|
) inherits confdroid_ntp::params {
|
|
if $cy_manage_nagios == true {
|
|
@@nagios_service { "check_chronyd_${fqdn}":
|
|
check_command => "check_nrpe!check_chronyd!${cy_procs_allowed}!chronyd",
|
|
use => 'generic-service',
|
|
host_name => $fqdn,
|
|
notification_period => '24x7',
|
|
service_description => "${fqdn}_check_chronyd",
|
|
target => $cy_target_service,
|
|
owner => 'nagios',
|
|
group => 'nagios',
|
|
mode => '0640',
|
|
contacts => $cy_target_contacts,
|
|
}
|
|
}
|
|
}
|