Plugins: Add imap,simap,pop,spop CheckCommand objects.

Refs #6225

Signed-off-by: Michael Friedrich <michael.friedrich@gmail.com>
This commit is contained in:
Marcus van Dam 2014-05-28 22:14:24 +02:00 committed by Michael Friedrich
parent 157de9f3bb
commit 67b7a8300e
2 changed files with 92 additions and 0 deletions

View File

@ -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.
#### <a id="plugin-check-command-imap"></a> imap
Check command object for the `check_imap` plugin.
Custom Attributes:
Name | Description
----------------|--------------
imap_address | **Optional.** The host's address. Defaults to "$address$".
#### <a id="plugin-check-command-simap"></a> 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.
#### <a id="plugin-check-command-pop"></a> pop
Check command object for the `check_pop` plugin.
Custom Attributes:
Name | Description
----------------|--------------
pop_address | **Optional.** The host's address. Defaults to "$address$".
#### <a id="plugin-check-command-spop"></a> 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.
#### <a id="plugin-check-command-ntp-time"></a> ntp_time
Check command object for the `check_ntp_time` plugin.

View File

@ -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"