Device doesn't update in Docker

Hello,

I installed LibreNMS in Docker:

version: '3'
services:
  librenms:
    image: librenms/librenms
    container_name: librenms
    restart: always
    networks:
      - MyNetwork
    links:
      - mariadb
    environment:
      - TZ=Europe/Madrid
      - DB_HOST=db_host
      - DB_NAME=db_name
      - DB_USER=db_user
      - DB_PASSWORD=db_password
    ports:
      - 8000:8000
    volumes:
      - librenms-data:/data

volumes:
  librenms-data:

networks:
  MyNetwork:

The container start well, I access to the web interface and the validation is OK. I add some devices correctly, but the problem is that they don’t update:

It looks like the poller is not asking for more info.

I am missing something in my configuration?

Thanks for your help.

Hi,

Take a look to the compose here: https://github.com/librenms/docker/blob/master/examples/compose/docker-compose.yml

You are only running the interface but not the “poller”. (SIDECAR_CRON=1)

Thanks for the reply.

I don’t understand, need I configure 2 containers? One for librenms interface and other for cron?

I change my compose to add SIDECAR_CRON=1 in the environment section. But it doesn’t start the web intrface, this is the container log: https://paste.debian.net/1140719/

Thanks for your help.

Yes. Maybe also rrdcached and memcached, but not sure if they are required or not.

Thanks! It works!

But I don’t understad why is necessary to start 2 containers. Is it not possible to add cron inside the interface container?

This is how I configure the docker compose file: https://paste.debian.net/1140723/

Best regards.

Im not the maintainer of the docker version, maybe @CrazyMax can help with that.

In other hand, Im very glad to see spanish ppl like me enjoying LibreNMS!!! Hows the quarantine going?

The quarantine is going well. I have time to organize my server apps, including LibreNMS.

Regards.

Maybe linked to https://github.com/librenms/docker/issues/76 ?