added _ to service name

This commit is contained in:
Arne Teuke
2017-07-27 12:58:30 +01:00
parent 7b27896ccb
commit 842d86a504
2 changed files with 7 additions and 1 deletions

View File

@@ -20,6 +20,12 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>
# @summary Define populates /etc/nagios/conf.d/nagios_add_contactgroups through
# external puppet rules.
# @param [string] ng_contactgroup_name Specify the short name of the
# contact group.
# @param [string] ng_contactgroup_alias Specify the alias (long name) of the
# contact group
# @param [string] ng_contactgroup_register Specify whether the contact group
# should be registered in Nagios.
################################################################################
define cd_nagios::nagios::objects::add_contactgroups (

View File

@@ -37,7 +37,7 @@ class cd_nagios::server::service (
enable => true,
}
@@nagios_service { "check_nagios${::hostname}":
@@nagios_service { "check_nagios_${::hostname}":
check_command => 'check_nagios!/var/log/nagios/status.dat!5!/usr/sbin/nagios',
use => 'generic-service',
host_name => $::fqdn,