From 765c06f7eda0ac2b023c0b2759e0066c8f520c5c Mon Sep 17 00:00:00 2001 From: Lennart Betz Date: Tue, 7 Jul 2015 20:11:25 +0200 Subject: [PATCH] ITL: Add missing 'smtp' CheckCommand parameters fixes #9578 Signed-off-by: Michael Friedrich --- doc/7-icinga-template-library.md | 23 ++++++++++++++++++----- itl/command-plugins.conf | 13 +++++++++++++ 2 files changed, 31 insertions(+), 5 deletions(-) diff --git a/doc/7-icinga-template-library.md b/doc/7-icinga-template-library.md index 511329732..8c818032c 100644 --- a/doc/7-icinga-template-library.md +++ b/doc/7-icinga-template-library.md @@ -654,11 +654,24 @@ Check command object for the `check_smtp` plugin. Custom attributes passed as [command parameters](3-monitoring-basics.md#command-passing-parameters): -Name | Description ----------------------|-------------- -smtp_address | **Optional.** The host's address. Defaults to "$address$" if the host's `address` attribute is set, "$address6$" otherwise. -smtp_port | **Optional.** The port that should be checked. Defaults to 25. -smtp_mail_from | **Optional.** Test a MAIL FROM command with the given email address. +Name | Description +----------------------|-------------- +smtp_address | **Optional.** The host's address. Defaults to "$address$" if the host's `address` attribute is set, "$address6$" otherwise. +smtp_port | **Optional.** The port that should be checked. Defaults to 25. +smtp_mail_from | **Optional.** Test a MAIL FROM command with the given email address. +smtp_expect | **Optional.** String to expect in first line of server response (default: '220'). +smtp_command | **Optional.** SMTP command (may be used repeatedly). +smtp_response | **Optional.** Expected response to command (may be used repeatedly). +smtp_helo_fqdn | **Optional.** FQDN used for HELO +smtp_certificate_age | **Optional.** Minimum number of days a certificate has to be valid. +smtp_starttls | **Optional.** Use STARTTLS for the connection. +smtp_authtype | **Optional.** SMTP AUTH type to check (default none, only LOGIN supported). +smtp_authuser | **Optional.** SMTP AUTH username. +smtp_authpass | **Optional.** SMTP AUTH password. +smtp_ignore_quit | **Optional.** Ignore failure when sending QUIT command to server. +smtp_warning | **Optional.** Response time to result in warning status (seconds). +smtp_critical | **Optional.** Response time to result in critical status (seconds). +smtp_timeout | **Optional.** Seconds before connection times out (default: 10). ## snmp diff --git a/itl/command-plugins.conf b/itl/command-plugins.conf index 10f53199b..21b924b48 100644 --- a/itl/command-plugins.conf +++ b/itl/command-plugins.conf @@ -517,6 +517,19 @@ object CheckCommand "smtp" { "-H" = "$smtp_address$" "-p" = "$smtp_port$" "-f" = "$smtp_mail_from$" + "-e" = "$smtp_expect$" + "-C" = "$smtp_command$" + "-R" = "$smtp_response$" + "-F" = "$smtp_helo_fqdn$" + "-D" = "$smtp_certificate_age$" + "-S" = "$smtp_starttls$" + "-A" = "$smtp_authtype$" + "-U" = "$smtp_authuser$" + "-P" = "$smtp_authpass$" + "-q" = "$smtp_ignore_quit$" + "-w" = "$smtp_warning$" + "-c" = "$smtp_critical$" + "-t" = "$smtp_timeout$" } vars.smtp_address = "$check_address$"