summaryrefslogtreecommitdiff
path: root/puppet/modules/nagios/manifests/service/pop3_login.pp
blob: 74535289f60f4625fbcb5a575fee743b5ff76a72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# a pop3 login check
define nagios::service::pop3_login(
  $username,
  $password,
  $warning   = 5,
  $critical  = 10,
  $host      = $::fqdn,
  $host_name = $::fqdn,
  $ensure    = 'present',
){
  nagios::service{
    "pop3_login_${name}":
      ensure => $ensure;
  }

  if $ensure != 'absent' {
    Nagios::Service["pop3_login_${name}"]{
      check_command => "check_pop3_login!${host}!${username}!${password}!${warning}!${critical}",
      host_name     => $host_name,
    }
  }
}