From 6205742aeafc689b9abb98f0c9682a3a9ccd535c Mon Sep 17 00:00:00 2001 From: Alexey Pustovalov Date: Fri, 21 Jun 2024 13:46:09 +0900 Subject: [PATCH] Fixed warnings for snmtraps image --- Dockerfiles/snmptraps/alpine/Dockerfile | 2 +- Dockerfiles/snmptraps/alpine/conf/etc/snmp/snmptrapd.conf | 2 +- Dockerfiles/snmptraps/centos/Dockerfile | 2 +- Dockerfiles/snmptraps/centos/conf/etc/snmp/snmptrapd.conf | 2 +- Dockerfiles/snmptraps/ol/Dockerfile | 2 +- Dockerfiles/snmptraps/ol/conf/etc/snmp/snmptrapd.conf | 2 +- Dockerfiles/snmptraps/rhel/Dockerfile | 2 +- Dockerfiles/snmptraps/rhel/conf/etc/snmp/snmptrapd.conf | 2 +- Dockerfiles/snmptraps/ubuntu/Dockerfile | 2 +- Dockerfiles/snmptraps/ubuntu/conf/etc/snmp/snmptrapd.conf | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Dockerfiles/snmptraps/alpine/Dockerfile b/Dockerfiles/snmptraps/alpine/Dockerfile index 6dda140a4..27a275fa2 100644 --- a/Dockerfiles/snmptraps/alpine/Dockerfile +++ b/Dockerfiles/snmptraps/alpine/Dockerfile @@ -62,4 +62,4 @@ COPY ["conf/usr/sbin/zabbix_trap_handler.sh", "/usr/sbin/"] USER 1997 -CMD ["/usr/sbin/snmptrapd", "-n", "-t", "-X", "-C", "-c", "/etc/snmp/snmptrapd.conf", "-Lo", "-A", "--doNotFork=yes", "--agentuser=zabbix", "--agentgroup=zabbix"] +CMD ["/usr/sbin/snmptrapd", "-n", "-t", "-X", "-C", "-c", "/etc/snmp/snmptrapd.conf", "-Lo", "-A", "--doNotFork=yes", "--agentuser=zabbix"] diff --git a/Dockerfiles/snmptraps/alpine/conf/etc/snmp/snmptrapd.conf b/Dockerfiles/snmptraps/alpine/conf/etc/snmp/snmptrapd.conf index aa3bbf1dd..5f4e7de28 100644 --- a/Dockerfiles/snmptraps/alpine/conf/etc/snmp/snmptrapd.conf +++ b/Dockerfiles/snmptraps/alpine/conf/etc/snmp/snmptrapd.conf @@ -7,7 +7,7 @@ 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 +#doNotRetainNotificationLogs yes authCommunity log,execute,net public disableAuthorization yes diff --git a/Dockerfiles/snmptraps/centos/Dockerfile b/Dockerfiles/snmptraps/centos/Dockerfile index 8888895a2..a2b6be573 100644 --- a/Dockerfiles/snmptraps/centos/Dockerfile +++ b/Dockerfiles/snmptraps/centos/Dockerfile @@ -73,4 +73,4 @@ COPY ["conf/usr/sbin/zabbix_trap_handler.sh", "/usr/sbin/"] USER 1997 -CMD ["/usr/sbin/snmptrapd", "-n", "-t", "-X", "-C", "-c", "/etc/snmp/snmptrapd.conf", "-Lo", "-A", "--doNotFork=yes", "--agentuser=zabbix", "--agentgroup=zabbix"] +CMD ["/usr/sbin/snmptrapd", "-n", "-t", "-X", "-C", "-c", "/etc/snmp/snmptrapd.conf", "-Lo", "-A", "--doNotFork=yes", "--agentuser=zabbix"] diff --git a/Dockerfiles/snmptraps/centos/conf/etc/snmp/snmptrapd.conf b/Dockerfiles/snmptraps/centos/conf/etc/snmp/snmptrapd.conf index aa3bbf1dd..5f4e7de28 100644 --- a/Dockerfiles/snmptraps/centos/conf/etc/snmp/snmptrapd.conf +++ b/Dockerfiles/snmptraps/centos/conf/etc/snmp/snmptrapd.conf @@ -7,7 +7,7 @@ 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 +#doNotRetainNotificationLogs yes authCommunity log,execute,net public disableAuthorization yes diff --git a/Dockerfiles/snmptraps/ol/Dockerfile b/Dockerfiles/snmptraps/ol/Dockerfile index 7fb61966e..cb7b43a41 100644 --- a/Dockerfiles/snmptraps/ol/Dockerfile +++ b/Dockerfiles/snmptraps/ol/Dockerfile @@ -68,4 +68,4 @@ COPY ["conf/usr/sbin/zabbix_trap_handler.sh", "/usr/sbin/"] USER 1997 -CMD ["/usr/sbin/snmptrapd", "-n", "-t", "-X", "-C", "-c", "/etc/snmp/snmptrapd.conf", "-Lo", "-A", "--doNotFork=yes", "--agentuser=zabbix", "--agentgroup=zabbix"] +CMD ["/usr/sbin/snmptrapd", "-n", "-t", "-X", "-C", "-c", "/etc/snmp/snmptrapd.conf", "-Lo", "-A", "--doNotFork=yes", "--agentuser=zabbix"] diff --git a/Dockerfiles/snmptraps/ol/conf/etc/snmp/snmptrapd.conf b/Dockerfiles/snmptraps/ol/conf/etc/snmp/snmptrapd.conf index aa3bbf1dd..5f4e7de28 100644 --- a/Dockerfiles/snmptraps/ol/conf/etc/snmp/snmptrapd.conf +++ b/Dockerfiles/snmptraps/ol/conf/etc/snmp/snmptrapd.conf @@ -7,7 +7,7 @@ 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 +#doNotRetainNotificationLogs yes authCommunity log,execute,net public disableAuthorization yes diff --git a/Dockerfiles/snmptraps/rhel/Dockerfile b/Dockerfiles/snmptraps/rhel/Dockerfile index f36d4f2b4..0f326cddc 100644 --- a/Dockerfiles/snmptraps/rhel/Dockerfile +++ b/Dockerfiles/snmptraps/rhel/Dockerfile @@ -107,4 +107,4 @@ COPY ["conf/usr/sbin/zabbix_trap_handler.sh", "/usr/sbin/"] USER 1997 -CMD ["/usr/sbin/snmptrapd", "-n", "-t", "-X", "-C", "-c", "/etc/snmp/snmptrapd.conf", "-Lo", "-A", "--doNotFork=yes", "--agentuser=zabbix", "--agentgroup=zabbix"] +CMD ["/usr/sbin/snmptrapd", "-n", "-t", "-X", "-C", "-c", "/etc/snmp/snmptrapd.conf", "-Lo", "-A", "--doNotFork=yes", "--agentuser=zabbix"] diff --git a/Dockerfiles/snmptraps/rhel/conf/etc/snmp/snmptrapd.conf b/Dockerfiles/snmptraps/rhel/conf/etc/snmp/snmptrapd.conf index aa3bbf1dd..5f4e7de28 100644 --- a/Dockerfiles/snmptraps/rhel/conf/etc/snmp/snmptrapd.conf +++ b/Dockerfiles/snmptraps/rhel/conf/etc/snmp/snmptrapd.conf @@ -7,7 +7,7 @@ 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 +#doNotRetainNotificationLogs yes authCommunity log,execute,net public disableAuthorization yes diff --git a/Dockerfiles/snmptraps/ubuntu/Dockerfile b/Dockerfiles/snmptraps/ubuntu/Dockerfile index bc7459ede..61681b9e2 100644 --- a/Dockerfiles/snmptraps/ubuntu/Dockerfile +++ b/Dockerfiles/snmptraps/ubuntu/Dockerfile @@ -64,4 +64,4 @@ COPY ["conf/usr/sbin/zabbix_trap_handler.sh", "/usr/sbin/"] USER 1997 -CMD ["/usr/sbin/snmptrapd", "-n", "-t", "-X", "-C", "-c", "/etc/snmp/snmptrapd.conf", "-Lo", "-A", "--doNotFork=yes", "--agentuser=zabbix", "--agentgroup=zabbix"] +CMD ["/usr/sbin/snmptrapd", "-n", "-t", "-X", "-C", "-c", "/etc/snmp/snmptrapd.conf", "-Lo", "-A", "--doNotFork=yes", "--agentuser=zabbix"] diff --git a/Dockerfiles/snmptraps/ubuntu/conf/etc/snmp/snmptrapd.conf b/Dockerfiles/snmptraps/ubuntu/conf/etc/snmp/snmptrapd.conf index aa3bbf1dd..5f4e7de28 100644 --- a/Dockerfiles/snmptraps/ubuntu/conf/etc/snmp/snmptrapd.conf +++ b/Dockerfiles/snmptraps/ubuntu/conf/etc/snmp/snmptrapd.conf @@ -7,7 +7,7 @@ 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 +#doNotRetainNotificationLogs yes authCommunity log,execute,net public disableAuthorization yes