Skip to content
This repository has been archived by the owner on Jul 7, 2020. It is now read-only.

Sensors Unavailable #30

Open
apedance opened this issue Mar 30, 2020 · 4 comments
Open

Sensors Unavailable #30

apedance opened this issue Mar 30, 2020 · 4 comments

Comments

@apedance
Copy link

apedance commented Mar 30, 2020

Hey there,

lovely work here.

Most of my sensors are "Unavailable" or are not updating anymore.
ha-dockermon is installed and running. homeassistant has socket.

hosts:
- url: unix://var/run/docker.sock
name: Docker
event: false
scan_interval: 10
monitored_conditions:
- version
- containers_total
- containers_running
- containers_stopped
containers:
cranky_leavitt:
switch: true
sensors:
- status
- uptime
- cpu_percentage_usage
- memory_usage
- memory_percentage_usage
- network_total_up
- network_total_down
homeassistant:
switch: false
sensors:
- status
- uptime
- cpu_percentage_usage
- memory_usage
- memory_percentage_usage
#- network_total_up
#- network_total_down
guacamole:
switch: true
sensors:
- status
- uptime
- cpu_percentage_usage
- memory_usage
- memory_percentage_usage
- network_total_up
- network_total_down

More and more sensors go offline after restarts.

@apedance
Copy link
Author

If I re-enable the /var/run/docker.sock the sensors work for a brief amount of time.
After the restart most of them are gone.
Only certain containers have the sensors unavailable. I couldn't reproduce the reason for that yet.

Uptime is always working. CPU ist the first sensor to break after restarts.

@apedance
Copy link
Author

It would be amazing if you could address said issues.
If you can not spend the time, do you recommend any viable alternatives?

Cheers

@ualex73
Copy link
Collaborator

ualex73 commented Jun 13, 2020

You could check the forks, some seem to have it working (again). I myself got a bit inspired by the Docker Monitor, but don't like the Threads approach (some container threads bum out on my system :-(). So I created my own version of Monitor Docker (https://github.com/ualex73/monitor_docker), this one uses mainly Asyncio.

@apedance
Copy link
Author

Thank you for taking the time to answer.
Good call. I will check it out.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants