Proxmox modifications
Go to file
Meliox b642d4c102
Ask user for input for CPU configuration (#4)
* More flexible CPU detection. Ask user to input correct parameters. Examples are presented to guide the user
* Amd temps are by default limited to "Tccd" whereas Intel is "Cores"
* Rework indexing of all temperature items. CPU temps will be presented in the order presented from lm-sensors
* Dynamically add temps and only show temps that are available (CPU, HDD, SSD, NVMe)
* Change default backup location to same location as the script
* Reworked script output messages
* Many code quality improvements
* Visual improvements temp display in proxmox gui
Resolves #1 , #3, #5 

---------

Co-authored-by: Meliox
Co-authored-by: rmm
2023-07-08 22:36:44 +02:00
.gitignore Ask user for input for CPU configuration (#4) 2023-07-08 22:36:44 +02:00
pve-mod-gui-temp.sh Ask user for input for CPU configuration (#4) 2023-07-08 22:36:44 +02:00
pve-mod-temp.png Add files via upload 2023-04-24 20:38:43 +02:00
readme.md Dynamic display of temperatures for all CPU cores, NVMe drives and HDD/SSDs (#2) 2023-06-27 20:13:41 +02:00
updateallcontainers.sh Create updateallcontainers.sh 2023-06-25 13:03:26 +02:00

Proxmox mods and script

A small collection of script and mods for Proxmox

If you find this helpful, a small donation is appreciated, Donate.

Node temperature view

(Test compatibility against 7.x & 8.0)

This bash script installs a modification to the Proxmox Virtual Environment (PVE) web user interface (UI) to display temperature information in a flexible manner for CPU, NVME and HDDs/SSDs.

The modification includes three main steps:

  1. Create backups of the original files located at /usr/share/pve-manager/js/pvemanagerlib.js and /usr/share/perl5/PVE/API2/Nodes.pm in the /root/backup directory.
  2. Add a new line to the Nodes.pm file that reads the thermal state information of the host using the sensors command.
  3. Modify the pvemanagerlib.js file to expand the space in the StatusView and add a new item to the items array that displays the temperature information in Celsius for CPU, NVME and HDDs/SSDs.

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.

For HDDs/SSDs readings to work, the kernal module drivetemp must be installed.

Install

apt-get install lm-sensors
wget https://github.com/Meliox/PVE-mods/blob/main/pve-mod-gui-temp.sh

Promxox temp mod

Adjustments are available in the first part of the script, where paths can be edited, cpucore offset and display information.

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