| .github | ||
| images | ||
| .gitattributes | ||
| CHANGES.txt | ||
| how_to_schedule.md | ||
| LICENSE | ||
| my-other-scripts.md | ||
| README.md | ||
| syno_cpu_temp.conf | ||
| syno_cpu_temp.sh | ||
Synology CPU temperature
Description
Get Synology NAS CPU temperature via SSH
- In DSM 7 the CPU temperature is shown as "Thermal status" in "Control Panel > Info".
- Active Insight, and DSM 6, refer to CPU temperature as "System temperature".
Works for Intel, AMD, Realtek RTD1619B and Marvell CPUs in DSM 7 and DSM 6. Also works for Synology models with more than 1 CPU.
- v2.2.5 and later may work for Annapurna, STM, Mindspeed and Freescale CPUs.
- To report any problems create an issue and I'll add support for your CPU.
NOTE for Realtek RTD129x CPUs: Synology NAS with a Realtek RTD1296 or RTD1293 CPU always show 40°C. Affected models are DS420j, DS220j, RS819, DS418, DS418j, DS218, DS218play and DS118. Source TN-Notebooks
If you schedule the script in Task Scheduler you should enable logging and set the log_directory in the included syno_cpu_temp.conf
Download the script
- Download the latest version Source code (zip) from https://github.com/007revad/Synology_CPU_temperature/releases
- Save the download zip file to a folder on the Synology.
- Unzip the zip file.
How to run the script via SSH
You can run the script via SSH
How to enable SSH and login to DSM via SSH
/volume1/scripts/syno_cpu_temp.sh
Note: Replace /volume1/scripts/ with the path to where the script is located.
Or you can schedule the script in Synology's Task Scheduler
- See How to schedule a script in Synology Task Scheduler
- Enable log and set log_directory in the included syno_cpu_temp.conf
- syno_cpu_temp.conf needs to be in the same folder as syno_cpu_temp.sh
Enabling logging
To enable logging edit the included syno_cpu_temp.conf
Log=yes
Log_Directory="/volume1/backups/diskstation/logs"
Note: Replace /volume1/backups/diskstation/logs with the path to where you want the log saved.
Troubleshooting
If the script won't run check the following:
- If the path to the script contains any spaces you need to enclose the path/scriptname in double quotes:
"/volume1/my scripts/syno_cpu_temp.sh" - Make sure you unpacked the zip or rar file that you downloaded and are trying to run the syno_cpu_temp.sh file.
- Set the syno_cpu_temp.sh file as executable:
sudo chmod +x "/volume1/scripts/syno_cpu_temp.sh"
Screenshots
AMD Ryzen CPU

Intel 4 core CPU

Intel 2 core CPU

AMD Ryzen CPU log

Intel 4 core CPU log

Intel 2 core CPU log
