2022-07-08 21:47:58 +08:00
|
|
|
# Monitor UPSes connected via Network UPS Tools
|
|
|
|
|
[[inputs.upsd]]
|
|
|
|
|
## A running NUT server to connect to.
|
2023-03-28 17:48:29 +08:00
|
|
|
## IPv6 addresses must be enclosed in brackets (e.g. "[::1]")
|
2022-07-08 21:47:58 +08:00
|
|
|
# server = "127.0.0.1"
|
|
|
|
|
# port = 3493
|
|
|
|
|
# username = "user"
|
|
|
|
|
# password = "password"
|
2023-01-26 17:57:23 +08:00
|
|
|
|
|
|
|
|
## Force parsing numbers as floats
|
|
|
|
|
## It is highly recommended to enable this setting to parse numbers
|
|
|
|
|
## consistently as floats to avoid database conflicts where some numbers are
|
|
|
|
|
## parsed as integers and others as floats.
|
|
|
|
|
# force_float = false
|
2024-01-05 23:46:26 +08:00
|
|
|
|
|
|
|
|
## Collect additional fields if they are available for the UPS
|
|
|
|
|
## The fields need to be specified as NUT variable names, see
|
|
|
|
|
## https://networkupstools.org/docs/developer-guide.chunked/apas02.html
|
|
|
|
|
## Wildcards are accepted.
|
|
|
|
|
# additional_fields = []
|
|
|
|
|
|
|
|
|
|
## Dump information for debugging
|
|
|
|
|
## Allows to print the raw variables (and corresponding types) as received
|
2024-08-01 06:32:24 +08:00
|
|
|
## from the NUT server ONCE for each UPS.
|
2024-01-05 23:46:26 +08:00
|
|
|
## Please attach this information when reporting issues!
|
2024-08-01 06:32:24 +08:00
|
|
|
# log_level = "trace"
|