Add CPU Temp sensors on Proxmox gui
Please back up files before editing!!
apt-get install lm-sensors
search for: version_text
search for: PVE Manager Version Add code systemctl restart pveproxy (versions 8 search for pveversion
modify file and add
{
itemId: 'thermal',
colspan: 2,
printBar: false,
title: gettext('CPU Thermal State'),
textField: 'thermalstate',
renderer:function(value){
let objValue = JSON.parse(value);
let cores = objValue["coretemp-isa-0000"]
let items = Object.keys(cores).filter(item => /Core/.test(item));
let str = '';
items.forEach((x, idx) => {
str += cores[x][`temp${idx+2}_input`] + ' ';
});
str += '°C';
return str;
}
}

Restart pveproxy (sometimes you need to clear cache to make it work)
systemctl restart pveproxy

No Comments