mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-06-14 05:47:38 +02:00
Merge branch 'master' into 5.0
This commit is contained in:
commit
4bb0a88515
@ -27,6 +27,7 @@ This repository contains **Dockerfile** of [Zabbix](https://zabbix.com/) for [Do
|
|||||||
Please follow usage instructions of each Zabbix component image:
|
Please follow usage instructions of each Zabbix component image:
|
||||||
|
|
||||||
* [zabbix-appliance](https://hub.docker.com/r/zabbix/zabbix-appliance/) - Zabbix appliance with built-in MySQL server, Zabbix server, Zabbix Java Gateway and Zabbix frontend based on Nginx web-server
|
* [zabbix-appliance](https://hub.docker.com/r/zabbix/zabbix-appliance/) - Zabbix appliance with built-in MySQL server, Zabbix server, Zabbix Java Gateway and Zabbix frontend based on Nginx web-server
|
||||||
|
> **Important information: Zabbix Docker Appliance has been decommissioned (except Red Hat edition) and will not be available for 3.0.31, 4.0.19, 4.4.7, 5.0.0 and newer releases. Please use a separate Docker images for each component instead of the all-in-one solution.**
|
||||||
|
|
||||||
* [zabbix-agent](https://hub.docker.com/r/zabbix/zabbix-agent/) - Zabbix agent
|
* [zabbix-agent](https://hub.docker.com/r/zabbix/zabbix-agent/) - Zabbix agent
|
||||||
* [zabbix-server-mysql](https://hub.docker.com/r/zabbix/zabbix-server-mysql/) - Zabbix server with MySQL database support
|
* [zabbix-server-mysql](https://hub.docker.com/r/zabbix/zabbix-server-mysql/) - Zabbix server with MySQL database support
|
||||||
|
@ -5,7 +5,8 @@ ARG ZBX_VERSION=${MAJOR_VERSION}.8
|
|||||||
ARG ZBX_SOURCES=https://git.zabbix.com/scm/zbx/zabbix.git
|
ARG ZBX_SOURCES=https://git.zabbix.com/scm/zbx/zabbix.git
|
||||||
|
|
||||||
ENV TERM=xterm ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
ENV TERM=xterm ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
||||||
MIBDIRS=/usr/share/snmp/mibs:/var/lib/zabbix/mibs MIBS=+ALL
|
MIBDIRS=/usr/share/snmp/mibs:/var/lib/zabbix/mibs MIBS=+ALL \
|
||||||
|
ZBX_SNMP_TRAP_DATE_FORMAT=+%Y%m%d.%H%M%S ZBX_SNMP_TRAP_FORMAT=" "
|
||||||
|
|
||||||
LABEL org.opencontainers.image.title="zabbix-snmptraps-alpine" \
|
LABEL org.opencontainers.image.title="zabbix-snmptraps-alpine" \
|
||||||
org.opencontainers.image.authors="Alexey Pustovalov <alexey.pustovalov@zabbix.com>" \
|
org.opencontainers.image.authors="Alexey Pustovalov <alexey.pustovalov@zabbix.com>" \
|
||||||
@ -31,6 +32,7 @@ RUN set -eux && \
|
|||||||
adduser zabbix root && \
|
adduser zabbix root && \
|
||||||
apk update && \
|
apk update && \
|
||||||
apk add --clean-protected --no-cache \
|
apk add --clean-protected --no-cache \
|
||||||
|
bash \
|
||||||
tzdata \
|
tzdata \
|
||||||
net-snmp && \
|
net-snmp && \
|
||||||
touch /var/lib/net-snmp/snmptrapd.conf && \
|
touch /var/lib/net-snmp/snmptrapd.conf && \
|
||||||
@ -50,6 +52,7 @@ VOLUME ["/var/lib/zabbix/snmptraps"]
|
|||||||
|
|
||||||
COPY ["conf/etc/logrotate.d/zabbix_snmptraps", "/etc/logrotate.d/"]
|
COPY ["conf/etc/logrotate.d/zabbix_snmptraps", "/etc/logrotate.d/"]
|
||||||
COPY ["conf/etc/snmp/snmptrapd.conf", "/etc/snmp/"]
|
COPY ["conf/etc/snmp/snmptrapd.conf", "/etc/snmp/"]
|
||||||
|
COPY ["conf/usr/sbin/zabbix_trap_handler.sh", "/usr/sbin/"]
|
||||||
|
|
||||||
USER 1997
|
USER 1997
|
||||||
|
|
||||||
|
@ -1,13 +1,31 @@
|
|||||||
snmpTrapdAddr udp:0.0.0.0:1162
|
# A list of listening addresses, on which to receive incoming SNMP notifications
|
||||||
|
snmpTrapdAddr udp:1162
|
||||||
|
snmpTrapdAddr udp6:1162
|
||||||
|
|
||||||
|
# Do not fork from the calling shell
|
||||||
doNotFork yes
|
doNotFork yes
|
||||||
|
# File in which to store the process ID of the notification receiver
|
||||||
pidFile /tmp/snmptrapd.pid
|
pidFile /tmp/snmptrapd.pid
|
||||||
|
# Disables support for the NOTIFICATION-LOG-MIB
|
||||||
doNotRetainNotificationLogs yes
|
doNotRetainNotificationLogs yes
|
||||||
|
|
||||||
authCommunity log,execute,net public
|
authCommunity log,execute,net public
|
||||||
disableAuthorization yes
|
disableAuthorization yes
|
||||||
|
ignoreAuthFailure yes
|
||||||
|
|
||||||
format1 %V\n%.4y%.2m%.2l.%.2h:%.2j:%.2k ZBXTRAP %A\n%b\n%v\n
|
# Specify the format used for trap handle location
|
||||||
format2 %V\n%.4y%.2m%.2l.%.2h:%.2j:%.2k ZBXTRAP %A\n%b\n%v\n
|
#format execute %B\n%b\n%V\n%v\n
|
||||||
|
|
||||||
[snmp] logOption f /var/lib/zabbix/snmptraps/snmptraps.log
|
# o - Log messages to the standard output stream.
|
||||||
|
# logOption o
|
||||||
|
|
||||||
|
# S - Display the name of the MIB, as well as the object name (This is the default OID output format)
|
||||||
|
# T - If values are printed as Hex strings, display a printable version as well
|
||||||
|
# t - Display TimeTicks values as raw numbers
|
||||||
|
# e - Removes the symbolic labels from enumeration values
|
||||||
|
#
|
||||||
|
outputOption STte
|
||||||
|
|
||||||
|
# Invokes the specified program (with the given arguments) whenever a notification
|
||||||
|
# is received that matches the OID token
|
||||||
|
traphandle default /bin/bash /usr/sbin/zabbix_trap_handler.sh
|
||||||
|
43
snmptraps/alpine/conf/usr/sbin/zabbix_trap_handler.sh
Normal file
43
snmptraps/alpine/conf/usr/sbin/zabbix_trap_handler.sh
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
ZABBIX_TRAPS_FILE="/var/lib/zabbix/snmptraps/snmptraps.log"
|
||||||
|
|
||||||
|
ZBX_SNMP_TRAP_DATE_FORMAT=${ZBX_SNMP_TRAP_DATE_FORMAT:-"+%Y%m%d.%H%M%S"}
|
||||||
|
|
||||||
|
ZBX_SNMP_TRAP_FORMAT=${ZBX_SNMP_TRAP_FORMAT:-" "}
|
||||||
|
|
||||||
|
date=$(date "$ZBX_SNMP_TRAP_DATE_FORMAT")
|
||||||
|
|
||||||
|
# The name of the host that sent the notification, as determined by gethostbyaddr(3).
|
||||||
|
# In fact this line is irrelevant and useless since snmptrapd basically attempts to
|
||||||
|
# perform reverse name lookup for the transport address (see below).
|
||||||
|
# In case of failure it will print "<UNKNOWN>"
|
||||||
|
read host
|
||||||
|
# The transport address, like "[UDP: [172.16.10.12]:23456->[10.150.0.8]]"
|
||||||
|
read sender
|
||||||
|
# The first OID should always be SNMPv2-MIB::sysUpTime.0
|
||||||
|
#read uptime
|
||||||
|
# the second should be SNMPv2-MIB::snmpTrapOID.0
|
||||||
|
#read trapoid
|
||||||
|
|
||||||
|
# The remaining lines will contain the payload varbind list. For SNMPv1 traps, the final OID will be SNMPv2-MIB::snmpTrapEnterprise.0.
|
||||||
|
vars=
|
||||||
|
while read oid val
|
||||||
|
do
|
||||||
|
if [ "$vars" = "" ]
|
||||||
|
then
|
||||||
|
vars="$oid = $val"
|
||||||
|
else
|
||||||
|
vars="$vars$ZBX_SNMP_TRAP_FORMAT$oid = $val"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ "$oid" =~ snmpTrapAddress\.0 ]] || [[ "$oid" =~ 1\.3\.6\.1\.6\.3\.18\.1\.3\.0 ]]; then
|
||||||
|
trap_address=$val
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
[[ ${sender} =~ \[(.*?)\].*\-\> ]] && sender_addr=${BASH_REMATCH[1]}
|
||||||
|
|
||||||
|
! [ -z $trap_address ] && sender_addr=$trap_address
|
||||||
|
|
||||||
|
echo -e "$date ZBXTRAP $sender_addr$ZBX_SNMP_TRAP_FORMAT$sender$ZBX_SNMP_TRAP_FORMAT$vars" >> $ZABBIX_TRAPS_FILE
|
@ -5,7 +5,8 @@ ARG ZBX_VERSION=${MAJOR_VERSION}.8
|
|||||||
ARG ZBX_SOURCES=https://git.zabbix.com/scm/zbx/zabbix.git
|
ARG ZBX_SOURCES=https://git.zabbix.com/scm/zbx/zabbix.git
|
||||||
|
|
||||||
ENV TERM=xterm ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
ENV TERM=xterm ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
||||||
MIBDIRS=/usr/share/snmp/mibs:/var/lib/zabbix/mibs MIBS=+ALL
|
MIBDIRS=/usr/share/snmp/mibs:/var/lib/zabbix/mibs MIBS=+ALL \
|
||||||
|
ZBX_SNMP_TRAP_DATE_FORMAT=+%Y%m%d.%H%M%S ZBX_SNMP_TRAP_FORMAT=" "
|
||||||
|
|
||||||
LABEL org.opencontainers.image.title="zabbix-snmptraps-centos" \
|
LABEL org.opencontainers.image.title="zabbix-snmptraps-centos" \
|
||||||
org.opencontainers.image.authors="Alexey Pustovalov <alexey.pustovalov@zabbix.com>" \
|
org.opencontainers.image.authors="Alexey Pustovalov <alexey.pustovalov@zabbix.com>" \
|
||||||
@ -51,6 +52,7 @@ VOLUME ["/var/lib/zabbix/snmptraps"]
|
|||||||
|
|
||||||
COPY ["conf/etc/logrotate.d/zabbix_snmptraps", "/etc/logrotate.d/"]
|
COPY ["conf/etc/logrotate.d/zabbix_snmptraps", "/etc/logrotate.d/"]
|
||||||
COPY ["conf/etc/snmp/snmptrapd.conf", "/etc/snmp/"]
|
COPY ["conf/etc/snmp/snmptrapd.conf", "/etc/snmp/"]
|
||||||
|
COPY ["conf/usr/sbin/zabbix_trap_handler.sh", "/usr/sbin/"]
|
||||||
|
|
||||||
USER 1997
|
USER 1997
|
||||||
|
|
||||||
|
@ -1,13 +1,31 @@
|
|||||||
snmpTrapdAddr udp:0.0.0.0:1162
|
# A list of listening addresses, on which to receive incoming SNMP notifications
|
||||||
|
snmpTrapdAddr udp:1162
|
||||||
|
snmpTrapdAddr udp6:1162
|
||||||
|
|
||||||
|
# Do not fork from the calling shell
|
||||||
doNotFork yes
|
doNotFork yes
|
||||||
|
# File in which to store the process ID of the notification receiver
|
||||||
pidFile /tmp/snmptrapd.pid
|
pidFile /tmp/snmptrapd.pid
|
||||||
|
# Disables support for the NOTIFICATION-LOG-MIB
|
||||||
doNotRetainNotificationLogs yes
|
doNotRetainNotificationLogs yes
|
||||||
|
|
||||||
authCommunity log,execute,net public
|
authCommunity log,execute,net public
|
||||||
disableAuthorization yes
|
disableAuthorization yes
|
||||||
|
ignoreAuthFailure yes
|
||||||
|
|
||||||
format1 %V\n%.4y%.2m%.2l.%.2h:%.2j:%.2k ZBXTRAP %A\n%b\n%v\n
|
# Specify the format used for trap handle location
|
||||||
format2 %V\n%.4y%.2m%.2l.%.2h:%.2j:%.2k ZBXTRAP %A\n%b\n%v\n
|
#format execute %B\n%b\n%V\n%v\n
|
||||||
|
|
||||||
[snmp] logOption f /var/lib/zabbix/snmptraps/snmptraps.log
|
# o - Log messages to the standard output stream.
|
||||||
|
# logOption o
|
||||||
|
|
||||||
|
# S - Display the name of the MIB, as well as the object name (This is the default OID output format)
|
||||||
|
# T - If values are printed as Hex strings, display a printable version as well
|
||||||
|
# t - Display TimeTicks values as raw numbers
|
||||||
|
# e - Removes the symbolic labels from enumeration values
|
||||||
|
#
|
||||||
|
outputOption STte
|
||||||
|
|
||||||
|
# Invokes the specified program (with the given arguments) whenever a notification
|
||||||
|
# is received that matches the OID token
|
||||||
|
traphandle default /bin/bash /usr/sbin/zabbix_trap_handler.sh
|
||||||
|
43
snmptraps/centos/conf/usr/sbin/zabbix_trap_handler.sh
Normal file
43
snmptraps/centos/conf/usr/sbin/zabbix_trap_handler.sh
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
ZABBIX_TRAPS_FILE="/var/lib/zabbix/snmptraps/snmptraps.log"
|
||||||
|
|
||||||
|
ZBX_SNMP_TRAP_DATE_FORMAT=${ZBX_SNMP_TRAP_DATE_FORMAT:-"+%Y%m%d.%H%M%S"}
|
||||||
|
|
||||||
|
ZBX_SNMP_TRAP_FORMAT=${ZBX_SNMP_TRAP_FORMAT:-" "}
|
||||||
|
|
||||||
|
date=$(date "$ZBX_SNMP_TRAP_DATE_FORMAT")
|
||||||
|
|
||||||
|
# The name of the host that sent the notification, as determined by gethostbyaddr(3).
|
||||||
|
# In fact this line is irrelevant and useless since snmptrapd basically attempts to
|
||||||
|
# perform reverse name lookup for the transport address (see below).
|
||||||
|
# In case of failure it will print "<UNKNOWN>"
|
||||||
|
read host
|
||||||
|
# The transport address, like "[UDP: [172.16.10.12]:23456->[10.150.0.8]]"
|
||||||
|
read sender
|
||||||
|
# The first OID should always be SNMPv2-MIB::sysUpTime.0
|
||||||
|
#read uptime
|
||||||
|
# the second should be SNMPv2-MIB::snmpTrapOID.0
|
||||||
|
#read trapoid
|
||||||
|
|
||||||
|
# The remaining lines will contain the payload varbind list. For SNMPv1 traps, the final OID will be SNMPv2-MIB::snmpTrapEnterprise.0.
|
||||||
|
vars=
|
||||||
|
while read oid val
|
||||||
|
do
|
||||||
|
if [ "$vars" = "" ]
|
||||||
|
then
|
||||||
|
vars="$oid = $val"
|
||||||
|
else
|
||||||
|
vars="$vars$ZBX_SNMP_TRAP_FORMAT$oid = $val"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ "$oid" =~ snmpTrapAddress\.0 ]] || [[ "$oid" =~ 1\.3\.6\.1\.6\.3\.18\.1\.3\.0 ]]; then
|
||||||
|
trap_address=$val
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
[[ ${sender} =~ \[(.*?)\].*\-\> ]] && sender_addr=${BASH_REMATCH[1]}
|
||||||
|
|
||||||
|
! [ -z $trap_address ] && sender_addr=$trap_address
|
||||||
|
|
||||||
|
echo -e "$date ZBXTRAP $sender_addr$ZBX_SNMP_TRAP_FORMAT$vars" >> $ZABBIX_TRAPS_FILE
|
@ -5,7 +5,8 @@ ARG ZBX_VERSION=${MAJOR_VERSION}.8
|
|||||||
ARG ZBX_SOURCES=https://git.zabbix.com/scm/zbx/zabbix.git
|
ARG ZBX_SOURCES=https://git.zabbix.com/scm/zbx/zabbix.git
|
||||||
|
|
||||||
ENV TERM=xterm ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
ENV TERM=xterm ZBX_VERSION=${ZBX_VERSION} ZBX_SOURCES=${ZBX_SOURCES} \
|
||||||
MIBDIRS=/var/lib/snmp/mibs/ietf:/var/lib/snmp/mibs/iana:/usr/share/snmp/mibs:/var/lib/zabbix/mibs MIBS=+ALL
|
MIBDIRS=/var/lib/snmp/mibs/ietf:/var/lib/snmp/mibs/iana:/usr/share/snmp/mibs:/var/lib/zabbix/mibs MIBS=+ALL \
|
||||||
|
ZBX_SNMP_TRAP_DATE_FORMAT=+%Y%m%d.%H%M%S ZBX_SNMP_TRAP_FORMAT=" "
|
||||||
|
|
||||||
LABEL org.opencontainers.image.title="zabbix-snmptraps-ubuntu" \
|
LABEL org.opencontainers.image.title="zabbix-snmptraps-ubuntu" \
|
||||||
org.opencontainers.image.authors="Alexey Pustovalov <alexey.pustovalov@zabbix.com>" \
|
org.opencontainers.image.authors="Alexey Pustovalov <alexey.pustovalov@zabbix.com>" \
|
||||||
@ -50,6 +51,7 @@ VOLUME ["/var/lib/zabbix/snmptraps"]
|
|||||||
|
|
||||||
COPY ["conf/etc/logrotate.d/zabbix_snmptraps", "/etc/logrotate.d/"]
|
COPY ["conf/etc/logrotate.d/zabbix_snmptraps", "/etc/logrotate.d/"]
|
||||||
COPY ["conf/etc/snmp/snmptrapd.conf", "/etc/snmp/"]
|
COPY ["conf/etc/snmp/snmptrapd.conf", "/etc/snmp/"]
|
||||||
|
COPY ["conf/usr/sbin/zabbix_trap_handler.sh", "/usr/sbin/"]
|
||||||
|
|
||||||
USER 1997
|
USER 1997
|
||||||
|
|
||||||
|
@ -1,13 +1,31 @@
|
|||||||
snmpTrapdAddr udp:0.0.0.0:1162
|
# A list of listening addresses, on which to receive incoming SNMP notifications
|
||||||
|
snmpTrapdAddr udp:1162
|
||||||
|
snmpTrapdAddr udp6:1162
|
||||||
|
|
||||||
|
# Do not fork from the calling shell
|
||||||
doNotFork yes
|
doNotFork yes
|
||||||
|
# File in which to store the process ID of the notification receiver
|
||||||
pidFile /tmp/snmptrapd.pid
|
pidFile /tmp/snmptrapd.pid
|
||||||
|
# Disables support for the NOTIFICATION-LOG-MIB
|
||||||
doNotRetainNotificationLogs yes
|
doNotRetainNotificationLogs yes
|
||||||
|
|
||||||
authCommunity log,execute,net public
|
authCommunity log,execute,net public
|
||||||
disableAuthorization yes
|
disableAuthorization yes
|
||||||
|
ignoreAuthFailure yes
|
||||||
|
|
||||||
format1 %V\n%.4y%.2m%.2l.%.2h:%.2j:%.2k ZBXTRAP %A\n%b\n%v\n
|
# Specify the format used for trap handle location
|
||||||
format2 %V\n%.4y%.2m%.2l.%.2h:%.2j:%.2k ZBXTRAP %A\n%b\n%v\n
|
#format execute %B\n%b\n%V\n%v\n
|
||||||
|
|
||||||
[snmp] logOption f /var/lib/zabbix/snmptraps/snmptraps.log
|
# o - Log messages to the standard output stream.
|
||||||
|
# logOption o
|
||||||
|
|
||||||
|
# S - Display the name of the MIB, as well as the object name (This is the default OID output format)
|
||||||
|
# T - If values are printed as Hex strings, display a printable version as well
|
||||||
|
# t - Display TimeTicks values as raw numbers
|
||||||
|
# e - Removes the symbolic labels from enumeration values
|
||||||
|
#
|
||||||
|
outputOption STte
|
||||||
|
|
||||||
|
# Invokes the specified program (with the given arguments) whenever a notification
|
||||||
|
# is received that matches the OID token
|
||||||
|
traphandle default /bin/bash /usr/sbin/zabbix_trap_handler.sh
|
||||||
|
43
snmptraps/ubuntu/conf/usr/sbin/zabbix_trap_handler.sh
Normal file
43
snmptraps/ubuntu/conf/usr/sbin/zabbix_trap_handler.sh
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
ZABBIX_TRAPS_FILE="/var/lib/zabbix/snmptraps/snmptraps.log"
|
||||||
|
|
||||||
|
ZBX_SNMP_TRAP_DATE_FORMAT=${ZBX_SNMP_TRAP_DATE_FORMAT:-"+%Y%m%d.%H%M%S"}
|
||||||
|
|
||||||
|
ZBX_SNMP_TRAP_FORMAT=${ZBX_SNMP_TRAP_FORMAT:-" "}
|
||||||
|
|
||||||
|
date=$(date "$ZBX_SNMP_TRAP_DATE_FORMAT")
|
||||||
|
|
||||||
|
# The name of the host that sent the notification, as determined by gethostbyaddr(3).
|
||||||
|
# In fact this line is irrelevant and useless since snmptrapd basically attempts to
|
||||||
|
# perform reverse name lookup for the transport address (see below).
|
||||||
|
# In case of failure it will print "<UNKNOWN>"
|
||||||
|
read host
|
||||||
|
# The transport address, like "[UDP: [172.16.10.12]:23456->[10.150.0.8]]"
|
||||||
|
read sender
|
||||||
|
# The first OID should always be SNMPv2-MIB::sysUpTime.0
|
||||||
|
#read uptime
|
||||||
|
# the second should be SNMPv2-MIB::snmpTrapOID.0
|
||||||
|
#read trapoid
|
||||||
|
|
||||||
|
# The remaining lines will contain the payload varbind list. For SNMPv1 traps, the final OID will be SNMPv2-MIB::snmpTrapEnterprise.0.
|
||||||
|
vars=
|
||||||
|
while read oid val
|
||||||
|
do
|
||||||
|
if [ "$vars" = "" ]
|
||||||
|
then
|
||||||
|
vars="$oid = $val"
|
||||||
|
else
|
||||||
|
vars="$vars$ZBX_SNMP_TRAP_FORMAT$oid = $val"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ "$oid" =~ snmpTrapAddress\.0 ]] || [[ "$oid" =~ 1\.3\.6\.1\.6\.3\.18\.1\.3\.0 ]]; then
|
||||||
|
trap_address=$val
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
[[ ${sender} =~ \[(.*?)\].*\-\> ]] && sender_addr=${BASH_REMATCH[1]}
|
||||||
|
|
||||||
|
! [ -z $trap_address ] && sender_addr=$trap_address
|
||||||
|
|
||||||
|
echo -e "$date ZBXTRAP $sender_addr$ZBX_SNMP_TRAP_FORMAT$vars" >> $ZABBIX_TRAPS_FILE
|
Loading…
x
Reference in New Issue
Block a user