mirror of
https://github.com/zabbix/zabbix-docker.git
synced 2024-11-22 15:53:35 +01:00
Fix path to External scripts and Alert scripts
This commit is contained in:
parent
78714133bb
commit
5b282a9939
@ -48,6 +48,7 @@ RUN apk update && \
|
||||
--silent \
|
||||
--sysconfdir=/etc/zabbix \
|
||||
--libdir=/usr/lib/zabbix \
|
||||
--datadir=/usr/lib \
|
||||
--enable-agent \
|
||||
--enable-ipv6 \
|
||||
--with-openssl && \
|
||||
|
@ -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"
|
||||
|
@ -55,6 +55,7 @@ RUN apt-get ${APT_FLAGS_COMMON} update && \
|
||||
--silent \
|
||||
--sysconfdir=/etc/zabbix \
|
||||
--libdir=/usr/lib/zabbix \
|
||||
--datadir=/usr/lib \
|
||||
--enable-agent \
|
||||
--enable-ipv6 \
|
||||
--with-openssl && \
|
||||
|
@ -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"
|
||||
|
@ -46,6 +46,7 @@ RUN apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
||||
--silent \
|
||||
--sysconfdir=/etc/zabbix \
|
||||
--libdir=/usr/lib/zabbix \
|
||||
--datadir=/usr/lib \
|
||||
--enable-java && \
|
||||
make -j"$(nproc)" -s 1>/dev/null && \
|
||||
mkdir -p /usr/sbin/zabbix_java/ && \
|
||||
|
@ -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"
|
||||
|
@ -53,6 +53,7 @@ RUN apt-get ${APT_FLAGS_COMMON} update && \
|
||||
--silent \
|
||||
--sysconfdir=/etc/zabbix \
|
||||
--libdir=/usr/lib/zabbix \
|
||||
--datadir=/usr/lib \
|
||||
--enable-java && \
|
||||
make -j"$(nproc)" -s 1>/dev/null && \
|
||||
mkdir -p /usr/sbin/zabbix_java/ && \
|
||||
|
@ -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"
|
||||
|
@ -73,6 +73,7 @@ RUN apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
||||
--silent \
|
||||
--sysconfdir=/etc/zabbix \
|
||||
--libdir=/usr/lib/zabbix \
|
||||
--datadir=/usr/lib \
|
||||
--enable-proxy \
|
||||
--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"
|
||||
|
@ -81,6 +81,7 @@ RUN apt-get ${APT_FLAGS_COMMON} update && \
|
||||
--silent \
|
||||
--sysconfdir=/etc/zabbix \
|
||||
--libdir=/usr/lib/zabbix \
|
||||
--datadir=/usr/lib \
|
||||
--enable-proxy \
|
||||
--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"
|
||||
|
@ -69,6 +69,7 @@ RUN apk add ${APK_FLAGS_DEV} --virtual build-dependencies \
|
||||
--silent \
|
||||
--sysconfdir=/etc/zabbix \
|
||||
--libdir=/usr/lib/zabbix \
|
||||
--datadir=/usr/lib \
|
||||
--enable-proxy \
|
||||
--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"
|
||||
|
@ -79,6 +79,7 @@ RUN apt-get ${APT_FLAGS_COMMON} update && \
|
||||
--silent \
|
||||
--sysconfdir=/etc/zabbix \
|
||||
--libdir=/usr/lib/zabbix \
|
||||
--datadir=/usr/lib \
|
||||
--enable-proxy \
|
||||
--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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user