Files

24 lines
914 B
ObjectPascal
Raw Permalink Normal View History

2026-10-01 13:30:42 +02:00
#### 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 {
2026-10-04 13:26:33 +02:00
if $cy_manage_nagios == true {
@@nagios_service { "check_chronyd_${fqdn}":
2026-10-04 13:54:08 +02:00
check_command => "check_nrpe!check_chronyd!${cy_procs_allowed}!chronyd",
2026-10-04 13:26:33 +02:00
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,
}
}
2026-10-01 13:30:42 +02:00
}