summaryrefslogtreecommitdiff
path: root/manifests/command/imap_pop3.pp
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2011-12-08 16:37:15 -0500
committerMicah Anderson <micah@riseup.net>2011-12-08 16:37:15 -0500
commitbb14bcec66ff93dfdb26dfa0cb45b939a13bcd9b (patch)
tree660aede1b06fc8060c7380362f7bed893850fdfa /manifests/command/imap_pop3.pp
parent59da6a08e1b6d32c018098992e6ab597998afa94 (diff)
parente7de46c5516d3784acb7e258d0af40b88fc36e3a (diff)
Merge branch 'master' into riseup
Diffstat (limited to 'manifests/command/imap_pop3.pp')
-rw-r--r--manifests/command/imap_pop3.pp14
1 files changed, 11 insertions, 3 deletions
diff --git a/manifests/command/imap_pop3.pp b/manifests/command/imap_pop3.pp
index 174b09c..3735136 100644
--- a/manifests/command/imap_pop3.pp
+++ b/manifests/command/imap_pop3.pp
@@ -1,7 +1,15 @@
class nagios::command::imap_pop3 {
- nagios_command{
- 'check_imap':
- command_line => '$USER1$/check_imap -H $ARG1$ -p $ARG2$';
+ case $operatingsystem {
+ debian,ubuntu: { } # Debian/Ubuntu already define those checks
+ default: {
+ nagios_command {
+ 'check_imap':
+ command_line => '$USER1$/check_imap -H $ARG1$ -p $ARG2$';
+ }
+ }
+ }
+
+ nagios_command {
'check_imap_ssl':
command_line => '$USER1$/check_imap -H $ARG1$ -p $ARG2$ -S';
'check_pop3':