thanks again for a nice service. can you please add CPU temperature?
on ubuntu, if the sensors package is installed - sudo apt-get install lm-sensors, the command sensors returns, among other data, this CPU temp: Package id 0: +47.0°C (high = +100.0°C, crit = +100.0°C)
you can grep it using this sensors 2>/dev/null | grep 'Package id 0' | awk '{print $4}' to return only +47.0°C
for more advanced usage, you can use the high threshold to decide if to alert.
thanks again for a nice service. can you please add CPU temperature? on ubuntu, if the sensors package is installed -
sudo apt-get install lm-sensors
, the commandsensors
returns, among other data, this CPU temp:Package id 0: +47.0°C (high = +100.0°C, crit = +100.0°C)
you can grep it using this
sensors 2>/dev/null | grep 'Package id 0' | awk '{print $4}'
to return only+47.0°C
for more advanced usage, you can use the high threshold to decide if to alert.