summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2015-10-26 14:14:22 +0100
committermh <mh@immerda.ch>2015-10-26 14:14:22 +0100
commit27f65e05ff1120c9432b86a4e964b31f9d41b7b7 (patch)
treecfd3ec7b6b53f378763f99d3ece94e365abaad65
parente66581b620d89e81ec02754005f3e3fa2bc603cf (diff)
make it possible to also pass down the host_name
-rw-r--r--manifests/service/imap_login.pp10
1 files changed, 6 insertions, 4 deletions
diff --git a/manifests/service/imap_login.pp b/manifests/service/imap_login.pp
index 53c432a..25303a3 100644
--- a/manifests/service/imap_login.pp
+++ b/manifests/service/imap_login.pp
@@ -2,10 +2,11 @@
define nagios::service::imap_login(
$username,
$password,
- $warning = 5,
- $critical = 10,
- $host = $::fqdn,
- $ensure = 'present',
+ $warning = 5,
+ $critical = 10,
+ $host = $::fqdn,
+ $host_name = $::fqdn,
+ $ensure = 'present',
){
nagios::service{
"imap_login_${name}":
@@ -15,6 +16,7 @@ define nagios::service::imap_login(
if $ensure != 'absent' {
Nagios::Service["imap_login_${name}"]{
check_command => "check_imap_login!${host}!${username}!${password}!${warning}!${critical}",
+ host_name => $host_name,
}
}
}