Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,17 @@ 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
-H, --host string Database host to connect to
-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:
Expand Down
19 changes: 19 additions & 0 deletions contrib/icinga2-basket.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
16 changes: 16 additions & 0 deletions contrib/icinga2-commands.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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$"
}
}
}

Expand Down
Loading