Mark Francis
Cadet
- Joined
- Nov 17, 2016
- Messages
- 9
I'm running FreeNAS-9.3-STABLE-201605170422
Thank you for this script. It's reduced the noise from my fans massively.
Even though my fans seem to be cooling things correctly, this output concerns me:
And in debug lvl 2:
Should I be concerned?
I don't know Perl much (read: at all) but it looks to be throwing the error from line 797. It seems to be assigned to a var on line 790, which seems to be an array from $output, which is running "/usr/local/sbin/smartctl -A $disk_dev | grep Temperature_Celsius". So when I run it manually, I get:
So my assumption is that line 790 should be changed from:
Am I on the right track?
Thank you for this script. It's reduced the noise from my fans massively.
Even though my fans seem to be cooling things correctly, this output concerns me:
Code:
2016-11-18 15:21:49: CPU Temp: 26.0 <= 35, CPU Fan going low. 2016-11-18 15:21:49: Maximum HD Temperature: 25 2016-11-18 15:21:49: Drives are cool enough, going to 30% 2016-11-18 15:22:00: CPU Fan speed: No reading 2016-11-18 15:22:12: CPU Fan speed: No reading 2016-11-18 15:22:24: CPU Fan speed: No reading 2016-11-18 15:22:35: CPU Fan speed: No reading 2016-11-18 15:22:47: CPU Fan speed: No reading 2016-11-18 15:22:59: CPU Fan speed: No reading 2016-11-18 15:23:10: CPU Fan speed: No reading 2016-11-18 15:23:22: CPU Fan speed: No reading 2016-11-18 15:23:34: CPU Fan speed: No reading 2016-11-18 15:23:45: CPU Fan speed: No reading 2016-11-18 15:23:57: CPU Fan speed: No reading 2016-11-18 15:24:09: CPU Fan speed: No reading 2016-11-18 15:24:09: Fan speeds are unreadable after 120 seconds, rebooting BMC 2016-11-18 15:24:09: Resetting BMC 2016-11-18 15:24:58: Maximum HD Temperature: 25 ipmitool: ipmi_sdr_get_record() failed Get SDR 02e5 command failed: BMC initialization in progress Get SDR 02e5 command failed: BMC initialization in progress Get SDR 02e5 command failed: BMC initialization in progress Get SDR 02e5 command failed: BMC initialization in progress Get SDR 02e5 command failed: BMC initialization in progress 2016-11-18 15:25:09: CPU Fan speed: No reading Error obtaining SDR info: BMC initialization in progress Unable to open SDR for reading 2016-11-18 15:25:21: CPU Fan speed: No reading 2016-11-18 15:25:32: CPU Fan speed: No reading 2016-11-18 15:25:44: CPU Fan speed: No reading 2016-11-18 15:25:56: CPU Fan speed: No reading 2016-11-18 15:26:08: CPU Fan speed: No reading
And in debug lvl 2:
Code:
[root@freenas] ~# ./fan_control.pl 2016-11-18 13:59:41: Setting fan mode to 1 (full) 2016-11-18 13:59:46: CPU Temp: 31.0 2016-11-18 13:59:46: CPU Temp: 31.0 <= 35, CPU Fan going low. 2016-11-18 13:59:46: CPU Fan: low 2016-11-18 13:59:46: CPU Fan changing... (low) 2016-11-18 13:59:46: Setting Zone 0 duty cycle to 30% 2016-11-18 13:59:46: /dev/ada0: 28 2016-11-18 13:59:46: Maximum HD Temperature: 28 2016-11-18 13:59:46: Drives are cool enough, going to 30% 2016-11-18 13:59:46: Setting Zone 1 duty cycle to 30% 2016-11-18 13:59:47: CPU Temp: 30.0 2016-11-18 13:59:47: CPU Fan: low 2016-11-18 13:59:48: CPU Temp: 31.0 2016-11-18 13:59:48: CPU Fan: low 2016-11-18 13:59:49: CPU Temp: 31.0 2016-11-18 13:59:49: CPU Fan: low 2016-11-18 13:59:50: CPU Temp: 30.0 2016-11-18 13:59:50: CPU Fan: low 2016-11-18 13:59:51: CPU Temp: 30.0 2016-11-18 13:59:51: CPU Fan: low 2016-11-18 13:59:52: CPU Temp: 30.0 2016-11-18 13:59:52: CPU Fan: low 2016-11-18 13:59:53: CPU Temp: 30.0 2016-11-18 13:59:53: CPU Fan: low 2016-11-18 13:59:54: CPU Temp: 30.0 2016-11-18 13:59:54: CPU Fan: low 2016-11-18 13:59:55: CPU Temp: 30.0 2016-11-18 13:59:55: CPU Fan: low 2016-11-18 13:59:56: CPU Temp: 30.0 2016-11-18 13:59:56: CPU Fan: low 2016-11-18 13:59:57: CPU Temp: 29.0 2016-11-18 13:59:57: CPU Fan: low 2016-11-18 13:59:57: CPU Fan speed: No reading 2016-11-18 13:59:57: CPU Fan speed unavailable 2016-11-18 13:59:58: HD Fan speed: 400 RPM 2016-11-18 13:59:59: CPU Temp: 31.0 2016-11-18 13:59:59: CPU Fan: low 2016-11-18 14:00:00: CPU Temp: 31.0 2016-11-18 14:00:00: CPU Fan: low 2016-11-18 14:00:01: CPU Temp: 35.0 2016-11-18 14:00:01: CPU Fan: low 2016-11-18 14:00:02: CPU Temp: 37.0 2016-11-18 14:00:02: CPU Fan: low 2016-11-18 14:00:03: CPU Temp: 37.0 2016-11-18 14:00:03: CPU Fan: low 2016-11-18 14:00:04: CPU Temp: 37.0 2016-11-18 14:00:04: CPU Fan: low 2016-11-18 14:00:05: CPU Temp: 39.0 2016-11-18 14:00:05: CPU Fan: low 2016-11-18 14:00:06: CPU Temp: 37.0 2016-11-18 14:00:06: CPU Fan: low 2016-11-18 14:00:07: CPU Temp: 37.0 2016-11-18 14:00:07: CPU Fan: low 2016-11-18 14:00:08: CPU Temp: 38.0 2016-11-18 14:00:08: CPU Fan: low 2016-11-18 14:00:09: CPU Temp: 36.0 2016-11-18 14:00:09: CPU Fan: low
Should I be concerned?
I don't know Perl much (read: at all) but it looks to be throwing the error from line 797. It seems to be assigned to a var on line 790, which seems to be an array from $output, which is running "/usr/local/sbin/smartctl -A $disk_dev | grep Temperature_Celsius". So when I run it manually, I get:
Code:
[root@freenas] ~# /usr/local/sbin/smartctl -A /dev/ada0 | grep Temperature_Celsius 194 Temperature_Celsius 0x0022 118 114 000 Old_age Always - 29
So my assumption is that line 790 should be changed from:
Code:
my $fan_speed = "$vals[2]"; to my $fan_speed = "$vals[8]";
Am I on the right track?
Last edited: