Overview

Full name
docker.io/zabbix/zabbix-snmptraps
Registry
docker.io
Namespace
zabbix
Repository
zabbix-snmptraps
Cached tags
1959
Last synced
07/06/2026, 04:59 AM

Introduction

Zabbix SNMP Trap 接收器镜像,监听 UDP 162 解析设备告警 Trap,需 Zabbix Server 同栈配置 trapper 处理脚本。

Details

zabbix/zabbix-snmptraps 运行 snmptrapd 与 Zabbix trap 处理脚本,接收网络设备 SNMP Trap 并转发至 Zabbix Server。定位为监控 Trap 接收服务,需 hostNetwork 或 UDP 162 映射;K8s Deployment hostNetwork 或 docker 网络设备旁路部署。

快速启动

docker run -d --name zabbix-snmptraps \
  -p 162:1162/udp \
  -e ZBX_SERVER_HOST=zabbix-server \
  docker.io/zabbix/zabbix-snmptraps:latest

推荐实践

docker run -d --name zabbix-snmptraps \
  --restart unless-stopped \
  -p 162:1162/udp \
  -e ZBX_SERVER_HOST=zabbix-server.internal \
  -e ZBX_HOSTNAME=snmptraps \
  docker.io/zabbix/zabbix-snmptraps:6.4.0

核心参数说明

  • -p 162:1162/udp — SNMP Trap UDP 端口
  • -e ZBX_SERVER_HOST — Zabbix Server 地址
  • -e ZBX_HOSTNAME — trapper 主机名
  • 固定 tag — Zabbix 版本 pin

Kubernetes

apiVersion: apps/v1
kind: Deployment
metadata:
  name: zabbix-snmptraps
spec:
  replicas: 1
  selector:
    matchLabels:
      app: zabbix-snmptraps
  template:
    metadata:
      labels:
        app: zabbix-snmptraps
    spec:
      hostNetwork: true
      containers:
        - name: snmptraps
          image: docker.io/zabbix/zabbix-snmptraps:6.4.0
          ports:
            - containerPort: 1162
              protocol: UDP
          env:
            - name: ZBX_SERVER_HOST
              value: zabbix-server
---
apiVersion: v1
kind: Service
metadata:
  name: zabbix-snmptraps
spec:
  selector:
    app: zabbix-snmptraps
  ports:
    - port: 162
      targetPort: 1162
      protocol: UDP

hostNetwork 接收全网 Trap;Zabbix Server 独立 Deployment。

Latest tags (20)

View all 1959 tags →
TagArchPushed AtSizeDigestSyncWishAction
docker.io/zabbix/zabbix-snmptraps
:trunk-ubuntu
linux/amd64linux/arm64linux/ppc64le
2026/06/28 18:0969.3 MBsha256:c10c3f0ddf0a
docker.io/zabbix/zabbix-snmptraps
:ubuntu-trunk
linux/amd64linux/arm64linux/ppc64le
2026/06/28 18:0969.3 MBsha256:c10c3f0ddf0a
docker.io/zabbix/zabbix-snmptraps
:trunk-alpine
linux/amd64linux/arm64linux/s390xlinux/ppc64lelinux/riscv64
2026/06/28 18:045.9 MBsha256:5ed3ec0ec076
docker.io/zabbix/zabbix-snmptraps
:alpine-trunk
linux/amd64linux/arm64linux/s390xlinux/ppc64lelinux/riscv64
2026/06/28 18:045.9 MBsha256:5ed3ec0ec076
docker.io/zabbix/zabbix-snmptraps
:trunk-ol
linux/amd64linux/arm64
2026/06/28 18:0164.6 MBsha256:1f69b3329daf
docker.io/zabbix/zabbix-snmptraps
:ol-trunk
linux/amd64linux/arm64
2026/06/28 18:0164.6 MBsha256:1f69b3329daf
docker.io/zabbix/zabbix-snmptraps
:trunk-centos
linux/amd64linux/arm64linux/ppc64le
2026/06/28 18:0075.1 MBsha256:61c91c8d1d47
docker.io/zabbix/zabbix-snmptraps
:centos-trunk
linux/amd64linux/arm64linux/ppc64le
2026/06/28 18:0075.1 MBsha256:61c91c8d1d47
docker.io/zabbix/zabbix-snmptraps
:7.0-ubuntu-latest
linux/amd64linux/arm64linux/ppc64le
2026/06/21 23:0467.0 MBsha256:f212771db8af
docker.io/zabbix/zabbix-snmptraps
:ubuntu-7.0-latest
linux/amd64linux/arm64linux/ppc64le
2026/06/21 23:0467.0 MBsha256:f212771db8af
docker.io/zabbix/zabbix-snmptraps
:7.0-centos-latest
linux/amd64linux/arm64
2026/06/21 22:5275.1 MBsha256:14c4157bb5fd
docker.io/zabbix/zabbix-snmptraps
:centos-7.0-latest
linux/amd64linux/arm64
2026/06/21 22:5275.1 MBsha256:14c4157bb5fd
docker.io/zabbix/zabbix-snmptraps
:7.0-alpine-latest
linux/amd64linux/arm64linux/s390xlinux/ppc64le
2026/06/21 22:495.9 MBsha256:59fa6d69fcf1
docker.io/zabbix/zabbix-snmptraps
:alpine-7.0-latest
linux/amd64linux/arm64linux/s390xlinux/ppc64le
2026/06/21 22:495.9 MBsha256:59fa6d69fcf1
docker.io/zabbix/zabbix-snmptraps
:7.0-ol-latest
linux/amd64linux/arm64
2026/06/21 22:4764.6 MBsha256:46e448a89f48
docker.io/zabbix/zabbix-snmptraps
:ol-7.0-latest
linux/amd64linux/arm64
2026/06/21 22:4764.6 MBsha256:46e448a89f48
docker.io/zabbix/zabbix-snmptraps
:ubuntu-latest
linux/amd64linux/arm64linux/ppc64le
2026/06/21 14:5267.0 MBsha256:2000e7d5e9d0
docker.io/zabbix/zabbix-snmptraps
:7.4-ubuntu-latest
linux/amd64linux/arm64linux/ppc64le
2026/06/21 14:5267.0 MBsha256:2000e7d5e9d0
docker.io/zabbix/zabbix-snmptraps
:ubuntu-7.4-latest
linux/amd64linux/arm64linux/ppc64le
2026/06/21 14:5267.0 MBsha256:2000e7d5e9d0
docker.io/zabbix/zabbix-snmptraps
:ol-latest
linux/amd64linux/arm64
2026/06/21 14:4764.6 MBsha256:8ba3275a060f