mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2025-08-09 16:45:05 +02:00
Fix path to External scripts and Alert scripts
This commit is contained in:
@ -74,6 +74,7 @@ RUN apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
||||
--silent \
|
||||
--sysconfdir=/etc/zabbix \
|
||||
--libdir=/usr/lib/zabbix \
|
||||
--datadir=/usr/lib \
|
||||
--enable-server \
|
||||
--enable-ipv6 \
|
||||
# Does not support stable iksemel library
|
||||
|
@ -610,6 +610,9 @@ update_zbx_config() {
|
||||
update_config_var $ZBX_CONFIG "UnavailableDelay" "${ZBX_UNAVAILABLEDELAY}"
|
||||
update_config_var $ZBX_CONFIG "UnreachableDelay" "${ZBX_UNREACHABLEDELAY}"
|
||||
|
||||
update_config_var $ZBX_CONFIG "AlertScriptsPath" "/usr/lib/zabbix/alertscripts"
|
||||
update_config_var $ZBX_CONFIG "ExternalScripts" "/usr/lib/zabbix/externalscripts"
|
||||
|
||||
# Possible few fping locations
|
||||
if [ -f "/usr/bin/fping" ]; then
|
||||
update_config_var $ZBX_CONFIG "FpingLocation" "/usr/bin/fping"
|
||||
|
@ -82,6 +82,7 @@ RUN apt-get ${APT_FLAGS_COMMON} update && \
|
||||
--silent \
|
||||
--sysconfdir=/etc/zabbix \
|
||||
--libdir=/usr/lib/zabbix \
|
||||
--datadir=/usr/lib \
|
||||
--enable-server \
|
||||
--enable-ipv6 \
|
||||
--with-jabber \
|
||||
|
@ -610,6 +610,9 @@ update_zbx_config() {
|
||||
update_config_var $ZBX_CONFIG "UnavailableDelay" "${ZBX_UNAVAILABLEDELAY}"
|
||||
update_config_var $ZBX_CONFIG "UnreachableDelay" "${ZBX_UNREACHABLEDELAY}"
|
||||
|
||||
update_config_var $ZBX_CONFIG "AlertScriptsPath" "/usr/lib/zabbix/alertscripts"
|
||||
update_config_var $ZBX_CONFIG "ExternalScripts" "/usr/lib/zabbix/externalscripts"
|
||||
|
||||
# Possible few fping locations
|
||||
if [ -f "/usr/bin/fping" ]; then
|
||||
update_config_var $ZBX_CONFIG "FpingLocation" "/usr/bin/fping"
|
||||
|
Reference in New Issue
Block a user