OP#436 add full service details

This commit is contained in:
2026-03-01 18:40:19 +01:00
parent 33e27b57c5
commit 98deadc906
13 changed files with 21 additions and 37 deletions

View File

@@ -17,9 +17,9 @@ class confdroid_nagios::server::service (
refreshonly => true,
}
service { $ng_nagios_service:
service { $ng_service:
ensure => running,
name => $ng_nagios_service,
name => $ng_service,
enable => true,
hasrestart => true,
hasstatus => true,
@@ -44,7 +44,7 @@ class confdroid_nagios::server::service (
}
@@nagios_service { 'check_nagios_localhost':
check_command => $ng_nagios_service_cmd,
check_command => $ng_service_cmd,
use => 'generic-service',
host_name => 'localhost',
notification_period => '24x7',
@@ -197,7 +197,5 @@ class confdroid_nagios::server::service (
Nagios_contactgroup <<||>> { notify => Service['nagios'] }
Nagios_command <<||>> { notify => Service['nagios'] }
Nagios_timeperiod <<||>> { notify => Service['nagios'] }
}
}