blob: e4df505f63fd53f9e3048228a621c0cd0f026d03 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
class nagios::command::smtp {
case $operatingsystem {
debian,ubuntu: {
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':
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$';
}
}
default: {
nagios_command{
'check_smtp':
command_line => '$USER1$/check_smtp -H $ARG1$ -p $ARG2$';
'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$';
}
}
}
}
|