From de2f409ea10a41cda39d946d6c28ebe901481847 Mon Sep 17 00:00:00 2001 From: Alexey Pustovalov Date: Fri, 24 Jul 2026 18:59:43 +0900 Subject: [PATCH] Removed PID from snmptraps image. Possible to use readonly filesystem --- compose_zabbix_components.yaml | 1 - templates/config/snmptraps/snmp/snmptrapd.conf | 2 -- 2 files changed, 3 deletions(-) diff --git a/compose_zabbix_components.yaml b/compose_zabbix_components.yaml index 60a58896..c1fcfe3c 100644 --- a/compose_zabbix_components.yaml +++ b/compose_zabbix_components.yaml @@ -653,7 +653,6 @@ services: - snmptraps:/var/lib/zabbix/snmptraps:rwz - ${DATA_DIRECTORY}/var/lib/zabbix/snmptrapd_config:/var/lib/zabbix/snmptrapd_config:rw - ${DATA_DIRECTORY}/var/lib/zabbix/mibs:/var/lib/zabbix/mibs:ro - tmpfs: /tmp deploy: resources: limits: diff --git a/templates/config/snmptraps/snmp/snmptrapd.conf b/templates/config/snmptraps/snmp/snmptrapd.conf index f14d8ef6..d8b25606 100644 --- a/templates/config/snmptraps/snmp/snmptrapd.conf +++ b/templates/config/snmptraps/snmp/snmptrapd.conf @@ -4,8 +4,6 @@ snmpTrapdAddr udp6:1162 # Do not fork from the calling shell doNotFork yes -# File in which to store the process ID of the notification receiver -pidFile /tmp/snmptrapd.pid # Disables support for the NOTIFICATION-LOG-MIB #doNotRetainNotificationLogs yes