OP#436 replace 'ops' with defined contact

This commit is contained in:
2026-03-01 16:42:44 +01:00
parent f268f4b88c
commit dd7f5cc9f7

View File

@@ -17,7 +17,7 @@ class confdroid_nagios::client::target (
use => 'linux-server', use => 'linux-server',
target => $ng_target_host, target => $ng_target_host,
hostgroups => 'linux-servers', hostgroups => 'linux-servers',
contacts => 'ops', contacts => $ng_contact_name,
max_check_attempts => $ng_max_check_attempts, max_check_attempts => $ng_max_check_attempts,
notification_period => '24x7', notification_period => '24x7',
owner => 'nagios', owner => 'nagios',
@@ -32,7 +32,7 @@ class confdroid_nagios::client::target (
check_command => "check_nrpe!check_disk!${ng_disk_warn}!${ng_disk_crit}!/", check_command => "check_nrpe!check_disk!${ng_disk_warn}!${ng_disk_crit}!/",
use => 'generic-service', use => 'generic-service',
host_name => $fqdn, host_name => $fqdn,
contacts => 'ops', contacts => $ng_contact_name,
notification_period => '24x7', notification_period => '24x7',
service_description => "${fqdn}_root_partition", service_description => "${fqdn}_root_partition",
servicegroups => 'linux-services', servicegroups => 'linux-services',
@@ -48,7 +48,7 @@ class confdroid_nagios::client::target (
check_command => "check_nrpe!check_swap!${ng_swap_warn}!${ng_swap_crit}", check_command => "check_nrpe!check_swap!${ng_swap_warn}!${ng_swap_crit}",
use => 'generic-service', use => 'generic-service',
host_name => $fqdn, host_name => $fqdn,
contacts => 'ops', contacts => $ng_contact_name,
notification_period => '24x7', notification_period => '24x7',
service_description => "${fqdn}_swap_usage", service_description => "${fqdn}_swap_usage",
servicegroups => 'linux-services', servicegroups => 'linux-services',
@@ -64,7 +64,7 @@ class confdroid_nagios::client::target (
check_command => "check_nrpe!check_users!${ng_users_warn}!${ng_users_crit}", check_command => "check_nrpe!check_users!${ng_users_warn}!${ng_users_crit}",
use => 'generic-service', use => 'generic-service',
host_name => $fqdn, host_name => $fqdn,
contacts => 'ops', contacts => $ng_contact_name,
notification_period => '24x7', notification_period => '24x7',
service_description => "${fqdn}_local_users", service_description => "${fqdn}_local_users",
servicegroups => 'linux-services', servicegroups => 'linux-services',
@@ -79,7 +79,7 @@ class confdroid_nagios::client::target (
check_command => "check_nrpe!check_procs!${ng_procs_tot_warn}!${ng_procs_tot_crit}!${ng_procs_tot_param}", check_command => "check_nrpe!check_procs!${ng_procs_tot_warn}!${ng_procs_tot_crit}!${ng_procs_tot_param}",
use => 'generic-service', use => 'generic-service',
host_name => $fqdn, host_name => $fqdn,
contacts => 'ops', contacts => $ng_contact_name,
notification_period => '24x7', notification_period => '24x7',
service_description => "${fqdn}_total_processes", service_description => "${fqdn}_total_processes",
servicegroups => 'linux-services', servicegroups => 'linux-services',
@@ -94,7 +94,7 @@ class confdroid_nagios::client::target (
check_command => "check_nrpe!check_procs!${ng_procs_z_warn}!${ng_procs_z_crit}!${ng_procs_z_param}", check_command => "check_nrpe!check_procs!${ng_procs_z_warn}!${ng_procs_z_crit}!${ng_procs_z_param}",
use => 'generic-service', use => 'generic-service',
host_name => $fqdn, host_name => $fqdn,
contacts => 'ops', contacts => $ng_contact_name,
notification_period => '24x7', notification_period => '24x7',
service_description => "${fqdn}_zombie_processes", service_description => "${fqdn}_zombie_processes",
servicegroups => 'linux-services', servicegroups => 'linux-services',
@@ -109,7 +109,7 @@ class confdroid_nagios::client::target (
check_command => "check_nrpe!check_load!${ng_load_warn}!${ng_load_crit}", check_command => "check_nrpe!check_load!${ng_load_warn}!${ng_load_crit}",
use => 'generic-service', use => 'generic-service',
host_name => $fqdn, host_name => $fqdn,
contacts => 'ops', contacts => $ng_contact_name,
notification_period => '24x7', notification_period => '24x7',
service_description => "${fqdn}_current_load", service_description => "${fqdn}_current_load",
servicegroups => 'linux-services', servicegroups => 'linux-services',