summaryrefslogtreecommitdiff
path: root/puppet/modules/nagios/manifests/command/smtp.pp
blob: 29d97f8bcfd456346dae03699c50adf7ad67487e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
class nagios::command::smtp {
  case $operatingsystem {
    debian,ubuntu: { }  # Debian/Ubuntu already define those checks
    default: {
      nagios_command {
        'check_smtp':
           command_line => '$USER1$/check_smtp -H $ARG1$ -p $ARG2$';
        'check_ssmtp':
           command_line => '$USER1$/check_ssmtp -H $ARG1$ -p $ARG2$ -S';
      }
    }
  }

  nagios_command {
    'check_smtp_tls':
       command_line => '$USER1$/check_smtp -H $ARG1$ -p $ARG2$ -S';
    'check_smtp_cert':
       command_line => '$USER1$/check_smtp -H $ARG1$ -p $ARG2$ -S -D $ARG3$';
    'check_ssmtp_cert':
       command_line => '$USER1$/check_ssmtp -H $ARG1$ -p $ARG2$ -S -D $ARG3$';
  }
}