Code Monkey home page Code Monkey logo

synology_cpu_temperature's Introduction

Synology CPU temperature

Donate committers.top badge

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 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 Realtek, Annapurna, STM, Mindspeed and Freescale CPUs.
  • To report any problems create an issue and I'll add support for your CPU.

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

  1. Download the latest version Source code (zip) from https://github.com/007revad/Synology_CPU_temperature/releases
  2. Save the download zip file to a folder on the Synology.
  3. 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

  1. See How to schedule a script in Synology Task Scheduler
  2. 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:

  1. 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"
  2. Make sure you unpacked the zip or rar file that you downloaded and are trying to run the syno_cpu_temp.sh file.
  3. 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

synology_cpu_temperature's People

Contributors

007revad avatar

Stargazers

 avatar ちょうどあなたに会った avatar Jiashu Wang avatar Pjotr van der Horst avatar Usatyuk Vasiliy avatar  avatar  avatar

Watchers

 avatar

Forkers

miaomi9

synology_cpu_temperature's Issues

Does not work witn Intel Pentium D

Hi, thanks for your work. Much appreciated.

I tried and the script does not get the temperature for my Intel Pentium D on a DSM923+ with DSM 7.2.1.

Please, advise.

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.