mirror of https://github.com/Icinga/icinga2.git
ITL: Add --extra-opts parameter to the mysql and pgsql CheckCommand definitions
This commit is contained in:
parent
185fab3761
commit
a9b6b1dba0
|
@ -796,6 +796,7 @@ Custom variables passed as [command parameters](03-monitoring-basics.md#command-
|
|||
|
||||
Name | Description
|
||||
------------------------|---------------------------------------------------------------
|
||||
mysql_extra_opts | **Optional.** Read options from an ini file.
|
||||
mysql_hostname | **Optional.** Host name, IP Address, or unix socket (must be an absolute path).
|
||||
mysql_port | **Optional.** Port number (default: 3306).
|
||||
mysql_socket | **Optional.** Use the specified socket (has no effect if `mysql_hostname` is used).
|
||||
|
@ -971,6 +972,7 @@ Custom variables passed as [command parameters](03-monitoring-basics.md#command-
|
|||
|
||||
Name | Description
|
||||
------------------------|---------------------------------------------------------------
|
||||
pgsql_extra_opts | **Optional.** Read options from an ini file.
|
||||
pgsql_hostname | **Optional.** Host name, IP Address, or unix socket (must be an absolute path).
|
||||
pgsql_port | **Optional.** Port number (default: 5432).
|
||||
pgsql_database | **Optional.** Database to check (default: template1).
|
||||
|
|
|
@ -2667,6 +2667,10 @@ object CheckCommand "pgsql" {
|
|||
command = [ PluginDir + "/check_pgsql" ]
|
||||
|
||||
arguments = {
|
||||
"--extra-opts" = {
|
||||
value = "$pgsql_extra_opts$"
|
||||
description = "Read options from an ini file"
|
||||
}
|
||||
"-H" = {
|
||||
value = "$pgsql_hostname$"
|
||||
description = "Host name, IP Address, or unix socket (must be an absolute path)"
|
||||
|
@ -2726,6 +2730,10 @@ object CheckCommand "mysql" {
|
|||
command = [ PluginDir + "/check_mysql" ]
|
||||
|
||||
arguments = {
|
||||
"--extra-opts" = {
|
||||
value = "$mysql_extra_opts$"
|
||||
description = "Read options from an ini file"
|
||||
}
|
||||
"-H" = {
|
||||
set_if = {{ !macro("$mysql_socket$") }}
|
||||
value = "$mysql_hostname$"
|
||||
|
|
Loading…
Reference in New Issue