Hello, I have a Zabbix server running in a Docker container according to the .yaml compose file.
I am trying to read a file that is being generated on the host machine according to the volume mapping in the compose.
I am trying to use the item: vfs.file.contents[/var/lib/zabbix/httptrace_results.json]
However, the error is always the same: Cannot open file: [2] No such file or directory
I have already tried adjusting permissions, even setting chmod 777, but the error persists. Could someone help?
I have also tried checking the logs of the Zabbix server container, but there is no output shown there. I have also tried without the ro option.
I am trying to read a file that is being generated on the host machine according to the volume mapping in the compose.
I am trying to use the item: vfs.file.contents[/var/lib/zabbix/httptrace_results.json]
However, the error is always the same: Cannot open file: [2] No such file or directory
I have already tried adjusting permissions, even setting chmod 777, but the error persists. Could someone help?
I have also tried checking the logs of the Zabbix server container, but there is no output shown there. I have also tried without the ro option.
Code:
zabbix-server:
image: zabbix/zabbix-server-mysql:ubuntu-latest
container_name: zabbix-server
privileged: true
environment:
DB_SERVER_HOST: zabbix-db
MYSQL_DATABASE: zabbix
MYSQL_USER: zabbix
MYSQL_PASSWORD:
ZBX_SERVER_NAME: 'xpto'
ZBX_CACHESIZE: 512M
ZBX_VALUECACHESIZE: 256M
ZBX_STARTPOLLERS: 15
ZBX_STARTPREPROCESSORS: 10
ZBX_STARTHTTPPOLLERS: 10
depends_on:
- zabbix-db
ports:
- "10051:10051"
volumes:
- /opt/monitor-data/zabbix-server-data:/var/lib/zabbix
- /etc/localtime:/etc/localtime:ro
- /root/monitor-cae/httptrace/httptrace_results.json:/var/lib/zabbix/httptrace_results.json:ro
networks:
zabbix-network:
ipv4_address: 172.30.0.3
restart: unless-stopped
Comment