Telemt's Prometheus endpoint exposes only active-IP counts, while its loopback control API includes both the address list and sensitive proxy links. Add a root systemd timer that enters the Telemt container network namespace, filters the API response in memory, and publishes only username/address rows through the Zabbix agent key telemt.active_ips.list.\n\nThe collector refreshes every 30 seconds, writes atomically with root:zabbix 0640 permissions, and leaves the control API unexposed. Document the host installation and recommend one-day Zabbix history because client IP addresses are sensitive operational data.
13 lines
221 B
SYSTEMD
13 lines
221 B
SYSTEMD
[Unit]
|
|
Description=Refresh sanitized Telemt active IP addresses for Zabbix
|
|
|
|
[Timer]
|
|
OnBootSec=30s
|
|
OnUnitActiveSec=30s
|
|
AccuracySec=2s
|
|
Unit=zabbix-telemt-active-ips.service
|
|
Persistent=true
|
|
|
|
[Install]
|
|
WantedBy=timers.target
|