OP#672 edit target to include correct variables

This commit is contained in:
2026-09-07 13:52:13 +02:00
parent eefd846f7c
commit 5db2481d76
2 changed files with 3 additions and 1 deletions

View File

@@ -8,7 +8,7 @@ class confdroid_alloy::monitoring::target (
) inherits confdroid_alloy::params {
if $ay_manage_nagios == true {
@@nagios_service { "check_alloy_${fqdn}":
check_command => "check_nrpe!check_alloy!${fn_procs_allowed}!alloy-server",
check_command => "check_nrpe!check_alloy!${ay_procs_allowed}!alloy",
use => 'generic-service',
host_name => $fqdn,
notification_period => '24x7',

View File

@@ -20,6 +20,7 @@
# @param [Boolean] ay_manage_nagios whether to manage nagios service exports
# @param [String] ay_target_service the target file for nagios service exports
# @param [Array] ay_target_contacts the contacts for nagios service exports
# @param [String] ay_procs_allowed the allowed number of processes for nagios service exports
# @summary Class contains all parameters for the confdroid_alloy module.
##############################################################################
class confdroid_alloy::params (
@@ -47,6 +48,7 @@ class confdroid_alloy::params (
Boolean $ay_manage_nagios = false,
String $ay_target_service = '/etc/nagios/conf.d/alloy_service.cfg',
Array $ay_target_contacts = ['nagiosadmin'],
String $ay_procs_allowed = '1:1'
) {
# defaults