Commit Graph
3 Commits
Author SHA1 Message Date
Christian Manivong 92108f0ff3 feat(zabbix): a native Zabbix agent on both drivers through ZabbixAgentMixin (NetOrk/netork#2571)
driver / standard (pull_request) Successful in 17s
driver / lint (pull_request) Successful in 13s
driver / types (pull_request) Successful in 46s
driver / test (3.12) (pull_request) Successful in 57s
driver / lowest (pull_request) Successful in 26s
driver / test (3.13) (pull_request) Successful in 54s
driver / build (pull_request) Successful in 24s
driver / security (pull_request) Successful in 48s
CI / driver (pull_request) Successful in 2m13s
driver / publish (pull_request) Skipped
A node runs no container engine. configure_zabbix_agent(settings) installs
Debian's zabbix-agent, and where Debian has none, Zabbix's from its repository
for the server's release line. It writes the caller's values into
/etc/zabbix/zabbix_agentd.conf (the old file stays as .bak) and opens
tcp/ListenPort in ufw where the node has it; pve-firewall's rules are the
operator's, as for the SNMP agent.

The SNMP agent's ufw step is the shared _allow_sources(allowed, port, proto) in
ProxmoxHostMixin now; the rule it writes for udp/161 is the same.
Needs napalm-device-types 4.40.0.
2026-11-17 04:50:55 +01:00
Christian Manivong 9c16586028 feat(log-sources): which logs a PVE or PBS node writes
driver / lint (pull_request) Successful in 13s
driver / standard (pull_request) Successful in 14s
driver / types (pull_request) Successful in 59s
driver / test (3.13) (pull_request) Successful in 1m10s
driver / test (3.12) (pull_request) Successful in 1m14s
driver / lowest (pull_request) Successful in 34s
driver / build (pull_request) Successful in 27s
driver / security (pull_request) Successful in 52s
CI / driver (pull_request) Successful in 2m16s
driver / publish (pull_request) Skipped
Both drivers mix in napalm-device-types' LogSourcesMixin (4.30.0) and
carry its command over the exec path, which runs as root either way.

Refs NetOrk/netork#2049
2026-11-05 00:24:33 +01:00
Christian Manivong 0b5f82cc02 refactor: share connection and Debian host code for a second product (#52)
Proxmox Backup Server speaks the same REST dialect, logs in the same way
and runs on Debian too, so what a second driver needs moves out of
ProxmoxDriver first:

- napalm_proxmox._base: the connection (proxmoxer service PVE or PBS,
  each with its port), the token split, the SSH session, run_command,
  the node helpers and the DMI read.
- napalm_proxmox.host_mixin: packages and APT updates, the subscription,
  restart and shutdown through the API, root file writes and the
  transports of the host readers (kernel, listening sockets, identity,
  systemd, host status, apt's proxy).

The PVE driver behaves as before; what it hands proxmoxer is pinned by
tests first, and it now names service="PVE" explicitly. get_packages is
split so the dpkg line parser stands alone; get_facts and get_packages
leave the quality baseline.
2026-11-02 22:29:04 +01:00