Closed joneskoo closed 4 years ago
I added a dependency to my systemd unit for apcupsd.service, hopefully that resolves the root cause. Maybe could handle the "can't connect" without a panic?
I did a bunch of cleanup as of today and I believe this is now fixed via https://github.com/mdlayher/apcupsd_exporter/commit/43387c6d027ff9d23dbbb5774b5a7c913e778845.
Seems to panic sometimes on startup, not sure why. When I start it again it comes back up. Maybe I start the exporter too early in the boot and it can't discover my UPS?
This is an old version but looks like the line is still there.
https://github.com/mdlayher/apcupsd_exporter/blob/e0e3072fbff346aa0e533722f6bbef37d23e819b/cmd/apcupsd_exporter/main.go#L32