From f1f874b0215f2e28c5583e6a86e09e1292154cad Mon Sep 17 00:00:00 2001 From: Markus Opolka Date: Thu, 24 Sep 2026 14:11:30 +0200 Subject: [PATCH 1/2] Update README --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 2f66b91..c882909 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,9 @@ Available Commands: temperature Checks the temperature of sensors Flags: + --ca-cert string CA certificate (file path) + --client-cert string Client certificate (file path) + --client-key string Client certificate key (file path) -f, --credentials-file string Path to the credentials file -d, --database string Database name (default "vspheredb") -h, --help help for check_vspheredb_data @@ -49,6 +52,7 @@ Flags: -m, --machine string Machine to be queried for -P, --password string Database password (default "vspheredb") -p, --port int16 Database port to connect to (default 3306) + --tls Use TLS to connect to the database -u, --username string Database username (default "vspheredb") datastore: From 264c23056495ad07e2f86e4f78e200a9d73a2046 Mon Sep 17 00:00:00 2001 From: Bjoern Berg Date: Thu, 24 Sep 2026 14:28:02 +0200 Subject: [PATCH 2/2] updatet contrib --- contrib/icinga2-basket.json | 19 +++++++++++++++++++ contrib/icinga2-commands.conf | 16 ++++++++++++++++ 2 files changed, 35 insertions(+) diff --git a/contrib/icinga2-basket.json b/contrib/icinga2-basket.json index 4643183..25cc80d 100644 --- a/contrib/icinga2-basket.json +++ b/contrib/icinga2-basket.json @@ -29,6 +29,25 @@ "-u": { "description": "Database username (defaults to vspheredb)", "value": "$vspheredb_data_username$" + }, + "--ca-cert": { + "description": "CA certificate (file path)", + "value": "$vspheredb_data_cacert" + }, + "--client-cert": { + "description": "Client certificate (file path)", + "value": "$vspheredb_data_clientcert" + }, + "--client-key": { + "description": "Client certificate key (file path)", + "value": "$vspheredb_data_clientkey" + }, + "tls_mode": { + "required": false, + "set_if": "$vspheredb_data_tls$", + "set_if_format": "string", + "skip_key": true, + "value": "--tls" } }, "command": "check_vspheredb_data", diff --git a/contrib/icinga2-commands.conf b/contrib/icinga2-commands.conf index ddc0fb6..52a2da6 100644 --- a/contrib/icinga2-commands.conf +++ b/contrib/icinga2-commands.conf @@ -30,6 +30,22 @@ object CheckCommand "vspheredb_data" { description = "Database username (defaults to vspheredb)" value = "$vspheredb_data_username$" } + "--ca-cert" = { + description = "CA certificate (file path)" + value = "$vspheredb_data_cacert$" + } + "--client-cert" = { + description = "Client certificate (file path)" + value = "$vspheredb_data_clientcert$" + } + "--client-key" = { + description = "Client certificate key (file path)" + value = "$vspheredb_data_clientkey$" + } + "--tls" = { + description = "Use TLS to connect to the database" + set_if = "$vspheredb_data_tls$" + } } }