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: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ Flags:
-u, --username string Database username (default "vspheredb")

datastore:
-s, --datastore string Name of the datastore to check
--datastore string Name of the datastore to check
temperature:
-s, --sensor string Sensor name filter (supports SQL LIKE pattern)
--sensor string Sensor name filter (supports SQL LIKE pattern)
```

## Development
Expand Down
2 changes: 1 addition & 1 deletion cmd/datastore.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ func init() {

datastoreCmd.Flags().StringVarP(&datastoreWarning, "warning", "w", "80", "Warning threshold in percent")
datastoreCmd.Flags().StringVarP(&datastoreCritical, "critical", "c", "90", "Critical threshold in percent")
datastoreCmd.Flags().StringVarP(&datastore, "datastore", "s", "", "Name of the datastore to check")
datastoreCmd.Flags().StringVarP(&datastore, "datastore", "", "", "Name of the datastore to check")
}

func queryDatastore() {
Expand Down
2 changes: 1 addition & 1 deletion cmd/temperature.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ func init() {

temperatureCmd.Flags().StringVarP(&temperatureWarning, "warning", "w", "50", "Warning threshold")
temperatureCmd.Flags().StringVarP(&temperatureCritical, "critical", "c", "60", "Critical threshold")
temperatureCmd.Flags().StringVarP(&temperatureSensor, "sensor", "s", "%", "Sensor name filter (supports SQL LIKE pattern)")
temperatureCmd.Flags().StringVarP(&temperatureSensor, "sensor", "", "%", "Sensor name filter (supports SQL LIKE pattern)")
}

func queryTemperature() {
Expand Down
6 changes: 3 additions & 3 deletions contrib/icinga2-basket.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"description": "Critical threshold in percent as Integer (defaults to 90)",
"value": "$vspheredb_data_datastorecrit$"
},
"-s": {
"--datastore": {
"description": "Datastore to check",
"value": "$vspheredb_data_datastore$"
},
Expand Down Expand Up @@ -183,7 +183,7 @@
"description": "Critical threshold (defaults to 60)",
"value": "$vspheredb_data_tempcrit$"
},
"-s": {
"--sensor": {
"description": "Sensor name filter (supports SQL LIKE pattern)",
"value": "$vspheredb_data_tempsensor$"
},
Expand All @@ -209,4 +209,4 @@
"timeout": 60
}
}
}
}
6 changes: 3 additions & 3 deletions contrib/icinga2-commands.conf
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ object CheckCommand "vspheredb_data_datastore" {
description = "Warning threshold in percent as Integer (defaults to 80)"
value = "$vspheredb_data_datastorewarn$"
}
"-s" = {
"--datastore" = {
description = "Datastore to check"
value = "$vspheredb_data_datastore$"
}
Expand Down Expand Up @@ -154,9 +154,9 @@ object CheckCommand "vspheredb_data_temperature" {
description = "Warning threshold as Integer (less than X available) (defaults to 50)"
value = "$vspheredb_data_nicwarn$"
}
"-s" ) {
"--sensor" ) {
description = "Sensor name filter (supports SQL LIKE pattern)"
value = "$vspheredb_data_sensor$"
}
}
}
}
Loading