summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/command/imap_pop3.pp12
-rw-r--r--manifests/defaults/commands.pp1
2 files changed, 13 insertions, 0 deletions
diff --git a/manifests/command/imap_pop3.pp b/manifests/command/imap_pop3.pp
new file mode 100644
index 0000000..a857d74
--- /dev/null
+++ b/manifests/command/imap_pop3.pp
@@ -0,0 +1,12 @@
+class nagios::command::imap_pop3 {
+ nagios_command{
+ 'check_imap':
+ command_line => '$USER1$/check_imap -H $ARG1$ -p $ARG2$';
+ 'check_imap_ssl':
+ command_line => '$USER1$/check_imap -H $ARG1$ -p $ARG2$ -S';
+ 'check_pop3':
+ command_line => '$USER1$/check_pop -H $ARG1$ -p $ARG2$ -S';
+ 'check_pop3_ssl':
+ command_line => '$USER1$/check_pop -H $ARG1$ -p $ARG2$ -S';
+ }
+}
diff --git a/manifests/defaults/commands.pp b/manifests/defaults/commands.pp
index c5147b4..933f3b9 100644
--- a/manifests/defaults/commands.pp
+++ b/manifests/defaults/commands.pp
@@ -1,6 +1,7 @@
class nagios::defaults::commands {
include nagios::command::smtp
+ include nagios::command::imap_pop3
# common service commands
case $operatingsystem {