picklefish
Explorer
- Joined
- Mar 13, 2016
- Messages
- 62
it's running as root because it needs smartctl. But I imagine it's probably a permissions issue I don't understand.
it's running as root because it needs smartctl. But I imagine it's probably a permissions issue I don't understand.
[root@freenas ~]# /mnt/Panzer/Scripts/freenas-temperature-graphing-master/rrd.sh /mnt/Panzer/Scripts/freenas-temperature-graphing-master/temps-5min.rrd + '[' -n ']' + func_usage + echo ' This script gathers and outputs the CPU and drive temperatures in a format rrdtool can consume. Usage $0 [-v] [-d] [-h] -v | --verbos Enables verbose output -d | --debug Outputs each line of the script as it executes (turns on xtrace) -h | --help Displays this message ' + exit 0 ERROR: invalid option -- 'v'
@Seren, Thanks for the script you are the best ;)
I was wondering if by any chance we could change the graph hours, can we?
Thanks again
#!/bin/sh ### Parameters ### email="your_email@email.com" subject="Subject name" ### Send config backup ### cp /mnt/sysVault/sysDataSet/bin/ uuencode temps-1min-cpus.png temps-1min-cpus.png > /tmp/out.mail uuencode temps-1min-drives.png temps-1min-drives.png >> /tmp/out.mail uuencode temps-5min-cpus.png temps-5min-cpus.png >> /tmp/out.mail uuencode temps-5min-drives.png temps-5min-drives.png >> /tmp/out.mail mail -s "${subject}" "${email}" < /tmp/out.mail
adam@turbinado ~> ipmi sdr list full | grep Temp MB Temperature | 56 degrees C | ok CPU Temperature | 60 degrees C | ok
scarecrow% sudo sysctl -a | grep -i tempera coretemp0: critical temperature detected, suggest system shutdown coretemp0: critical temperature detected, suggest system shutdown coretemp1: critical temperature detected, suggest system shutdown coretemp0: critical temperature detected, suggest system shutdown dev.cpu.3.temperature: 78.0C dev.cpu.2.temperature: 78.0C dev.cpu.1.temperature: 81.0C dev.cpu.0.temperature: 81.0C