NetGate 6100 (23.09.1) - can I access the system temperature sensor(s) values via the command line?
-
Is there a way to get the values of the system's temperature sensor(s) via a command line tool? I want to send myself an alert if the temperature exceeds a particular value.
Thanks.
-
You can see the coretemp values via their sysctl:
[24.03-BETA][root@6100-3.stevew.lan]/root: sysctl -a | grep temperature hw.acpi.thermal.tz0.temperature: 26.9C dev.cpu.3.temperature: 49.0C dev.cpu.2.temperature: 47.0C dev.cpu.1.temperature: 48.0C dev.cpu.0.temperature: 50.0C
Steve
-
@stephenw10 Thanks. On my unit I only see the ACPI temperature but no CPU core temperatures, any idea why that is?
.../root: sysctl -a | grep temperature hw.acpi.thermal.tz0.temperature: 26.9C
Just curious as the ACPI temp will likely do for my purposes.
-
If you don't see the CPU core temperatures it's because the coretemp driver isn't loaded. It's loaded by default so you probably imported a config? It's a setting in Sys > Adv > Misc.
-
@stephenw10 Thanks again. That was indeed it. All sorted.
-
@stephenw10 I did import a migrated Config (from an SG-3100). Is there anything else system or hardware wise that might not be set optimally for a 6100 as a result?
-
You can enable QAT and/or IIMB on that same page. If you're not running a VPN that won't make any significant difference though.
-
@stephenw10 Thanks. I use WireGuard extensively so I will turn those on.