From 27f65e05ff1120c9432b86a4e964b31f9d41b7b7 Mon Sep 17 00:00:00 2001 From: mh Date: Mon, 26 Oct 2015 14:14:22 +0100 Subject: make it possible to also pass down the host_name --- manifests/service/imap_login.pp | 10 ++++++---- 1 file 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, } } } -- cgit v1.2.3