# 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](https://manuales.ghz.mx/uploads/images/gallery/2026-10/scaled-1680-/ZhqJtreyPhW1k4ht-image.png)](https://manuales.ghz.mx/uploads/images/gallery/2026-10/ZhqJtreyPhW1k4ht-image.png)

## Creación del Item en Zabbix

<table id="bkmrk-par%C3%A1metro-valor-name"><tbody><tr><th>Parámetro</th><th>Valor</th></tr><tr><td>Name</td><td>CPU Temperature</td></tr><tr><td>Type</td><td>Zabbix agent (active)</td></tr><tr><td>Key</td><td><div class="wordwrap">vfs.file.contents[/sys/class/hwmon/hwmon1/temp1_input]</div></td></tr><tr><td>Type of information</td><td>Numeric (float)</td></tr><tr><td>Units</td><td>°C</td></tr><tr><td>Update interval</td><td>1m</td></tr></tbody></table>

[![image.png](https://manuales.ghz.mx/uploads/images/gallery/2026-10/scaled-1680-/ThwVHcVCHIldnRny-image.png)](https://manuales.ghz.mx/uploads/images/gallery/2026-10/ThwVHcVCHIldnRny-image.png)

## Preprocessing

<table id="bkmrk-tipo-valor-custom-mu"><tbody><tr><th>Tipo</th><th>Valor</th></tr><tr><td>Custom multiplier</td><td>0.001</td></tr></tbody></table>

Esto convierte:

```
42850 → 42.85 °C
```

[![image.png](https://manuales.ghz.mx/uploads/images/gallery/2026-10/scaled-1680-/gIbqg1lwiLlR6ffB-image.png)](https://manuales.ghz.mx/uploads/images/gallery/2026-10/gIbqg1lwiLlR6ffB-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

<div class="note" id="bkmrk-monitoreo-de-tempera">- 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.

</div>