ualex73 / monitor_docker

Monitor Docker containers from Home Assistant
Apache License 2.0
267 stars 34 forks source link

Remote host not reconnecting after power off #103

Open Londoneye02 opened 2 years ago

Londoneye02 commented 2 years ago

I have a installation made on a raspberry which is monitoring both the raspberry itself and also a remote host running Debian

Bellow is the configuration

- name: Docker_Raspberry
  containers:
     - pihole
     - nginx_manager
     - duplicati
     - grafana
     - homer
  rename:
    pihole: PiHole
    nginx_manager: Nginx Proxy Manager
    duplicati: Duplicati
    grafana: Grafana
    homer: Homer

  monitored_conditions:
    - version
    - containers_running
    - containers_total
    - state
    - status
    - memory
    - network_total_up

- name: Docker_DebianServer
  url: tcp://192.168.1.117:2375
  containers:
     - jellyfin 
  rename:
    jellyfin: Jellyfin

  monitored_conditions:
   - version
   - containers_running
   - containers_total
   - state
   - status
   - memory
   - network_total_up
   - network_speed_up
   - network_speed_down

It works fine if I start the raspberry after the Debian Server. But if I turn off the remote server, It does not receive any data from It when it comes back live.

Screenshot_20220615-182042-183

Is it the normal behaviour, or do I have anything wrong on the configuration?? Most of the times, it does not work. In a very few occasion, it works

Thank you for your time

ualex73 commented 1 month ago

I will test this soon, I am not also not sure what the behavior should be (I dependent on the underlying library).