summaryrefslogtreecommitdiff
path: root/manifests/service/http.pp
diff options
context:
space:
mode:
authorJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>2009-12-28 14:12:24 -0500
committerJerome Charaoui <jcharaoui@cmaisonneuve.qc.ca>2009-12-28 14:12:24 -0500
commitd96b70dc892bcf6e76bd6be96e9c15325f784a15 (patch)
treec9148b7439616adde55683dfebf06b2e9161f0d3 /manifests/service/http.pp
parent83963cef28ca42055d5becbf0b697ee1f4bd5d4a (diff)
remove $hostname from service names: these are added internally to nagios_service type, but should not appear for service descriptions in nagios
Diffstat (limited to 'manifests/service/http.pp')
-rw-r--r--manifests/service/http.pp6
1 files changed, 3 insertions, 3 deletions
diff --git a/manifests/service/http.pp b/manifests/service/http.pp
index 5c6cda1..5fd9890 100644
--- a/manifests/service/http.pp
+++ b/manifests/service/http.pp
@@ -16,13 +16,13 @@ define nagios::service::http(
}
case $ssl_mode {
'force',true,'only': {
- nagios::service{"https_${name}_${check_code}_${hostname}":
+ nagios::service{"https_${name}_${check_code}":
ensure => $ensure,
check_command => "check_https_url_regex!${real_check_domain}!${check_url}!'${check_code}'",
}
case $ssl_mode {
'force': {
- nagios::service{"httprd_${name}_${hostname}":
+ nagios::service{"httprd_${name}":
ensure => $ensure,
check_command => "check_http_url_regex!${real_check_domain}!${check_url}!'301'",
}
@@ -32,7 +32,7 @@ define nagios::service::http(
}
case $ssl_mode {
false,true: {
- nagios::service{"http_${name}_${check_code}_${hostname}":
+ nagios::service{"http_${name}_${check_code}":
ensure => $ensure,
check_command => "check_http_url_regex!${real_check_domain}!${check_url}!'${check_code}'",
}