Hi RogerSC,You may already know this, but if you use Merlin firmware for the RT-AC68U, you get the CPU temperature in the "Tools" page, along with the radio temperatures. It isn't available for using with SNMP software, but you can look at it if you want *smile*.
Hi RogerSC,Sounds like a good plan.
You might try /proc/dmu/temperature. This contains the cpu temperature for most routers that use embedded Linux OS.
curr_coreTmp_cpu = "<% get_cpu_temperature(); %>";
curr_coreTmp_2_raw = "<% sysinfo("temperature.2"); %>";
curr_coreTmp_2 = (curr_coreTmp_2_raw.indexOf("disabled") > 0 ? 0 : curr_coreTmp_2_raw.replace("°C", ""));
curr_coreTmp_5_raw = "<% sysinfo("temperature.5"); %>";
curr_coreTmp_5 = (curr_coreTmp_5_raw.indexOf("disabled") > 0 ? 0 : curr_coreTmp_5_raw.replace("°C", ""));
curr_coreTmp_cpu = "<% get_cpu_temperature(); %>";
cat /proc/dmu/temperature | grep -o -e "[0-9][0-9]" | awk '{print "0:"$1":OK"}'
The OIDs are all standard Linux ones. I disabled the Asus-specific OIDs because they were exposing security-sensitive info such as the router login to anyone on the LAN who knew how to use an SMNP client.
Is that the same case when the router is flashed with DD-WRT and using SNMP?
No idea what DD-WRT exposes OID-wise.
The OIDs are all standard Linux ones
We use essential cookies to make this site work, and optional cookies to enhance your experience.