Closed Dennis14e closed 7 months ago
My current workaround: Use an Ansible playbook to deactivate PNP4Nagios (again) on startup:
# playbook.yml
---
- name: Update OMD installation
hosts: all
tasks:
- name: Disable PNP4Nagios
become: yes
become_user: "{{ SITENAME }}"
become_method: "su"
become_flags: "-"
command: "omd config set PNP4NAGIOS off"
i guess it has something to do with the way the etc folder is not directly mounted but synced. tbh, these containers are designed for testing purposes and one-time use only. The way docker works totally defeats the OMD update mechanism.
Monitoring core: naemon Using omd with docker compose.
docker compose exec omd /bin/bash
su - main
~/etc/naemon/naemon.d/
omd stop && omd config set PNP4NAGIOS off && omd start
docker compose restart
, PNP4Nagios is still disabled, pnp4nagios.cfg doesn't existdocker compose down && docker compose up -d
, pnp4nagios.cfg exists, so it creates perfdata filesomd config show PNP4NAGIOS
I don't know if this is a omd or a omd-labs-docker problem, but because a restart works and only a rebuild fails, I think this is a docker problem.
My docker-compose.yml: