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
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ 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
-f, --credentials-file string Path to the credentials JSON file (file path)
-d, --database string Database name (default "vspheredb")
-h, --help help for check_vspheredb_data
-H, --host string Database host to connect to
Expand All @@ -61,6 +61,15 @@ Flags:
--sensor string Sensor name filter (supports SQL LIKE pattern)
```

## Credentials File
To use the credentials-file feature, you need to have an appropiate file in the JSON Format:
```
{
"username": "vspheredb",
"password": "vspheredb"
}
```

## Development

To build the tool yourself using the Golang toolchain:
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func init() {
rootCmd.PersistentFlags().StringVarP(&database, "database", "d", "vspheredb", "Database name")
rootCmd.PersistentFlags().StringVarP(&username, "username", "u", "vspheredb", "Database username")
rootCmd.PersistentFlags().StringVarP(&password, "password", "P", "vspheredb", "Database password")
rootCmd.PersistentFlags().StringVarP(&credentialsFile, "credentials-file", "f", "", "Path to the credentials file")
rootCmd.PersistentFlags().StringVarP(&credentialsFile, "credentials-file", "f", "", "Path to the credentials file in the JSON format")
rootCmd.PersistentFlags().BoolVar(&useTLS, "tls", false, "Use TLS to connect to the database")
rootCmd.PersistentFlags().StringVar(&caCertPath, "ca-cert", "", "CA certificate (file path)")
rootCmd.PersistentFlags().StringVar(&clientCertPath, "client-cert", "", "Client certificate (file path)")
Expand Down
Loading