Compare commits

...

3 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
3e9e52b144 OP#830 add nagios target 2026-10-04 13:32:07 +02:00
2 changed files with 5 additions and 4 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

@@ -21,7 +21,8 @@
# @param [Boolean] cy_manage_nagios Whether to manage Nagios monitoring for the module.
# @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.
# @param [Array] cy_target_contacts List of Nagios contacts for notifications.
# must exist in Nagios contacts configuration!
###############################################################################
class confdroid_ntp::params (
@@ -41,9 +42,9 @@ 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 = ['admin'],
Array $cy_target_contacts = ['nagiosadmin'],
) {
# facts