From 25d7215712635b1e56beb31742547901a9c39fc9 Mon Sep 17 00:00:00 2001 From: Alexey Pustovalov Date: Fri, 26 Apr 2024 15:13:07 +0900 Subject: [PATCH] Added EnableGlobalScripts parameter for server --- Dockerfiles/server-mysql/README.md | 1 + Dockerfiles/server-mysql/alpine/docker-entrypoint.sh | 1 + Dockerfiles/server-mysql/centos/docker-entrypoint.sh | 1 + Dockerfiles/server-mysql/ol/docker-entrypoint.sh | 1 + Dockerfiles/server-mysql/rhel/README.html | 1 + Dockerfiles/server-mysql/rhel/docker-entrypoint.sh | 1 + Dockerfiles/server-mysql/ubuntu/docker-entrypoint.sh | 1 + Dockerfiles/server-pgsql/README.md | 1 + Dockerfiles/server-pgsql/alpine/docker-entrypoint.sh | 1 + Dockerfiles/server-pgsql/centos/docker-entrypoint.sh | 1 + Dockerfiles/server-pgsql/ol/docker-entrypoint.sh | 1 + Dockerfiles/server-pgsql/rhel/README.html | 1 + Dockerfiles/server-pgsql/rhel/docker-entrypoint.sh | 1 + Dockerfiles/server-pgsql/ubuntu/docker-entrypoint.sh | 1 + env_vars/.env_srv | 1 + 15 files changed, 15 insertions(+) diff --git a/Dockerfiles/server-mysql/README.md b/Dockerfiles/server-mysql/README.md index 1e7a59c91..93e4c763e 100644 --- a/Dockerfiles/server-mysql/README.md +++ b/Dockerfiles/server-mysql/README.md @@ -149,6 +149,7 @@ ZBX_WEBSERVICEURL=http://zabbix-web-service:10053/report # Available since 5.4.0 ZBX_SERVICEMANAGERSYNCFREQUENCY=60 # Available since 6.0.0 ZBX_HISTORYSTORAGEURL= # Available since 3.4.0 ZBX_HISTORYSTORAGETYPES=uint,dbl,str,log,text # Available since 3.4.0 +ZBX_ENABLEGLOBALSCRIPTS=0 # Available since 7.0.0 ZBX_STARTPOLLERS=5 ZBX_IPMIPOLLERS=0 ZBX_STARTPREPROCESSORS=3 # Available since 3.4.0 diff --git a/Dockerfiles/server-mysql/alpine/docker-entrypoint.sh b/Dockerfiles/server-mysql/alpine/docker-entrypoint.sh index b5429e4b0..5941d7a84 100755 --- a/Dockerfiles/server-mysql/alpine/docker-entrypoint.sh +++ b/Dockerfiles/server-mysql/alpine/docker-entrypoint.sh @@ -398,6 +398,7 @@ update_zbx_config() { update_config_var $ZBX_CONFIG "AllowUnsupportedDBVersions" "${ZBX_ALLOWUNSUPPORTEDDBVERSIONS}" update_config_var $ZBX_CONFIG "MaxConcurrentChecksPerPoller" "${ZBX_MAXCONCURRENTCHECKSPERPOLLER}" + update_config_var $ZBX_CONFIG "EnableGlobalScripts" "${ZBX_ENABLEGLOBALSCRIPTS}" update_config_var $ZBX_CONFIG "StartReportWriters" "${ZBX_STARTREPORTWRITERS}" : ${ZBX_WEBSERVICEURL:="http://zabbix-web-service:10053/report"} diff --git a/Dockerfiles/server-mysql/centos/docker-entrypoint.sh b/Dockerfiles/server-mysql/centos/docker-entrypoint.sh index b1a9e486e..be467498c 100755 --- a/Dockerfiles/server-mysql/centos/docker-entrypoint.sh +++ b/Dockerfiles/server-mysql/centos/docker-entrypoint.sh @@ -395,6 +395,7 @@ update_zbx_config() { update_config_var $ZBX_CONFIG "AllowUnsupportedDBVersions" "${ZBX_ALLOWUNSUPPORTEDDBVERSIONS}" update_config_var $ZBX_CONFIG "MaxConcurrentChecksPerPoller" "${ZBX_MAXCONCURRENTCHECKSPERPOLLER}" + update_config_var $ZBX_CONFIG "EnableGlobalScripts" "${ZBX_ENABLEGLOBALSCRIPTS}" update_config_var $ZBX_CONFIG "StartReportWriters" "${ZBX_STARTREPORTWRITERS}" : ${ZBX_WEBSERVICEURL:="http://zabbix-web-service:10053/report"} diff --git a/Dockerfiles/server-mysql/ol/docker-entrypoint.sh b/Dockerfiles/server-mysql/ol/docker-entrypoint.sh index b1a9e486e..be467498c 100755 --- a/Dockerfiles/server-mysql/ol/docker-entrypoint.sh +++ b/Dockerfiles/server-mysql/ol/docker-entrypoint.sh @@ -395,6 +395,7 @@ update_zbx_config() { update_config_var $ZBX_CONFIG "AllowUnsupportedDBVersions" "${ZBX_ALLOWUNSUPPORTEDDBVERSIONS}" update_config_var $ZBX_CONFIG "MaxConcurrentChecksPerPoller" "${ZBX_MAXCONCURRENTCHECKSPERPOLLER}" + update_config_var $ZBX_CONFIG "EnableGlobalScripts" "${ZBX_ENABLEGLOBALSCRIPTS}" update_config_var $ZBX_CONFIG "StartReportWriters" "${ZBX_STARTREPORTWRITERS}" : ${ZBX_WEBSERVICEURL:="http://zabbix-web-service:10053/report"} diff --git a/Dockerfiles/server-mysql/rhel/README.html b/Dockerfiles/server-mysql/rhel/README.html index 3b18ffe82..effca9bc8 100644 --- a/Dockerfiles/server-mysql/rhel/README.html +++ b/Dockerfiles/server-mysql/rhel/README.html @@ -93,6 +93,7 @@ podman run --name some-zabbix-server-mysql -e DB_SER ZBX_SERVICEMANAGERSYNCFREQUENCY=60 # Available since 6.0.0 ZBX_HISTORYSTORAGEURL= # Available since 3.4.0 ZBX_HISTORYSTORAGETYPES=uint,dbl,str,log,text # Available since 3.4.0 +ZBX_ENABLEGLOBALSCRIPTS=0 # Available since 7.0.0 ZBX_STARTPOLLERS=5 ZBX_IPMIPOLLERS=0 ZBX_STARTPREPROCESSORS=3 # Available since 3.4.0 diff --git a/Dockerfiles/server-mysql/rhel/docker-entrypoint.sh b/Dockerfiles/server-mysql/rhel/docker-entrypoint.sh index b1a9e486e..be467498c 100755 --- a/Dockerfiles/server-mysql/rhel/docker-entrypoint.sh +++ b/Dockerfiles/server-mysql/rhel/docker-entrypoint.sh @@ -395,6 +395,7 @@ update_zbx_config() { update_config_var $ZBX_CONFIG "AllowUnsupportedDBVersions" "${ZBX_ALLOWUNSUPPORTEDDBVERSIONS}" update_config_var $ZBX_CONFIG "MaxConcurrentChecksPerPoller" "${ZBX_MAXCONCURRENTCHECKSPERPOLLER}" + update_config_var $ZBX_CONFIG "EnableGlobalScripts" "${ZBX_ENABLEGLOBALSCRIPTS}" update_config_var $ZBX_CONFIG "StartReportWriters" "${ZBX_STARTREPORTWRITERS}" : ${ZBX_WEBSERVICEURL:="http://zabbix-web-service:10053/report"} diff --git a/Dockerfiles/server-mysql/ubuntu/docker-entrypoint.sh b/Dockerfiles/server-mysql/ubuntu/docker-entrypoint.sh index 131c7caa1..76bd3c2ed 100755 --- a/Dockerfiles/server-mysql/ubuntu/docker-entrypoint.sh +++ b/Dockerfiles/server-mysql/ubuntu/docker-entrypoint.sh @@ -395,6 +395,7 @@ update_zbx_config() { update_config_var $ZBX_CONFIG "AllowUnsupportedDBVersions" "${ZBX_ALLOWUNSUPPORTEDDBVERSIONS}" update_config_var $ZBX_CONFIG "MaxConcurrentChecksPerPoller" "${ZBX_MAXCONCURRENTCHECKSPERPOLLER}" + update_config_var $ZBX_CONFIG "EnableGlobalScripts" "${ZBX_ENABLEGLOBALSCRIPTS}" update_config_var $ZBX_CONFIG "StartReportWriters" "${ZBX_STARTREPORTWRITERS}" : ${ZBX_WEBSERVICEURL:="http://zabbix-web-service:10053/report"} diff --git a/Dockerfiles/server-pgsql/README.md b/Dockerfiles/server-pgsql/README.md index 7e93e8716..758729952 100644 --- a/Dockerfiles/server-pgsql/README.md +++ b/Dockerfiles/server-pgsql/README.md @@ -150,6 +150,7 @@ ZBX_WEBSERVICEURL=http://zabbix-web-service:10053/report # Available since 5.4.0 ZBX_SERVICEMANAGERSYNCFREQUENCY=60 # Available since 6.0.0 ZBX_HISTORYSTORAGEURL= # Available since 3.4.0 ZBX_HISTORYSTORAGETYPES=uint,dbl,str,log,text # Available since 3.4.0 +ZBX_ENABLEGLOBALSCRIPTS=0 # Available since 7.0.0 ZBX_STARTPOLLERS=5 ZBX_IPMIPOLLERS=0 ZBX_STARTCONNECTORS=0 # Available since 6.4.0 diff --git a/Dockerfiles/server-pgsql/alpine/docker-entrypoint.sh b/Dockerfiles/server-pgsql/alpine/docker-entrypoint.sh index 0f6c1ea49..ea4b349c2 100755 --- a/Dockerfiles/server-pgsql/alpine/docker-entrypoint.sh +++ b/Dockerfiles/server-pgsql/alpine/docker-entrypoint.sh @@ -411,6 +411,7 @@ update_zbx_config() { update_config_var $ZBX_CONFIG "AllowUnsupportedDBVersions" "${ZBX_ALLOWUNSUPPORTEDDBVERSIONS}" update_config_var $ZBX_CONFIG "MaxConcurrentChecksPerPoller" "${ZBX_MAXCONCURRENTCHECKSPERPOLLER}" + update_config_var $ZBX_CONFIG "EnableGlobalScripts" "${ZBX_ENABLEGLOBALSCRIPTS}" update_config_var $ZBX_CONFIG "StartReportWriters" "${ZBX_STARTREPORTWRITERS}" : ${ZBX_WEBSERVICEURL:="http://zabbix-web-service:10053/report"} diff --git a/Dockerfiles/server-pgsql/centos/docker-entrypoint.sh b/Dockerfiles/server-pgsql/centos/docker-entrypoint.sh index 0f6c1ea49..ea4b349c2 100755 --- a/Dockerfiles/server-pgsql/centos/docker-entrypoint.sh +++ b/Dockerfiles/server-pgsql/centos/docker-entrypoint.sh @@ -411,6 +411,7 @@ update_zbx_config() { update_config_var $ZBX_CONFIG "AllowUnsupportedDBVersions" "${ZBX_ALLOWUNSUPPORTEDDBVERSIONS}" update_config_var $ZBX_CONFIG "MaxConcurrentChecksPerPoller" "${ZBX_MAXCONCURRENTCHECKSPERPOLLER}" + update_config_var $ZBX_CONFIG "EnableGlobalScripts" "${ZBX_ENABLEGLOBALSCRIPTS}" update_config_var $ZBX_CONFIG "StartReportWriters" "${ZBX_STARTREPORTWRITERS}" : ${ZBX_WEBSERVICEURL:="http://zabbix-web-service:10053/report"} diff --git a/Dockerfiles/server-pgsql/ol/docker-entrypoint.sh b/Dockerfiles/server-pgsql/ol/docker-entrypoint.sh index 0f6c1ea49..ea4b349c2 100755 --- a/Dockerfiles/server-pgsql/ol/docker-entrypoint.sh +++ b/Dockerfiles/server-pgsql/ol/docker-entrypoint.sh @@ -411,6 +411,7 @@ update_zbx_config() { update_config_var $ZBX_CONFIG "AllowUnsupportedDBVersions" "${ZBX_ALLOWUNSUPPORTEDDBVERSIONS}" update_config_var $ZBX_CONFIG "MaxConcurrentChecksPerPoller" "${ZBX_MAXCONCURRENTCHECKSPERPOLLER}" + update_config_var $ZBX_CONFIG "EnableGlobalScripts" "${ZBX_ENABLEGLOBALSCRIPTS}" update_config_var $ZBX_CONFIG "StartReportWriters" "${ZBX_STARTREPORTWRITERS}" : ${ZBX_WEBSERVICEURL:="http://zabbix-web-service:10053/report"} diff --git a/Dockerfiles/server-pgsql/rhel/README.html b/Dockerfiles/server-pgsql/rhel/README.html index f3528bdfb..cc09cf2a7 100644 --- a/Dockerfiles/server-pgsql/rhel/README.html +++ b/Dockerfiles/server-pgsql/rhel/README.html @@ -93,6 +93,7 @@ podman run --name some-zabbix-server-pgsql -e DB_SER ZBX_SERVICEMANAGERSYNCFREQUENCY=60 # Available since 6.0.0 ZBX_HISTORYSTORAGEURL= # Available since 3.4.0 ZBX_HISTORYSTORAGETYPES=uint,dbl,str,log,text # Available since 3.4.0 +ZBX_ENABLEGLOBALSCRIPTS=0 # Available since 7.0 ZBX_STARTPOLLERS=5 ZBX_IPMIPOLLERS=0 ZBX_STARTCONNECTORS=0 # Available since 6.4.0 diff --git a/Dockerfiles/server-pgsql/rhel/docker-entrypoint.sh b/Dockerfiles/server-pgsql/rhel/docker-entrypoint.sh index 0f6c1ea49..ea4b349c2 100755 --- a/Dockerfiles/server-pgsql/rhel/docker-entrypoint.sh +++ b/Dockerfiles/server-pgsql/rhel/docker-entrypoint.sh @@ -411,6 +411,7 @@ update_zbx_config() { update_config_var $ZBX_CONFIG "AllowUnsupportedDBVersions" "${ZBX_ALLOWUNSUPPORTEDDBVERSIONS}" update_config_var $ZBX_CONFIG "MaxConcurrentChecksPerPoller" "${ZBX_MAXCONCURRENTCHECKSPERPOLLER}" + update_config_var $ZBX_CONFIG "EnableGlobalScripts" "${ZBX_ENABLEGLOBALSCRIPTS}" update_config_var $ZBX_CONFIG "StartReportWriters" "${ZBX_STARTREPORTWRITERS}" : ${ZBX_WEBSERVICEURL:="http://zabbix-web-service:10053/report"} diff --git a/Dockerfiles/server-pgsql/ubuntu/docker-entrypoint.sh b/Dockerfiles/server-pgsql/ubuntu/docker-entrypoint.sh index 0ac44aba9..1370c274f 100755 --- a/Dockerfiles/server-pgsql/ubuntu/docker-entrypoint.sh +++ b/Dockerfiles/server-pgsql/ubuntu/docker-entrypoint.sh @@ -411,6 +411,7 @@ update_zbx_config() { update_config_var $ZBX_CONFIG "AllowUnsupportedDBVersions" "${ZBX_ALLOWUNSUPPORTEDDBVERSIONS}" update_config_var $ZBX_CONFIG "MaxConcurrentChecksPerPoller" "${ZBX_MAXCONCURRENTCHECKSPERPOLLER}" + update_config_var $ZBX_CONFIG "EnableGlobalScripts" "${ZBX_ENABLEGLOBALSCRIPTS}" update_config_var $ZBX_CONFIG "StartReportWriters" "${ZBX_STARTREPORTWRITERS}" : ${ZBX_WEBSERVICEURL:="http://zabbix-web-service:10053/report"} diff --git a/env_vars/.env_srv b/env_vars/.env_srv index 1b5c68f91..028dfa78d 100644 --- a/env_vars/.env_srv +++ b/env_vars/.env_srv @@ -16,6 +16,7 @@ # ZBX_NODEADDRESSPORT=10051 # Allowed to use with ZBX_AUTONODEADDRESS variable only. Available since 6.0.0 # ZBX_NODEADDRESS=localhost:10051 # Available since 6.0.0 # ZBX_DEBUGLEVEL=3 +# ZBX_ENABLEGLOBALSCRIPTS=0 # Available since 7.0.0 # ZBX_STARTAGENTPOLLERS=1 # Available since 7.0.0 # ZBX_STARTPOLLERS=5 # ZBX_IPMIPOLLERS=0