From 1c4de48baf4ffcf5f39894a101a3c59479959b47 Mon Sep 17 00:00:00 2001 From: mh Date: Sun, 12 Dec 2010 17:41:28 +0100 Subject: add imap and pop3 commands --- manifests/command/imap_pop3.pp | 12 ++++++++++++ manifests/defaults/commands.pp | 1 + 2 files changed, 13 insertions(+) create mode 100644 manifests/command/imap_pop3.pp 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 { -- cgit v1.2.3