OP#830 add nagios target

This commit is contained in:
2026-10-04 13:26:33 +02:00
parent 16597c16d5
commit 097956676e
3 changed files with 27 additions and 3 deletions

View File

@@ -6,4 +6,18 @@
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}!chrony",
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,
}
}
}