Ad Widget
Collapse
snmptraps in docker
Collapse
X
-
yes so i changed perms in Dockerfile https://github.com/zabbix/zabbix-doc...ine/Dockerfile and tried chmod chown .. nothing works. I even removed all containers , all images , reinstalled images after editing and still perms arr wrong. I just dont know how can i fix this ?Comment
-
-
https://github.com/zabbix/zabbix-doc...ntu/Dockerfile
as an example does it correctly. copy the two lines that are setting group and user permissions on that folder.Comment
-
so for just trial i added
chmod -R 777 /var/lib/zabbix/
chmod -R 777 /var/lib/zabbix/snmptraps
chmod -R 777 /var/lib
did
docker stop $(docker ps -aq)
docker rm $(docker ps -aq)
docker rmi $(docker images -q)
and then docker-compose -f docker-compose_v3_alpine_mysql_latest.yaml up -d
you would think it will work right ?
but nope.
after i do docker exec to container and do following ownership is still root:root
/var/lib/zabbix $ pwd
/var/lib/zabbix
/var/lib/zabbix $ ls -ltr
total 0
drwxr-xr-x 2 root root 6 Jun 4 18:34 snmptraps
drwxrwxr-x 2 zabbix root 6 Jun 4 19:57 mibs
Comment
-
-
Having similar issues with 5.0. Traps show in snmptrap.log and even docker logs but don't show up in the UI.Comment
-
Comment