syagent / agent-2

24 stars 2 forks source link

Feature request - CPU temperature #27

Open quammy opened 1 year ago

quammy commented 1 year ago

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.

Rashe commented 1 year ago

Cool idea, can be added as optional features.