seren / freenas-temperature-graphing

Scripts to graph FreeNAS CPU and drive temperatures
Other
77 stars 14 forks source link

sysctl: unknown oid 'dev.cpu.0.temperature' #23

Open SuperMrBlob opened 3 years ago

SuperMrBlob commented 3 years ago

First, thanks so much for creating this project. Can't believe temperature monitoring isn't part of stock freenas.

However, I can't get the scripts working. They're running, but erroring out.

First run seems fine:

Creating rrdtool db file: /mnt/Pool/Internal/TEMPERATURE_MONITORING/temps-5min.rrd
Rrdtool arguments:   DS:cpu0:GAUGE:600:0:150 DS:cpu1:GAUGE:600:0:150 DS:ada0:GAUGE:600:0:100 DS:ada1:GAUGE:600:0:100 DS:ada2:GAUGE:600:0:100
/usr/local/bin/rrdtool create /mnt/Pool/Internal/TEMPERATURE_MONITORING/temps-5min.rrd --step 300 DS:cpu0:GAUGE:600:0:150 DS:cpu1:GAUGE:600:0:150 DS:ada0:GAUGE:600:0:100 DS:ada1:GAUGE:600:0:100 DS:ada2:GAUGE:600:0:100 RRA:MAX:0.5:1:3000

Second run

sysctl: unknown oid 'dev.cpu.0.temperature'
cat: /tmp/24781.temp.rrd.output: No such file or directory
rm: /tmp/24781.temp.rrd.output: No such file or directory
ERROR: /mnt/Pool/Internal/TEMPERATURE_MONITORING/temps-5min.rrd: expected 5 data source readings (got 1) from N
ERROR: Couldn't update /mnt/Pool/Internal/TEMPERATURE_MONITORING/temps-5min.rrd with the data provided. Running diagnostics...
rrd.sh version: 1.0
rrd-graph.sh version:
rrd-lib.sh version: 1.0
Testing file permissions...
Testing chmod...
Testing file field count...
Data variable is empty
Test failed (returned 1)

Third and every consecutive run

sysctl: unknown oid 'dev.cpu.0.temperature'
cat: /tmp/25819.temp.rrd.output: No such file or directory
rm: /tmp/25819.temp.rrd.output: No such file or directory

Both generated PNGs have no data points. Any ideas?

Build: FreeNAS-11.1-U5 Platform: AMD Opteron(tm) X3216 APU

seren commented 3 years ago

Hi, at a glance I'm not sure what the problem is. I don't think I'll have time to dig into this in the near future, however you might be interested to know that recent releases of FreeNAS (and now TrueNAS) have temperature monitoring built into the reports dashboard. I've actually stopped using this tool in favor of the built-in reports.