Proxmox: Saber temperatura CPU y otros sensores
Hoy entrada rápida, os explico cómo saber en vuestro sistema Proxmox, vía comando, qué temperatura tiene vuestro sistema. Yo voy a utilizar mi HP Microserver Gen8.
Para saber la temperatura, realizaremos la instalación de los comandos necesarios de la siguiente forma.
Lo primero que haremos es actualizar el sistema:
1 2 3 |
apt update apt dist-upgrade apt autoremove |
Una vez todo actualizado, lanzamos la instalación de los paquetes:
1 |
root@pve3:~# apt install lm-sensors hddtemp |
Lanzamos el comando de configuración, yo he dejado todas las preguntas por defecto:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 |
root@pve3:~# sensors-detect # sensors-detect revision $Revision$ # System: HP ProLiant MicroServer Gen8 # Kernel: 5.4.119-1-pve x86_64 # Processor: Intel(R) Xeon(R) CPU E31265L @ 2.40GHz (6/42/7) This program will help you determine which kernel modules you need to load to use lm_sensors most effectively. It is generally safe and recommended to accept the default answers to all questions, unless you know what you're doing. Some south bridges, CPUs or memory controllers contain embedded sensors. Do you want to scan for them? This is totally safe. (YES/no): YES Module cpuid loaded successfully. Silicon Integrated Systems SIS5595... No VIA VT82C686 Integrated Sensors... No VIA VT8231 Integrated Sensors... No AMD K8 thermal sensors... No AMD Family 10h thermal sensors... No AMD Family 11h thermal sensors... No AMD Family 12h and 14h thermal sensors... No AMD Family 15h thermal sensors... No AMD Family 16h thermal sensors... No AMD Family 17h thermal sensors... No AMD Family 15h power sensors... No AMD Family 16h power sensors... No Intel digital thermal sensor... Success! (driver `coretemp') Intel AMB FB-DIMM thermal sensor... No Intel 5500/5520/X58 thermal sensor... No VIA C7 thermal sensor... No VIA Nano thermal sensor... No Some Super I/O chips contain embedded sensors. We have to write to standard I/O ports to probe them. This is usually safe. Do you want to scan for Super I/O sensors? (YES/no): YES Probing for Super-I/O at 0x2e/0x2f Trying family `National Semiconductor/ITE'... Yes Found unknown chip with ID 0x0001 Probing for Super-I/O at 0x4e/0x4f Trying family `National Semiconductor/ITE'... No Trying family `SMSC'... No Trying family `VIA/Winbond/Nuvoton/Fintek'... No Trying family `ITE'... No Some systems (mainly servers) implement IPMI, a set of common interfaces through which system health data may be retrieved, amongst other things. We first try to get the information from SMBIOS. If we don't find it there, we have to read from arbitrary I/O ports to probe for such interfaces. This is normally safe. Do you want to scan for IPMI interfaces? (YES/no): YES Found `IPMI BMC KCS' at 0xca2... Success! (confidence 8, driver `to-be-written') Some hardware monitoring chips are accessible through the ISA I/O ports. We have to write to arbitrary I/O ports to probe them. This is usually safe though. Yes, you do have ISA I/O ports even if you do not have any ISA slots! Do you want to scan the ISA I/O ports? (YES/no): YES Probing for `National Semiconductor LM78' at 0x290... No Probing for `National Semiconductor LM79' at 0x290... No Probing for `Winbond W83781D' at 0x290... No Probing for `Winbond W83782D' at 0x290... No Lastly, we can probe the I2C/SMBus adapters for connected hardware monitoring devices. This is the most risky part, and while it works reasonably well on most systems, it has been reported to cause trouble on some systems. Do you want to probe the I2C/SMBus adapters now? (YES/no): YES Sorry, no supported PCI bus adapters found. Next adapter: mga i2c (i2c-0) Do you want to scan it? (yes/NO/selectively): Now follows a summary of the probes I have just done. Just press ENTER to continue: Driver `to-be-written': * ISA bus, address 0xca2 Chip `IPMI BMC KCS' (confidence: 8) Driver `coretemp': * Chip `Intel digital thermal sensor' (confidence: 9) Note: there is no driver for IPMI BMC KCS yet. Check https://hwmon.wiki.kernel.org/device_support_status for updates. To load everything that is needed, add this to /etc/modules: #----cut here---- # Chip drivers coretemp #----cut here---- If you have some drivers built into your kernel, the list above will contain too many modules. Skip the appropriate ones! Do you want to add these lines automatically to /etc/modules? (yes/NO) Unloading cpuid... OK |
Para saber la temperatura usaremos el siguiente comando:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
root@pve3:~# sensors tg3-pci-0301 Adapter: PCI adapter temp1: +52.0°C (high = +100.0°C, crit = +110.0°C) coretemp-isa-0000 Adapter: ISA adapter Package id 0: +44.0°C (high = +76.0°C, crit = +82.0°C) Core 0: +44.0°C (high = +76.0°C, crit = +82.0°C) Core 1: +43.0°C (high = +76.0°C, crit = +82.0°C) Core 2: +42.0°C (high = +76.0°C, crit = +82.0°C) Core 3: +44.0°C (high = +76.0°C, crit = +82.0°C) acpitz-acpi-0 Adapter: ACPI interface temp1: +8.3°C (crit = +31.3°C) tg3-pci-0300 Adapter: PCI adapter temp1: +52.0°C (high = +100.0°C, crit = +110.0°C) power_meter-acpi-0 Adapter: ACPI interface power1: 0.00 W (interval = 300.00 s) |
Nos dice incluso, lo que se determina crítico, así que está muy bien, porque esto nos lo podemos llevar a Zabbix, por ejemplo.
Te ha gustado la entrada SGUENOS EN TWITTER O INVITANOS A UN CAFE?
Buenas, muchas gracias por toda la información. Ayer conseguí conectar la fibra con PPPoE gracias a tu ayuda con Pfsense.
Me interesa monitorizar la temperatura de mi miniPC y también he encontrado en tu blog.
He seguido todos los pasos, pero hay un punto en que aparece como que la versión del programa de temperatura está obsoleto… Actualmente uso la última versión de Proxmox, 8.0.3.
root@proxmox:~# apt install lm-sensors hddtemp
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
Package hddtemp is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package ‘hddtemp’ has no installation candidate
¡Gracias!