Instalación de Agente de Zabbix en Proxmox y monitorear temperatura de CPU

Objetivo

Monitorear la temperatura del procesador en nodos Proxmox utilizando Zabbix Agent 2 sin necesidad de iDRAC, SNMP o scripts externos aprovechando los sensores expuestos por Linux mediante la ruta /sys/class/hwmon.

Instalación de Zabbix Agent 2

wget https://repo.zabbix.com/zabbix/7.4/release/debian/pool/main/z/zabbix-release/zabbix-release_latest+debian12_all.deb

dpkg -i zabbix-release_latest+debian12_all.deb

apt update

apt install zabbix-agent2 zabbix-agent2-plugin-* -y

Problema encontrado durante la instalación

Durante la instalación del agente se presentó el siguiente error:

Cannot register plugins: failed to register metrics of plugin "NVIDIA"
Failed to validate nvml runner
NVML Shared Library couldn't be found or loaded

¿Por qué ocurre?

Al instalar zabbix-agent2-plugin-* se agregan todos los plugins disponibles, incluido el plugin NVIDIA. Este plugin intenta cargar las librerías NVML de NVIDIA para recopilar métricas de GPU. Si el servidor no tiene GPU NVIDIA o las librerías NVML no están instaladas, la validación del agente falla y el servicio no inicia.

Quitar Plugin NVIDIA

apt install zabbix-agent2 -y --no-install-recommends

rm /etc/zabbix/zabbix_agent2.d/plugins.d/nvidia.conf

Configuración

nano /etc/zabbix/zabbix_agent2.conf
Server=192.168.30.100
ServerActive=192.168.30.100
Hostname=pve01

Validación

zabbix_agent2 -T -c /etc/zabbix/zabbix_agent2.conf
systemctl enable zabbix-agent2
systemctl restart zabbix-agent2
systemctl status zabbix-agent2
ss -antp | grep 10050

Verificar sensores

for i in /sys/class/hwmon/hwmon*/temp*_input; do
 echo "$i: $(cat $i)"
done

Ejemplo:

/sys/class/hwmon/hwmon1/temp1_input: 42850

Los valores se expresan en miligrados Celsius. Por ejemplo, 42850 equivale a 42.850 °C.

Prueba desde Zabbix Agent

zabbix_agent2 -t vfs.file.contents[/sys/class/hwmon/hwmon1/temp1_input]
vfs.file.contents[/sys/class/hwmon/hwmon1/temp1_input]][s|42850]

Accede a Template 

image.png

Creación del Item en Zabbix

Parámetro Valor
Name CPU Temperature
Type Zabbix agent (active)
Key
vfs.file.contents[/sys/class/hwmon/hwmon1/temp1_input]
Type of information Numeric (float)
Units °C
Update interval 1m

image.png

Preprocessing

Tipo Valor
Custom multiplier 0.001

Esto convierte:

42850 → 42.85 °C

image.png

Prueba del Item

Presionar Test.

Value: 42850
Result: 42.85

Si el resultado es correcto, presionar Add.

Triggers recomendados

Advertencia

last(/pve01/vfs.file.contents[/sys/class/hwmon/hwmon1/temp1_input])*0.001>60

Crítico

last(/pve01/vfs.file.contents[/sys/class/hwmon/hwmon1/temp1_input])*0.001>75

Resultado Final

  • Monitoreo de temperatura de CPU en Proxmox.
  • Sin iDRAC.
  • Sin SNMP.
  • Sin scripts externos.
  • Integrado con Zabbix Agent 2.
  • Compatible con dashboards y gráficas de Zabbix.

Revision #3
Created 2026-10-06 19:19:20 UTC by grupohzone
Updated 2026-10-08 22:40:33 UTC by grupohzone