summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
Diffstat (limited to 'manifests')
-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,
}
}
}