| pve-mod-gui-temp.sh | ||
| pve-mod-temp.png | ||
| readme.md | ||
| updateallcontainers.sh | ||
Proxmox mods and script
A small collection of script and mods for Proxmox
If you find this helpful, a small donation is appreciated,
.
Node temperature view
(compatible with at least version 7.4-3)
This bash script installs a modification to the Proxmox Virtual Environment (PVE) web user interface (UI) to display temperature information. Currently for a 4 core CPU and NVME. The modification includes three main steps:
- Create backups of the original files located at
/usr/share/pve-manager/js/pvemanagerlib.jsand/usr/share/perl5/PVE/API2/Nodes.pmin the/root/backupdirectory. - Add a new line to the
Nodes.pmfile that reads the thermal state information of the host using thesensorscommand. - Modify the
pvemanagerlib.jsfile to expand the space in the StatusView and add a new item to the items array that displays the temperature information in Celsius for the CPU cores and the NVME drive.
The script provides two options: install and uninstall. The install option installs the modification, while the uninstall option removes it by copying the backup files to their original location. The script also restarts the pveproxy service to apply the changes.
Adjust the code to accommondate fewer/more cores withe the output of sensor -j and the parsing/posting of information in the code sed -i "/^Ext.define('PVE.node.StatusView'
Install
apt-get install lm-sensors
wget https://github.com/Meliox/PVE-mods/blob/main/pve-mod-gui-temp.sh
Scrip to update all containers
(compatible with all)
This script updates all running Proxmox containers, skipping specified excluded containers, and generates a separate log file for each container. The script first updates the Proxmox host system, then iterates through each container, updates the container, and reboots it if necessary. Each container's log file is stored in $log_path and the main script log file is named container-upgrade-main.log.
Install
wget https://github.com/Meliox/PVE-mods/blob/main/updateallcontainers.sh
Can be added to cron for e.g. monthly update: 0 6 1 * * /root/scripts/updateallcontainers.sh
