mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-06 13:24:28 +02:00
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
|
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_hostname | **Optional.** Host name, IP Address, or unix socket (must be an absolute path).
|
||||||
mysql_port | **Optional.** Port number (default: 3306).
|
mysql_port | **Optional.** Port number (default: 3306).
|
||||||
mysql_socket | **Optional.** Use the specified socket (has no effect if `mysql_hostname` is used).
|
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
|
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_hostname | **Optional.** Host name, IP Address, or unix socket (must be an absolute path).
|
||||||
pgsql_port | **Optional.** Port number (default: 5432).
|
pgsql_port | **Optional.** Port number (default: 5432).
|
||||||
pgsql_database | **Optional.** Database to check (default: template1).
|
pgsql_database | **Optional.** Database to check (default: template1).
|
||||||
|
@ -2667,6 +2667,10 @@ object CheckCommand "pgsql" {
|
|||||||
command = [ PluginDir + "/check_pgsql" ]
|
command = [ PluginDir + "/check_pgsql" ]
|
||||||
|
|
||||||
arguments = {
|
arguments = {
|
||||||
|
"--extra-opts" = {
|
||||||
|
value = "$pgsql_extra_opts$"
|
||||||
|
description = "Read options from an ini file"
|
||||||
|
}
|
||||||
"-H" = {
|
"-H" = {
|
||||||
value = "$pgsql_hostname$"
|
value = "$pgsql_hostname$"
|
||||||
description = "Host name, IP Address, or unix socket (must be an absolute path)"
|
description = "Host name, IP Address, or unix socket (must be an absolute path)"
|
||||||
@ -2726,6 +2730,10 @@ object CheckCommand "mysql" {
|
|||||||
command = [ PluginDir + "/check_mysql" ]
|
command = [ PluginDir + "/check_mysql" ]
|
||||||
|
|
||||||
arguments = {
|
arguments = {
|
||||||
|
"--extra-opts" = {
|
||||||
|
value = "$mysql_extra_opts$"
|
||||||
|
description = "Read options from an ini file"
|
||||||
|
}
|
||||||
"-H" = {
|
"-H" = {
|
||||||
set_if = {{ !macro("$mysql_socket$") }}
|
set_if = {{ !macro("$mysql_socket$") }}
|
||||||
value = "$mysql_hostname$"
|
value = "$mysql_hostname$"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user