Skip to content

zabbix: do some cleanup#30027

Open
danielfdickinson wants to merge 4 commits into
openwrt:masterfrom
danielfdickinson:pr-zabbix-do-some-cleanup
Open

zabbix: do some cleanup#30027
danielfdickinson wants to merge 4 commits into
openwrt:masterfrom
danielfdickinson:pr-zabbix-do-some-cleanup

Conversation

@danielfdickinson

@danielfdickinson danielfdickinson commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

📦 Package Details

Maintainer: @danielfdickinson

Description:

Splitting out from #30010 as it makes for a better separation of concerns.

  • Preserve user config files across sysupgrade
  • Move agentd openwrt-supplied params to separated dir
  • stop shipping sysctld conf in package
  • add php8-mod-simplexml dependency to frontend

🧪 Run Testing Details

  • OpenWrt Version: OpenWrt SNAPSHOT r35420-06c826e335
  • OpenWrt Target/Subtarget: mediatek/filogic
  • OpenWrt Device: OpenWrt One

✅ Formalities

  • I have reviewed the CONTRIBUTING.md file for detailed contributing guidelines.

If your PR contains a patch:

  • It can be applied using git am
  • TODO: It has been refreshed to avoid offsets, fuzzes, etc., using
    make package/<your-package>/refresh V=s
  • It is structured in a way that it is potentially upstreamable
    N/A: OpenWrt-specific configuration tweaks

@danielfdickinson
danielfdickinson force-pushed the pr-zabbix-do-some-cleanup branch from f063119 to 496bd5f Compare July 18, 2026 12:30
@danielfdickinson
danielfdickinson marked this pull request as draft July 18, 2026 16:18
@danielfdickinson
danielfdickinson marked this pull request as ready for review July 18, 2026 17:14
@danielfdickinson
danielfdickinson force-pushed the pr-zabbix-do-some-cleanup branch from 496bd5f to c899e02 Compare July 18, 2026 17:21

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 4 new commits. Commit messages match their diffs. One inline question about the new unconditional Include= directory.


Generated by Claude Code

Comment thread admin/zabbix/patches/010-change-agentd-config.patch
Comment thread admin/zabbix/Makefile Outdated
@danielfdickinson
danielfdickinson force-pushed the pr-zabbix-do-some-cleanup branch 2 times, most recently from 712e02e to cf11f14 Compare July 19, 2026 08:34
@danielfdickinson

Copy link
Copy Markdown
Contributor Author

I think tonight is not my night - after some sleep, we'll see where things are at.

@danielfdickinson
danielfdickinson force-pushed the pr-zabbix-do-some-cleanup branch from cf11f14 to 7d9e16f Compare July 19, 2026 09:01
@danielfdickinson

Copy link
Copy Markdown
Contributor Author

Oh well, it was worth a try.

Add the user config file directories (/etc/zabbix_x.conf.d) to the
list of directories and files to preserve across sysupgrade.

Signed-off-by: Daniel F. Dickinson <dfdpublic@wildtechgarden.ca>
@danielfdickinson
danielfdickinson force-pushed the pr-zabbix-do-some-cleanup branch from 7d9e16f to a10fa13 Compare July 19, 2026 19:41

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Re-reviewed after the rebase/restructure. The two prior concerns are resolved: the base zabbix-agentd/zabbix-agentd-basic installs now create /usr/share/zabbix_agentd.openwrt-params.d so the new unconditional Include= target always exists, and the .conf.d/ conffiles entries now carry the trailing slash. All four commit messages match their diffs, and the 010-change-agentd-config.patch hunk header (@@ -547,5 +541,6 @@) is internally consistent. One minor INSTALL_BIN/INSTALL_DATA nit inline.


Generated by Claude Code

Comment thread admin/zabbix/Makefile Outdated
Reorganize the extra files under the 'files' dir so that it is more
clear where they go and what they are for, and to avoid having a
disorganized mass of files.

Move the extra C source file out of files and into 'src-extra'.

Avoid treating openwrt-supplied params files as configuration data.
Instead have them in a separate directory under /usr/share which is
included in the zabbix_agentd configuration by default. This also better
follows the FHS.

Hopefully these changes make sense on their own, as well as helping the
CI accept the changes.

Signed-off-by: Daniel F. Dickinson <dfdpublic@wildtechgarden.ca>
The sysctl file increases max files to allow the default full
complement of discovery workers, however this is probably not a
hard requirement and such a conf not shipped elsewhere in tree, so
leave that to the user to configure. (The syslog messages from
zabbix-server and/or zabbix-proxy provided the needed information).

Signed-off-by: Daniel F. Dickinson <dfdpublic@wildtechgarden.ca>
While the frontend can mostly operate without php8-mod-simplexml, when
trying to import XML templates the user only gets unhelpful error
messages and is unlikely to realize the module is required for that
functionality. Therefore have the frontend depend on php8-mod-simplexml.

Signed-off-by: Daniel F. Dickinson <dfdpublic@wildtechgarden.ca>
@danielfdickinson
danielfdickinson force-pushed the pr-zabbix-do-some-cleanup branch from a10fa13 to 376c3c3 Compare July 20, 2026 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants