diff options
author | mh <mh@immerda.ch> | 2015-10-25 16:28:46 +0100 |
---|---|---|
committer | mh <mh@immerda.ch> | 2015-10-25 16:28:46 +0100 |
commit | e66581b620d89e81ec02754005f3e3fa2bc603cf (patch) | |
tree | 0eb326fae835d70d600c020eb5b8654d84a867df /manifests/service | |
parent | edd94dd98f53c1066c7bd6253bc910c196f798fc (diff) |
add an imap_login check
Diffstat (limited to 'manifests/service')
-rw-r--r-- | manifests/service/imap_login.pp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/manifests/service/imap_login.pp b/manifests/service/imap_login.pp new file mode 100644 index 0000000..53c432a --- /dev/null +++ b/manifests/service/imap_login.pp @@ -0,0 +1,20 @@ +# a imap login check +define nagios::service::imap_login( + $username, + $password, + $warning = 5, + $critical = 10, + $host = $::fqdn, + $ensure = 'present', +){ + nagios::service{ + "imap_login_${name}": + ensure => $ensure; + } + + if $ensure != 'absent' { + Nagios::Service["imap_login_${name}"]{ + check_command => "check_imap_login!${host}!${username}!${password}!${warning}!${critical}", + } + } +} |