Commit graph

12 commits

Author SHA1 Message Date
Alexey Pustovalov de2f409ea1 Removed PID from snmptraps image. Possible to use readonly filesystem 2026-07-24 18:59:43 +09:00
Alexey Pustovalov d0c5869b9d Fixed Java Gateway variable. ZBX_JAVA_OPTS is currently supported for additional arguments 2026-07-24 18:44:10 +09:00
Alexey Pustovalov 135acb8b4e Fixed missing PerfCounters configuration file 2026-07-23 17:49:35 +09:00
saranf 026dd685b0 Enable UserParameterDir on Windows agent config
The Windows agent config template was missing the active
UserParameterDir=${ZBX_USERPARAMETERDIR} line. The Windows agent Dockerfile
sets ZBX_USERPARAMETERDIR and creates the C:\zabbix\user_scripts directory,
but because the option is never written to the config, user parameter scripts
placed there are not loaded by the agent.

The Linux agent, Linux agent2, and Windows agent2 templates all set this
option; only the Windows agent template was missing it. Add it to match.
2026-07-21 23:34:09 +09:00
Alexey Pustovalov 0866f929e2 Using go entrypoint for Windows agents 2026-07-15 17:51:41 +09:00
Alexey Pustovalov 2f2fb7d7ed Fixed variable descriptions 2026-07-11 16:37:56 +09:00
Alexey Pustovalov edb91be023 Fixed variable descriptions 2026-07-11 14:45:57 +09:00
saranf 694162e2a7 Fix ZBX_ALLOW_HTTP_AUTH being ignored in web frontend config
The web config redesign changed the HTTP-auth lookup from
getenv('ZBX_ALLOW_HTTP_AUTH') to env_bool('ALLOW_HTTP_AUTH', true),
dropping the ZBX_ prefix. The entrypoint (php.sh) still sets and exports
ZBX_ALLOW_HTTP_AUTH, and every web image README documents ZBX_ALLOW_HTTP_AUTH,
so the frontend now reads a variable that is never set and always falls back
to the default (true).

As a result, setting ZBX_ALLOW_HTTP_AUTH=false no longer disables HTTP
authentication in the frontend. Restore the documented variable name.
2026-07-06 20:34:24 +09:00
Dmitry Verkhoturov cc028ed792
Fix web frontend crash on socket setups without DB_SERVER_PORT
env_string('DB_SERVER_PORT') returns '' when the variable is unset, and that
empty string is passed to mysqli::real_connect()'s ?int $port argument in
MysqlDbBackend::connect(), throwing a fatal TypeError under PHP 8 that breaks
every frontend page (HTTP 500) on socket / no-port setups. Regressed in the
web config redesign, which replaced getenv() (returns false -> int 0) with
env_string() (returns '').

Add an env_int() helper that maps both unset and empty to the default and
returns an int, and use it for the DB port.
2026-07-01 17:56:31 +00:00
Alexey Pustovalov 7babf33296 Redesign web config file 2026-06-04 20:04:58 +09:00
Alexey Pustovalov b8fed86d78 Prepare to remove supervisord 2026-04-13 21:28:21 +09:00
Alexey Pustovalov 932f81a92a Updated docker entrypoint structure. Using libraries for common functions 2026-04-03 21:16:40 +09:00