devforth / hothost

Lightweight and minimalistic open-source Servers and HTTP monitor
MIT License
169 stars 14 forks source link

UI is working but can't monitore host or other servers #24

Open ParcNetwork opened 1 year ago

ParcNetwork commented 1 year ago

Hello folks,

I don't know if I missed an important point, but I don't get monitoring on the installed system, nor on any other server.

The service was installed via docker compose

Attached my docker-compose.yaml file, which is also running on a target server for example.

version: '3'
services:
  hothost-agent:
    image: devforth/hothost-agent
    environment:
    - HOTHOST_SERVER_BASE=https://example.com
    - HOTHOST_AGENT_SECRET=EXAMPLE_SECRET
    - HOTHOST_MONITOR_INTERVAL=60
    container_name: hothost-agent
    restart: unless-stopped
    cap_add:
      - SYS_PTRACE
    security_opt:
      - apparmor:unconfined
      - seccomp:unconfined
    volumes:
      - /proc:/host/proc:ro
      - /sys:/host/sys:ro
      - /etc/os-release:/host/etc/os-release:ro
      - /etc/hostname:/host/etc/hostname:ro

What amazes me is that on the actual host, the docker ps output indicates to me that there is also an agent running

51f3bd4cb5b5 devforth/hothost-agent "bash getinfo.sh" 47 minutes ago Up 29 minutes hothost-agent