Hello all,
I have Zabbix server setup on my Ubuntu 22.04.4 LTS VM which queries other VMs and systems to gather data and alerts. This is all working fine.
One of the machines on which I have Zabbix agent installed on is a Proxmox hypervisor (debian 12). Using "Linux by Zabbix agent" template I am getting a lot of data collected (all working well). Now, I wanted to also gather SMART values of the drives which are installed on that system. So I went ahead and added additional template for that host "SMART by Zabbix agent 2" (following the steps described here https://www.zabbix.com/integrations/smart). I am not sure why but I am getting following error:

I have a feeling this might be related to "zabbix ALL=(ALL) NOPASSWD:/usr/sbin/smartctl" part not working properly.
Here's how my "visudo" file looks like:
Would appreciate if someone could point me to a right direction!
Thank you.
I have Zabbix server setup on my Ubuntu 22.04.4 LTS VM which queries other VMs and systems to gather data and alerts. This is all working fine.
One of the machines on which I have Zabbix agent installed on is a Proxmox hypervisor (debian 12). Using "Linux by Zabbix agent" template I am getting a lot of data collected (all working well). Now, I wanted to also gather SMART values of the drives which are installed on that system. So I went ahead and added additional template for that host "SMART by Zabbix agent 2" (following the steps described here https://www.zabbix.com/integrations/smart). I am not sure why but I am getting following error:
Code:
Cannot fetch data.: failed to execute smartctl: failed to get combined output of stdout and stderr for smartctl process: waitid: no child processes.
I have a feeling this might be related to "zabbix ALL=(ALL) NOPASSWD:/usr/sbin/smartctl" part not working properly.
Here's how my "visudo" file looks like:
Would appreciate if someone could point me to a right direction!
Thank you.
Comment