summaryrefslogtreecommitdiff
path: root/manifests/command/smtp.pp
blob: 5cb777eda9bf25bb90eccf141cbabd08884ca63c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
class nagios::command::smtp {
  nagios_command{
    'check_smtp':
      command_line => '$USER1$/check_smtp -H $ARG1$ -p $ARG2$',
      ensure       => $operatingsystem ? {
        debian,ubuntu => absent,
        default       => present,
      };
    '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':
      command_line => '$USER1$/check_ssmtp -H $ARG1$ -p $ARG2$ -S';
    'check_ssmtp_cert':
      command_line => '$USER1$/check_ssmtp -H $ARG1$ -p $ARG2$ -S -D $ARG3$';
  }
}