Compare commits

...

2 Commits

Author SHA1 Message Date
dc86fb5ce8 OP#830 fix process name 2026-10-04 13:54:08 +02:00
6138fdfcaa OP#830 fix procs:allowed value 2026-10-04 13:46:31 +02:00
2 changed files with 4 additions and 3 deletions

View File

@@ -8,7 +8,7 @@ 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",
check_command => "check_nrpe!check_chronyd!${cy_procs_allowed}!chronyd",
use => 'generic-service',
host_name => $fqdn,
notification_period => '24x7',

View File

@@ -22,6 +22,7 @@
# @param [String] cy_procs_allowed Number of allowed processes for the Nagios check.
# @param [String] cy_target_service Path to the Nagios service configuration file.
# @param [Array] cy_target_contacts List of Nagios contacts for notifications.
# must exist in Nagios contacts configuration!
###############################################################################
class confdroid_ntp::params (
@@ -41,7 +42,7 @@ class confdroid_ntp::params (
# monitoring
Boolean $cy_manage_nagios = false,
String $cy_procs_allowed = '1',
String $cy_procs_allowed = '1:',
String $cy_target_service = '/etc/nagios/conf.d/chronyd_service.cfg',
Array $cy_target_contacts = ['nagiosadmin'],