Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Container does not start with docker-compose when SNMP nodes are used #9

Closed
torevg opened this issue Sep 5, 2022 · 1 comment
Closed

Comments

@torevg
Copy link

torevg commented Sep 5, 2022

Hi,

I am trying the container with a docker-compose file as below.
When I put the SNMP_NODES in comment, the container starts without any problems.
However when I would try to use the SNMP_nodes, the container seems to stop somewhere.
Maybe I made a mistake somewhere, but I don't see it.
Can somebody see what the mistake is ?

Kind regards

Tore

version: "3"

services:
  munin-server:
    container_name: "munin-server"
    image: aheimsbakk/munin-alpine
    restart: unless-stopped
    ports:
      - 10.10.10.10:19950:80
    environment:
      NODES: BEERNETWORK;server1:10.10.10.20 BEERNETWORK;server2:10.10.10.30
      SNMP_NODES: routers;10.10.33.1:public routers;10.10.34.1:public routers;10.10.35.1:public routers;10.10.10.36:public
      TZ: Europe/Brussels
    volumes:
      - /opt/lowcode/docker/munin-server/etc/munin/munin-conf.d:/etc/munin/munin-conf.d 
      - /opt/lowcode/docker/munin-server/etc/munin/plugin-conf.d:/etc/munin/plugin-conf.d 
      - /opt/lowcode/docker/munin-server/var/lib/munin:/var/lib/munin 
      - /opt/lowcode/docker/munin-server/var/log/munin:/var/log/munin 
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.munin-server.rule=Host(`mymunin.myhost.mydomain`)"
      - "traefik.http.routers.munin-server.entrypoints=web,websecure"
      - "traefik.http.routers.munin-server.tls=true"
    networks:
      - traefik-stack_default

networks:
      traefik-stack_default:
        external: true 
@torevg
Copy link
Author

torevg commented Sep 6, 2022

This one can be closed.

The start of the container was not blocked.

It took the container +/- 10 minutes to run munin-node-configure --shell --snmp for the SNMP_NODES defined in the environment.
As no output is generated in the logs at that moment one has the impression that the container is blocked.

If you want to see if the container is running / processing something you can check with

docker exec -it munin-server /bin/bash to enter the console.

Once on the console you can execute top to see the top processes running in the container

image

@torevg torevg closed this as completed Sep 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant