summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2010-12-12 17:41:28 +0100
committermh <mh@immerda.ch>2010-12-12 17:41:28 +0100
commit1c4de48baf4ffcf5f39894a101a3c59479959b47 (patch)
tree92dd445c667249f022cddf8588d6571348b1a052
parent7800742705a44ff6d32bbb0415ea0b1f954a8fcd (diff)
add imap and pop3 commands
-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 {