Closed nvtkaszpir closed 3 years ago
Thanks for reporting this! It seems like something very simple to fix, but I just haven't found the time yet.
This should be fixed now (in #8). The fix is available in Docker tag latest
but is not yet released (in tag 1
etc.). I realize you're probably not interested any more since this didn't work at all for you, but if you happen to try it I would be interested to hear if it works for you now. Thanks for all the provided info!
Just tested, it's working fine :) Thank you very much!
heh even got a power outage today ;D
Just wanted to say that version docker.io/hon95/prometheus-nut-exporter@sha256:f381d4bca35696cc7497942bd1ed225b02208154dd5562ff6a8b6998480b5ec5 works without any restarts for over 9 days.
Looks like the code returns error when trying to process more than one UPS from nut-server. I believe this can be reproduced with dummy-ups https://networkupstools.org/docs/man/dummy-ups.html (see below)
Example config on the nut server: ups.conf
running query to prometheus-nut-exporter results in error such as (HTTP 503):
and when hitting refresh the word
bagien
will be replaced also with another ups name (in that caseapcups01
). Also notice that theLIST VAR <ups>
command actually contains extra newlines, this is weird.Things tested:
MASKED
was used to hide sensitive data):