Polling CPU temperature with SNMP

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
TimJacob2001
DD-WRT Novice


Joined: 16 Jun 2006
Posts: 18
Location: Atlantic Canada

PostPosted: Wed Aug 28, 2019 19:54    Post subject: Polling CPU temperature with SNMP Reply with quote
We would like to poll the temperature of this Netgear WNR3500L v2 Router via SNMP. The attached image shows that DD-WRT reads it. An SNMP walk does not appear to bring up any temperature OIDs.

Can anyone help me as to what to do?
Many thanks



2019-08-28 16_49_28-Window.jpg
 Description:
 Filesize:  133.12 KB
 Viewed:  2764 Time(s)

2019-08-28 16_49_28-Window.jpg


Sponsor
yoyoma2
DD-WRT User


Joined: 24 Sep 2016
Posts: 371

PostPosted: Thu Aug 29, 2019 0:52    Post subject: Reply with quote
Not SNMP but you can save temp data to a network drive
Code:
#!/bin/sh

# log cpu temperature periodically

OUTFILE=/tmp/var/tmp/updatetemp.log

cat /proc/dmu/temperature >> $OUTFILE

exit 0

and run it with cron e.g every ten minutes.
Code:
*/10 * * * * root /opt/bin/updatetemp.sh
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum