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

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.
This commit is contained in:
Christian Manivong committed 2026-11-17 04:50:55 +01:00
1 parent c4434cf54b
commit 053137aff7
7 files changed
+478 -46

No files matched your search

+8 -1
View File
@@ -8,7 +8,9 @@ recorded here; their history is the git log.
## [Unreleased]
### Changed
- Needs napalm-device-types 4.39.0 or later (`PackageIndexMissing`).
- Needs napalm-device-types 4.40.0 or later (`ZabbixAgentMixin`).
- The SNMP agent's firewall step writes its rule through `_allow_in_management_zone`, which
the Zabbix agent's step shares; the rule it writes is the same.
- `get_available_updates()` raises napalm-device-types' `PackageIndexMissing` when the
package index is not in RAM (after a reboot), for apk and opkg alike, instead of a bare
`RuntimeError`: a caller can load the index instead of reporting a failed read
@@ -17,6 +19,11 @@ recorded here; their history is the git log.
a router that commit wrote keeps `use_dhcp=0` until it is set back.
### Added
- Zabbix agent (napalm-device-types `ZabbixAgentMixin`, NetOrk/netork#2571):
`configure_zabbix_agent(settings)` installs the feed's `zabbix-agentd` after loading the
package index, writes the caller's values into `/etc/zabbix_agentd.conf`, enables it in
UCI, opens tcp/`listen_port` for the allowed sources where a firewall runs (an access
point often runs none), enables and restarts it.
- Time sync (napalm-device-types `TimeSyncMixin`, NetOrk/netork#2364): `get_time_sync()`
reads the router's NTP servers and its zone from `uci -q show system`;
`configure_time_sync()` writes both. The servers replace `system.ntp.server` and enable