feat(zabbix): the feed's Zabbix agent through ZabbixAgentMixin (NetOrk/netork#2571) #48

Merged
christianmanivong merged 1 commits from feat/zabbix-agent-native into main 2026-11-17 04:32:23 +00:00
Owner

configure_zabbix_agent(settings) on an access point, which runs no container engine (NetOrk/netork#2571).

  • zabbix-agentd comes from the feed. The template loads the index first: it lives in RAM, gone after a restart. Zabbix publishes no OpenWrt repository, so _add_zabbix_repository is None.
  • /etc/zabbix_agentd.conf gets the caller's values (the old file stays as .bak). The agent is enabled in UCI (zabbix_agentd.general.enabled), without which its init script does not start it.
  • Firewall: tcp/listen_port in the zone that owns the management address, only where a firewall runs (fw4's table or fw3's service). On our APs none runs.
  • The SNMP agent's firewall step goes through _allow_in_management_zone now, split into zone, rule and reload, so the ratchet holds. The rule it writes is the same, and the SNMP tests stayed green.

The package was checked on ap-1og (OpenWrt 25.12.2, ath79): zabbix-agentd-7.0.32-r1 is in the feed, with 4.1 MB free on the overlay.

Needs napalm-device-types 4.40.0 (ZabbixAgentMixin, NAPALM/napalm-device-types#124). netOrk asks for it in "Install agent" on zabbix_unreachable wherever it has read no container engine on the device.

Checks: ruff, mypy, napalm-standard ratchet/check and 370 tests are green.

`configure_zabbix_agent(settings)` on an access point, which runs no container engine (NetOrk/netork#2571). - `zabbix-agentd` comes from the feed. The template loads the index first: it lives in RAM, gone after a restart. Zabbix publishes no OpenWrt repository, so `_add_zabbix_repository` is `None`. - `/etc/zabbix_agentd.conf` gets the caller's values (the old file stays as `.bak`). The agent is enabled in UCI (`zabbix_agentd.general.enabled`), without which its init script does not start it. - **Firewall:** tcp/`listen_port` in the zone that owns the management address, only where a firewall runs (fw4's table or fw3's service). On our APs none runs. - The SNMP agent's firewall step goes through `_allow_in_management_zone` now, split into zone, rule and reload, so the ratchet holds. The rule it writes is the same, and the SNMP tests stayed green. The package was checked on ap-1og (OpenWrt 25.12.2, ath79): `zabbix-agentd-7.0.32-r1` is in the feed, with 4.1 MB free on the overlay. Needs napalm-device-types 4.40.0 (`ZabbixAgentMixin`, NAPALM/napalm-device-types#124). netOrk asks for it in "Install agent" on `zabbix_unreachable` wherever it has read no container engine on the device. **Checks:** ruff, mypy, `napalm-standard ratchet`/`check` and 370 tests are green.
christianmanivong added 1 commit 2026-11-17 04:11:58 +00:00
feat(zabbix): the feed's Zabbix agent through ZabbixAgentMixin (NetOrk/netork#2571)
driver / lint (pull_request) Successful in 15s
driver / standard (pull_request) Successful in 18s
driver / types (pull_request) Successful in 1m7s
driver / test (3.13) (pull_request) Successful in 1m1s
driver / test (3.12) (pull_request) Successful in 1m10s
driver / lowest (pull_request) Successful in 39s
driver / build (pull_request) Successful in 38s
driver / security (pull_request) Successful in 1m11s
CI / driver (pull_request) Successful in 2m30s
driver / publish (pull_request) Skipped
053137aff7
An access point runs no container engine. configure_zabbix_agent(settings)
installs zabbix-agentd from the feed after loading the package index, writes the
caller's values into /etc/zabbix_agentd.conf (the old file stays as .bak),
enables the agent in UCI, without which its init script does not start it, and
opens tcp/ListenPort for the allowed sources in the zone that owns the
management address where a firewall runs. Zabbix publishes no repository for
OpenWrt; the feed is the only source.

The SNMP agent's firewall step writes its rule through _allow_in_management_zone
now, split into the zone, the rule and the reload; the rule is the same.
Needs napalm-device-types 4.40.0.
christianmanivong merged commit 6ff893649c into main 2026-11-17 04:32:23 +00:00
christianmanivong deleted branch feat/zabbix-agent-native 2026-11-17 04:32:23 +00:00
Sign in to join this conversation.