From 67b7a8300e2ce2667711563619642e72902298ba Mon Sep 17 00:00:00 2001 From: Marcus van Dam Date: Wed, 28 May 2014 22:14:24 +0200 Subject: [PATCH] Plugins: Add imap,simap,pop,spop CheckCommand objects. Refs #6225 Signed-off-by: Michael Friedrich --- doc/6-configuring-icinga-2.md | 42 +++++++++++++++++++++++++++++ itl/command-plugins.conf | 50 +++++++++++++++++++++++++++++++++++ 2 files changed, 92 insertions(+) diff --git a/doc/6-configuring-icinga-2.md b/doc/6-configuring-icinga-2.md index 0680dc46c..85e914797 100644 --- a/doc/6-configuring-icinga-2.md +++ b/doc/6-configuring-icinga-2.md @@ -1839,6 +1839,48 @@ Name | Description ssmtp_address | **Required.** The host's address. Defaults to "$address$". ssmtp_port | **Optional.** The port that should be checked. Defaults to 465. +#### imap + +Check command object for the `check_imap` plugin. + +Custom Attributes: + +Name | Description +----------------|-------------- +imap_address | **Optional.** The host's address. Defaults to "$address$". + +#### simap + +Check command object for the `check_simap` plugin. + +Custom Attributes: + +Name | Description +----------------|-------------- +simap_address | **Optional.** The host's address. Defaults to "$address$". +simap_port | **Optional.** The host's port. + +#### pop + +Check command object for the `check_pop` plugin. + +Custom Attributes: + +Name | Description +----------------|-------------- +pop_address | **Optional.** The host's address. Defaults to "$address$". + +#### spop + +Check command object for the `check_spop` plugin. + +Custom Attributes: + +Name | Description +----------------|-------------- +spop_address | **Optional.** The host's address. Defaults to "$address$". +spop_port | **Optional.** The host's port. + #### ntp_time Check command object for the `check_ntp_time` plugin. diff --git a/itl/command-plugins.conf b/itl/command-plugins.conf index b57048092..de805bc0d 100644 --- a/itl/command-plugins.conf +++ b/itl/command-plugins.conf @@ -154,6 +154,56 @@ object CheckCommand "ssmtp" { vars.ssmtp_address = "$address$" } +object CheckCommand "imap" { + import "plugin-check-command" + + command = PluginDir + "/check_imap" + + arguments = { + "-H" = "$imap_address$" + } + + vars.imap_address = "$address$" +} + +object CheckCommand "simap" { + import "plugin-check-command" + + command = PluginDir + "/check_simap" + + arguments = { + "-H" = "$simap_address$" + "-p" = "$simap_port$" + } + + vars.simap_address = "$address$" +} + +object CheckCommand "pop" { + import "plugin-check-command" + + command = PluginDir + "/check_pop" + + arguments = { + "-H" = "$pop_address$" + } + + vars.pop_address = "$address$" +} + +object CheckCommand "spop" { + import "plugin-check-command" + + command = PluginDir + "/check_spop" + + arguments = { + "-H" = "$spop_address$" + "-p" = "$spop_port$" + } + + vars.spop_address = "$address$" +} + object CheckCommand "ntp_time" { import "plugin-check-command" -- 2.40.0