summaryrefslogtreecommitdiff
path: root/manifests/command/smtp.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-07-14 13:05:08 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-07-14 13:09:52 -0300
commit69b346b34c981b91e068222b15a8a825f08344c2 (patch)
tree29b28ff1a9c6bec0d92f6a18f0d563d451100d5f /manifests/command/smtp.pp
parent55ac508405e87bdab99ac0cbe0eacac28a8f60b8 (diff)
Branching the definition for smtp, imap and pop3 commands
Diffstat (limited to 'manifests/command/smtp.pp')
-rw-r--r--manifests/command/smtp.pp40
1 files changed, 17 insertions, 23 deletions
diff --git a/manifests/command/smtp.pp b/manifests/command/smtp.pp
index a887e0a..29d97f8 100644
--- a/manifests/command/smtp.pp
+++ b/manifests/command/smtp.pp
@@ -1,28 +1,22 @@
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_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$';
- }
+ 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$';
}
}