I upgraded zabbix-agent2 from 6.4 to 7.2.1 and it failed to start / send metrics to my local zabbix server. The log file /var/log/zabbix/zabbix_agent2.log was empty as the process failed to start.
$ sudo systemctl status zabbix-agent2
● zabbix-agent2.service - Zabbix Agent 2
Loaded: loaded (/usr/lib/systemd/system/zabbix-agent2.service; enabled; vendor preset: disabled)
Active: activating (auto-restart) (Result: exit-code) since Sun 2024-12-29 11:18:03 AEDT; 5s ago
Process: 112777 ExecStart=/usr/sbin/zabbix_agent2 -c $CONFFILE (code=exited, status=1/FAILURE)
Main PID: 112777 (code=exited, status=1/FAILURE)
Dec 29 11:18:03 hostname systemd[1]: zabbix-agent2.service: Main process exited, code=exited, status=1/FAILURE
Dec 29 11:18:03 hostname systemd[1]: zabbix-agent2.service: Failed with result 'exit-code'.
I tried running the the agent and got the following error:
$ sudo /usr/sbin/zabbix_agent2 -c /etc/zabbix/zabbix_agent2.conf
2024/12/29 11:19:16.376575 [NVIDIA] failed to kill plugin /usr/libexec/zabbix/zabbix-agent2-plugin-nvidia-gpu: Failed to kill plugin "/usr/libexec/zabbix/zabbix-agent2-plugin-nvidia-gpu" process: os: process already finished.
zabbix_agent2 [113023]: ERROR: Cannot register plugins: failed to register metrics of plugin "NVIDIA": failed to start plugin: failed to create connection with plugin /usr/libexec/zabbix/zabbix-agent2-plugin-nvidia-gpu: failed to get connection within the time limit 3000000000.
I couldn't see how to disable a specific plugin, so I removed the plugin configuration: /etc/zabbix/zabbix_agent2.d/plugins.d/nvidia.conf
Now the zabbix-agent2 starts correctly, sends metrics and writes logs.
This failed on all of my Linux virtual machines and hosts. I don't have any GPUs configured. The machines use Intel embedded graphics.
$ sudo systemctl status zabbix-agent2
● zabbix-agent2.service - Zabbix Agent 2
Loaded: loaded (/usr/lib/systemd/system/zabbix-agent2.service; enabled; vendor preset: disabled)
Active: activating (auto-restart) (Result: exit-code) since Sun 2024-12-29 11:18:03 AEDT; 5s ago
Process: 112777 ExecStart=/usr/sbin/zabbix_agent2 -c $CONFFILE (code=exited, status=1/FAILURE)
Main PID: 112777 (code=exited, status=1/FAILURE)
Dec 29 11:18:03 hostname systemd[1]: zabbix-agent2.service: Main process exited, code=exited, status=1/FAILURE
Dec 29 11:18:03 hostname systemd[1]: zabbix-agent2.service: Failed with result 'exit-code'.
I tried running the the agent and got the following error:
$ sudo /usr/sbin/zabbix_agent2 -c /etc/zabbix/zabbix_agent2.conf
2024/12/29 11:19:16.376575 [NVIDIA] failed to kill plugin /usr/libexec/zabbix/zabbix-agent2-plugin-nvidia-gpu: Failed to kill plugin "/usr/libexec/zabbix/zabbix-agent2-plugin-nvidia-gpu" process: os: process already finished.
zabbix_agent2 [113023]: ERROR: Cannot register plugins: failed to register metrics of plugin "NVIDIA": failed to start plugin: failed to create connection with plugin /usr/libexec/zabbix/zabbix-agent2-plugin-nvidia-gpu: failed to get connection within the time limit 3000000000.
I couldn't see how to disable a specific plugin, so I removed the plugin configuration: /etc/zabbix/zabbix_agent2.d/plugins.d/nvidia.conf
Now the zabbix-agent2 starts correctly, sends metrics and writes logs.
This failed on all of my Linux virtual machines and hosts. I don't have any GPUs configured. The machines use Intel embedded graphics.
- AlmaLinux 8.10 (VMs with SE Linux enabled. Most are headless)
- Debian GNU/Linux 11 (VMs)
- XCP-NG 8.3.0 (CentOS 7 based physical machines)

Comment