diff --git a/manifests/server/service.pp b/manifests/server/service.pp index 19c849b..c811940 100644 --- a/manifests/server/service.pp +++ b/manifests/server/service.pp @@ -33,7 +33,7 @@ class confdroid_nagios::server::service ( use => 'linux-server', target => $ng_target_localhost, hostgroups => 'linux-servers', - contacts => 'ops', + contacts => $ng_contact_name, max_check_attempts => $ng_max_check_attempts, notification_period => '24x7', owner => $ng_user, @@ -63,7 +63,7 @@ class confdroid_nagios::server::service ( use => 'linux-server', target => $ng_target_host, hostgroups => 'linux-servers', - contacts => 'ops', + contacts => $ng_contact_name, max_check_attempts => $ng_max_check_attempts, notification_period => '24x7', owner => $ng_user, @@ -78,7 +78,7 @@ class confdroid_nagios::server::service ( check_command => "check_nrpe!check_disk!${ng_disk_warn}!${ng_disk_crit}!/", use => 'generic-service', host_name => $fqdn, - contacts => 'ops', + contacts => $ng_contact_name, notification_period => '24x7', service_description => "${hostname}_root_partition", servicegroups => 'linux-services', @@ -94,7 +94,7 @@ class confdroid_nagios::server::service ( check_command => "check_nrpe!check_swap!${ng_swap_warn}!${ng_swap_crit}", use => 'generic-service', host_name => $fqdn, - contacts => 'ops', + contacts => $ng_contact_name, notification_period => '24x7', service_description => "${hostname}_swap_usage", servicegroups => 'linux-services', @@ -110,7 +110,7 @@ class confdroid_nagios::server::service ( check_command => "check_nrpe!check_users!${ng_users_warn}!${ng_users_crit}", use => 'generic-service', host_name => $fqdn, - contacts => 'ops', + contacts => $ng_contact_name, notification_period => '24x7', service_description => "${hostname}_local_users", servicegroups => 'linux-services', @@ -125,7 +125,7 @@ class confdroid_nagios::server::service ( check_command => "check_nrpe!check_procs!${ng_procs_tot_warn}!${ng_procs_tot_crit}!${ng_procs_tot_param}", use => 'generic-service', host_name => $fqdn, - contacts => 'ops', + contacts => $ng_contact_name, notification_period => '24x7', service_description => "${hostname}_total_processes", servicegroups => 'linux-services', @@ -140,7 +140,7 @@ class confdroid_nagios::server::service ( check_command => "check_nrpe!check_procs!${ng_procs_z_warn}!${ng_procs_z_crit}!${ng_procs_z_param}", use => 'generic-service', host_name => $fqdn, - contacts => 'ops', + contacts => $ng_contact_name, notification_period => '24x7', service_description => "${hostname}_zombie_processes", servicegroups => 'linux-services', @@ -155,7 +155,7 @@ class confdroid_nagios::server::service ( check_command => "check_nrpe!check_load!${ng_load_warn}!${ng_load_crit}", use => 'generic-service', host_name => $fqdn, - contacts => 'ops', + contacts => $ng_contact_name, notification_period => '24x7', service_description => "${hostname}_current_load", servicegroups => 'linux-services',