Open SomePersonSomeWhereInTheWorld opened 3 years ago
the UPS_TO_MONITOR
variable needs to be the same as the service names of the UPS(s) you want to watch.
Docker compose's internal DNS resolver will map those names to IPs; they likely won't be 127.0.0.1
I have the same error. Using Docker with APCUPSD-CGI
Not available: upsfetch: tcp_open failed for Debian-x79 port 3551
Here's my APCUPSD-CGI code
`version: '3.9' services: apcupsd-cgi: image: bnhf/apcupsd-cgi:latest container_name: apcupsd-cgi dns_search: Workgroup # Set to your LAN's domain name (often local or localdomain), this should help with local DNS resolution of hostnames ports:
Any thoughts how I might solve the problem.
So I updated the
docker-compose.yml
file to match our UPSes. I ran:# docker run -d bd8efc00f2d2
But I only get:
"Local Host Not available: upsfetch: tcp_open failed for 127.0.0.1 port 3551"
Any tips to get this working?