Jump to content
bonienl

Dynamix - V6 Plugins

2396 posts in this topic Last Reply

Recommended Posts

Slight bug in the Temp plugin. When my fan is off and should be showing 0rpm, I get "##rpm" at the bottom of the web gui. Also, while the fan is off, if I go to that plugin's settings page the fan field will show "Not Used". Othwise if I set my fan to any speed other than 0, it will show up at the bottom as well as in the settings page.

 

It appears that the plugin is auto-hiding any fans that are powered down or appear not connected. Wouldn't it be more useful to have all possibilities listed and then let the user pick the correct one?

 

But main issue is the "##?rpm" erroneously showing at the bottom when it should be "0 rpm".

 

I love the work you have put in to this web interface and hope that helps!

Share this post


Link to post

This autofan plugin looks like it should work similar to a script I wrote several years ago to control the fan based on hdd temps. Is that what it is supposed to do?

 

I installed it but it will not detect my fan (/sys/class/hwmon/hwmon1/device/pwm2). Would be really nice to have this in the web gui, I guess this addon is still a work in progress? Until then I guess I'll stick with my script.

 

Please post the result of this command:

 

find -L /sys/class/hwmon/ -maxdepth 5 -iname "pwm[0-9]" 2>/dev/null

 

Here you go:

/sys/class/hwmon/hwmon1/device/pwm1
/sys/class/hwmon/hwmon1/device/pwm2
/sys/class/hwmon/hwmon1/device/pwm3

 

Those are the three possible pwm controls from my it87 board.

Share this post


Link to post

This autofan plugin looks like it should work similar to a script I wrote several years ago to control the fan based on hdd temps. Is that what it is supposed to do?

 

I installed it but it will not detect my fan (/sys/class/hwmon/hwmon1/device/pwm2). Would be really nice to have this in the web gui, I guess this addon is still a work in progress? Until then I guess I'll stick with my script.

 

Please post the result of this command:

 

find -L /sys/class/hwmon/ -maxdepth 5 -iname "pwm[0-9]" 2>/dev/null

 

Here you go:

/sys/class/hwmon/hwmon1/device/pwm1
/sys/class/hwmon/hwmon1/device/pwm2
/sys/class/hwmon/hwmon1/device/pwm3

 

Those are the three possible pwm controls from my it87 board.

 

Ok, I need one last command output:

 

find /sys/devices -iname "hwmon[0-9]" -exec echo {} \; -exec ls -la {} \;

Share this post


Link to post

My pwm controls used to be under /sys/class/hwmon/hwmon1/device/, but it changed with V6beta7 to /sys/devices/platform/w83627ehf.2608/.  Then, when I installed the gfjardim plugin (now the dynamix plugin) it changed again, to /sys/class/hwmon/hwmon2/ - ie no /device subdirectory.

 

At the same times, the fanx_input has moved as well.

 

I mention this simply because it may be that you're loading an older driver yourself instead of using a later one as included in the unRAID image.

Share this post


Link to post

My pwm controls used to be under /sys/class/hwmon/hwmon1/device/, but sometime during the V6 beta cycle it changed to /sys/class/hwmon/hwmon2/.

 

I mention this simply because it may be that you're loading an older driver yourself instead of using a later one as included in the unRAID image.

This is not possible the way kernel and module versioning work, unless I want to bypass the checks which is something I would recommend never doing. In any case, it87 has been included in unraid for a while now and there is no need for me to compile my own module anymore.

Share this post


Link to post

This autofan plugin looks like it should work similar to a script I wrote several years ago to control the fan based on hdd temps. Is that what it is supposed to do?

 

I installed it but it will not detect my fan (/sys/class/hwmon/hwmon1/device/pwm2). Would be really nice to have this in the web gui, I guess this addon is still a work in progress? Until then I guess I'll stick with my script.

 

Please post the result of this command:

 

find -L /sys/class/hwmon/ -maxdepth 5 -iname "pwm[0-9]" 2>/dev/null

 

Here you go:

/sys/class/hwmon/hwmon1/device/pwm1
/sys/class/hwmon/hwmon1/device/pwm2
/sys/class/hwmon/hwmon1/device/pwm3

 

Those are the three possible pwm controls from my it87 board.

 

Ok, I need one last command output:

 

find /sys/devices -iname "hwmon[0-9]" -exec echo {} \; -exec ls -la {} \;

 

/sys/devices/pci0000:00/0000:00:18.3/hwmon/hwmon0
total 0
drwxr-xr-x 3 root root    0 Mar  2 19:57 .
drwxr-xr-x 3 root root    0 Mar  2 07:35 ..
lrwxrwxrwx 1 root root    0 Mar  2 08:10 device -> ../../../0000:00:18.3
-r--r--r-- 1 root root 4096 Mar  2 08:10 name
drwxr-xr-x 2 root root    0 Mar  2 16:33 power
lrwxrwxrwx 1 root root    0 Mar  2 07:35 subsystem -> ../../../../../class/hwmon
-r--r--r-- 1 root root 4096 Mar  2 08:10 temp1_crit
-r--r--r-- 1 root root 4096 Mar  2 08:10 temp1_crit_hyst
-r--r--r-- 1 root root 4096 Mar  2 08:10 temp1_input
-r--r--r-- 1 root root 4096 Mar  2 08:10 temp1_max
-rw-r--r-- 1 root root 4096 Mar  2 07:35 uevent
/sys/devices/platform/it87.656/hwmon/hwmon1
total 0
drwxr-xr-x 3 root root    0 Mar  2 19:57 .
drwxr-xr-x 3 root root    0 Mar  2 16:34 ..
lrwxrwxrwx 1 root root    0 Mar  2 16:34 device -> ../../../it87.656
drwxr-xr-x 2 root root    0 Mar  2 16:34 power
lrwxrwxrwx 1 root root    0 Mar  2 16:34 subsystem -> ../../../../../class/hwmon
-rw-r--r-- 1 root root 4096 Mar  2 16:34 uevent

 

There you go, hope that helps. :)

Share this post


Link to post

Your sysfs structure is very different from mine. Let's try some other commands:

 

ls -la `dirname $(find /sys/devices -iname "fan*_input")`

 

ls -la `dirname $(find /sys/devices -iname "pwm[0-9]")`

 

Share this post


Link to post

This autofan plugin looks like it should work similar to a script I wrote several years ago to control the fan based on hdd temps. Is that what it is supposed to do?

 

I installed it but it will not detect my fan (/sys/class/hwmon/hwmon1/device/pwm2). Would be really nice to have this in the web gui, I guess this addon is still a work in progress? Until then I guess I'll stick with my script.

 

Please post the result of this command:

 

find -L /sys/class/hwmon/ -maxdepth 5 -iname "pwm[0-9]" 2>/dev/null

 

Here you go:

/sys/class/hwmon/hwmon1/device/pwm1
/sys/class/hwmon/hwmon1/device/pwm2
/sys/class/hwmon/hwmon1/device/pwm3

 

Those are the three possible pwm controls from my it87 board.

 

Ok, I need one last command output:

 

find /sys/devices -iname "hwmon[0-9]" -exec echo {} \; -exec ls -la {} \;

 

/sys/devices/pci0000:00/0000:00:18.3/hwmon/hwmon0
total 0
drwxr-xr-x 3 root root    0 Mar  2 19:57 .
drwxr-xr-x 3 root root    0 Mar  2 07:35 ..
lrwxrwxrwx 1 root root    0 Mar  2 08:10 device -> ../../../0000:00:18.3
-r--r--r-- 1 root root 4096 Mar  2 08:10 name
drwxr-xr-x 2 root root    0 Mar  2 16:33 power
lrwxrwxrwx 1 root root    0 Mar  2 07:35 subsystem -> ../../../../../class/hwmon
-r--r--r-- 1 root root 4096 Mar  2 08:10 temp1_crit
-r--r--r-- 1 root root 4096 Mar  2 08:10 temp1_crit_hyst
-r--r--r-- 1 root root 4096 Mar  2 08:10 temp1_input
-r--r--r-- 1 root root 4096 Mar  2 08:10 temp1_max
-rw-r--r-- 1 root root 4096 Mar  2 07:35 uevent
/sys/devices/platform/it87.656/hwmon/hwmon1
total 0
drwxr-xr-x 3 root root    0 Mar  2 19:57 .
drwxr-xr-x 3 root root    0 Mar  2 16:34 ..
lrwxrwxrwx 1 root root    0 Mar  2 16:34 device -> ../../../it87.656
drwxr-xr-x 2 root root    0 Mar  2 16:34 power
lrwxrwxrwx 1 root root    0 Mar  2 16:34 subsystem -> ../../../../../class/hwmon
-rw-r--r-- 1 root root 4096 Mar  2 16:34 uevent

 

There you go, hope that helps. :)

 

Got the exact same problem and the exact same results running the commands...

Any chance for a solution?

Thanks

Share this post


Link to post

 

Got the exact same problem and the exact same results running the commands...

Any chance for a solution?

Thanks

 

Can you post the output for these?

 

Your sysfs structure is very different from mine. Let's try some other commands:

 

ls -la `dirname $(find /sys/devices -iname "fan*_input")`

 

ls -la `dirname $(find /sys/devices -iname "pwm[0-9]")`

 

Share this post


Link to post

Your sysfs structure is very different from mine. Let's try some other commands:

 

ls -la `dirname $(find /sys/devices -iname "fan*_input")`

 

ls -la `dirname $(find /sys/devices -iname "pwm[0-9]")`

 

 

Sorry for the delay, here are the two command outputs attached.

1.txt

2.txt

Share this post


Link to post

I'm using s3_sleep on my backup server (second server mentioned in my signature). By using the Wake On Lan support plugin that dmacias has provided I see that in my syslog:

 

Mar 6 09:22:18 Tower2 dhcpcd[12395]: br0: removing route to 192.168.178.0/24
Mar 6 09:22:18 Tower2 dhcpcd[12395]: br0: removing default route via 192.168.178.1
Mar 6 09:22:22 Tower2 dhcpcd[12395]: eth0: soliciting a DHCP lease
Mar 6 09:51:41 Tower2 kernel: ------------[ cut here ]------------
Mar 6 09:51:41 Tower2 kernel: WARNING: CPU: 0 PID: 3832 at drivers/usb/core/urb.c:339 usb_submit_urb+0x65/0x459()
Mar 6 09:51:41 Tower2 kernel: URB ffff8802172e7980 submitted while active
Mar 6 09:51:41 Tower2 kernel: Modules linked in: kvm_intel kvm vhost_net vhost tun ipt_MASQUERADE nf_nat_masquerade_ipv4 iptable_nat nf_conntrack_ipv4 nf_nat_ipv4 nf_nat iptable_filter ip_tables md_mod hwmon_vid coretemp mt2060 af9013 stv6110x lnbp21 stv090x ahci i2c_i801 libahci dvb_usb_af9015 dvb_usb_v2 rc_core pata_jmicron r8169 mii ddbridge cxd2099(C) dvb_core asus_atk0110 acpi_cpufreq
Mar 6 09:51:41 Tower2 kernel: CPU: 0 PID: 3832 Comm: tvheadend Tainted: G C 3.18.5-unRAID #1
Mar 6 09:51:41 Tower2 kernel: Hardware name: System manufacturer System Product Name/P7H55-M PRO, BIOS 1709 01/04/2011
Mar 6 09:51:41 Tower2 kernel: 0000000000000009 ffff8800c4b67b28 ffffffff815fd79f 0000000000000000
Mar 6 09:51:41 Tower2 kernel: ffff8800c4b67b78 ffff8800c4b67b68 ffffffff81041c7b ffff8800c4b67c58
Mar 6 09:51:41 Tower2 kernel: ffffffff8149c532 ffff8802172e7980 0000000000000001 ffff8802171dc000
Mar 6 09:51:41 Tower2 kernel: Call Trace:
Mar 6 09:51:41 Tower2 kernel: [] dump_stack+0x46/0x58
Mar 6 09:51:41 Tower2 kernel: [] warn_slowpath_common+0x77/0x91
Mar 6 09:51:41 Tower2 kernel: [] ? usb_submit_urb+0x65/0x459
Mar 6 09:51:41 Tower2 kernel: [] warn_slowpath_fmt+0x41/0x43
Mar 6 09:51:41 Tower2 kernel: [] usb_submit_urb+0x65/0x459
Mar 6 09:51:41 Tower2 kernel: [] ? __insert_vmap_area+0x71/0xb7
Mar 6 09:51:41 Tower2 kernel: [] usb_urb_submitv2+0x47/0x88 [dvb_usb_v2]
Mar 6 09:51:41 Tower2 kernel: [] dvb_usb_start_feed+0x13e/0x24a [dvb_usb_v2]
Mar 6 09:51:41 Tower2 kernel: [] dmx_ts_feed_start_filtering+0x7d/0x141 [dvb_core]
Mar 6 09:51:41 Tower2 kernel: [] dvb_dmxdev_start_feed.isra.1+0xa9/0xce [dvb_core]
Mar 6 09:51:41 Tower2 kernel: [] dvb_dmxdev_filter_start+0x314/0x3f6 [dvb_core]
Mar 6 09:51:41 Tower2 kernel: [] dvb_demux_do_ioctl+0x3cb/0x6fc [dvb_core]
Mar 6 09:51:41 Tower2 kernel: [] dvb_usercopy+0xab/0x116 [dvb_core]
Mar 6 09:51:41 Tower2 kernel: [] ? dvb_dmxdev_ts_callback+0xd0/0xd0 [dvb_core]
Mar 6 09:51:41 Tower2 kernel: [] ? do_filp_open+0x35/0x85
Mar 6 09:51:41 Tower2 kernel: [] dvb_demux_ioctl+0x10/0x14 [dvb_core]
Mar 6 09:51:41 Tower2 kernel: [] do_vfs_ioctl+0x351/0x415
Mar 6 09:51:41 Tower2 kernel: [] ? final_putname+0x30/0x34
Mar 6 09:51:41 Tower2 kernel: [] ? set_close_on_exec+0x51/0x5a
Mar 6 09:51:41 Tower2 kernel: [] SyS_ioctl+0x39/0x61
Mar 6 09:51:41 Tower2 kernel: [] system_call_fastpath+0x12/0x17
Mar 6 09:51:41 Tower2 kernel: ---[ end trace b2636d05c97699e6 ]---
Mar 6 09:51:41 Tower2 kernel: usb 2-1.4: dvb_usb_v2: could not submit urb no. 0 - get them all back

 

Everything's working fine afterwards (even TVHeadend as Docker) but the server isn't going to sleep again. Please advise what I can do in order to investigate the issue. Thanks a lot for the great plugin.

Share this post


Link to post

@EdgarWallace if you using DVB tuner with tvheadend on unraid - you should unload dvbdriver before sleep and load after wake up.

other wise you could get crash (many drivers dont support supsend or just dont work correct)

Share this post


Link to post

Hi piotrasd, this might be caused by a DVB-T USB tuner that I'm using as test device.

 

That means that I have to enter commands into the "Custom commands before sleep" as well as into the "Custom commands after wake-up" entry fields? That means I have to enter "modprobe -r DRIVER"?

 

Can you advise what the correct command would be?

 

I'm using your media build btw.  :D

Share this post


Link to post

 

Got the exact same problem and the exact same results running the commands...

Any chance for a solution?

Thanks

 

Can you post the output for these?

 

Your sysfs structure is very different from mine. Let's try some other commands:

 

ls -la `dirname $(find /sys/devices -iname "fan*_input")`

 

ls -la `dirname $(find /sys/devices -iname "pwm[0-9]")`

 

attached

fan_input.txt

pwm.txt

Share this post


Link to post

Running into an issue with system stats and the tempfs file system.  It seems that the log data for system stats (in /var/log/sa) is growing fast enough that it fills up the tempfs file system before it rolls over, so I have to go in and delete the directory so it doesn't fill up the file system.

 

So, given that, a couple of questions, is there a way to change the location of this from tempfs, or is there a way to change the amount of data logged?

Share this post


Link to post

Auto Fan script is also not working for me. Shows PWM Controller as none, detect buttons do nothing.

 

I have an X8SIL-F supermicro motherboard.

 

ls -la `dirname $(find /sys/devices -iname "fan*_input")`

dirname.txt

 

ls -la `dirname $(find /sys/devices -iname "pwm[0-9]")`

dirnamepwm.txt

 

Have attached output of the above commands

dirname.txt

dirnamepwm.txt

Share this post


Link to post

Auto Fan script is also not working for me. Shows PWM Controller as none, detect buttons do nothing.

 

I have an X8SIL-F supermicro motherboard.

 

ls -la `dirname $(find /sys/devices -iname "fan*_input")`

dirname.txt

 

ls -la `dirname $(find /sys/devices -iname "pwm[0-9]")`

dirnamepwm.txt

 

Have attached output of the above commands

 

Thanks. I've patched this a while ago, just waiting bonienl to release the update.

Share this post


Link to post

Auto Fan script is also not working for me. Shows PWM Controller as none, detect buttons do nothing.

 

I have an X8SIL-F supermicro motherboard.

 

ls -la `dirname $(find /sys/devices -iname "fan*_input")`

dirname.txt

 

ls -la `dirname $(find /sys/devices -iname "pwm[0-9]")`

dirnamepwm.txt

 

Have attached output of the above commands

 

Thanks. I've patched this a while ago, just waiting bonienl to release the update.

 

I will release a update soon.

 

Share this post


Link to post

Just installed s3 sleep on 6b14 test server with an Areca 1280 24 port drive controller.  It seems to work fine.  However last night it was doing a parity check, and went to sleep 30% through the check (one hour was set before sleep).  It woke up and continued the parity check as if nothing had happened. 

 

Should it go to sleep in the middle of a parity check??  Is that not activity that would keep it from activating sleep?

 

MB: Gigabyte GA-880GA-UD3H with  AMD Phenom II X6 1055T with 16GB ram

 

Share this post


Link to post

Funny my server shut itself down from the plugin during a movie last night.  A drive should definitely been spinning.  Will have to look into it more.

 

Update figured it out - seems the wait for activity got reset to NO.  Odd

Share this post


Link to post

I'm trying to setup the system temps plugin and i do the following:

 

pressing detect i get "coretemp nct6775" in gui but "yes: standard output: broken pipe in console, yes: write error"

log shows:

Mar 22 12:05:55 Ruby kernel: nct6775: Found NCT6776D/F or compatible chip at 0x2e:0xa30

 

pressing load drivers i get console errors: "ERROR: Can't get value of subfeature...."

 

I have a Supermicro - X9SCL/X9SCM and on V5.0.6 i used sensors.conf with the following info that worked fine:

 

chip "w83627ehf-*" "w83627dhg-*" "w83667hg-*" "nct6775-*" "nct6776-*"

    label in0 "Vcore"
    label in2 "AVCC"
    label in3 "+3.3V"
    label in7 "3VSB"
    label in8 "Vbat"
    label temp2 "CPU Temp"
    label temp1 "MB Temp"
ignore intrusion1
ignore fan4
ignore fan5

    set in2_min  3.3 * 0.90
    set in2_max  3.3 * 1.10
    set in3_min  3.3 * 0.90
    set in3_max  3.3 * 1.10
    set in7_min  3.3 * 0.90
    set in7_max  3.3 * 1.10
    set in8_min  3.0 * 0.90
    set in8_max  3.3 * 1.10

 

I tried renaming my sensors.conf to drivers.conf and loading that from my usb drive but it doesn't work.

 

Can anybody help please?

 

EDIT* it seems after a reboot the driver has loaded automatically and is picking up the temps..

Share this post


Link to post

So the fan script for me detects 4 PWM controllers, and i have 5 PWM fan ports. CPU Fan on Fan1, backplane on ports 2~4. However no matter what i do with the PWM controller, or with the PWM fan setting (No matter which pwm controller is selected ,it always detects /sys/devices/platform/w83627ehf.2576/fan1_input)

 

it just sets all of the fans to slow down (Inluding my CPU fan!). What am i doing wrong?

Share this post


Link to post

Hi bonienl,

 

I installed ipmitool from this thread:

  http://lime-technology.com/forum/index.php?topic=34557.15

 

And I was wondering if you would be open to giving your temp/fan plugins the option to use the output from "ipmitool sensor" instead of "sensors"?

 

Here's the output for my board:

 

root@Tower:/boot/packages# ipmitool sensor
ATX+5VSB         | 4.890      | Volts      | ok    | 4.050     | 4.260     | 4.500     | 5.490     | 5.760     | 6.030
+3VSB            | 3.460      | Volts      | ok    | 2.660     | 2.800     | 2.960     | 3.620     | 3.800     | 3.980
Vcore            | 1.780      | Volts      | ok    | 1.620     | 1.670     | 1.720     | 1.870     | 1.920     | 1.980
VCCM             | 1.500      | Volts      | ok    | 1.140     | 1.210     | 1.280     | 1.650     | 1.730     | 1.810
+1.05V           | 1.070      | Volts      | ok    | 0.850     | 0.900     | 0.940     | 1.150     | 1.210     | 1.270
CPU VCCIO_OUT    | 1.010      | Volts      | ok    | 0.850     | 0.900     | 0.940     | 1.150     | 1.210     | 1.270
BAT              | 3.240      | Volts      | ok    | 2.500     | 2.640     | 2.780     | 3.400     | 3.540     | 3.680
+3V              | 3.380      | Volts      | ok    | 2.660     | 2.800     | 2.960     | 3.620     | 3.800     | 3.980
+5V              | 5.130      | Volts      | ok    | 4.050     | 4.260     | 4.500     | 5.490     | 5.760     | 6.030
CPU_FAN1         | 2500.000   | RPM        | ok    | na        | na        | 300.000   | na        | na        | na
REAR_FAN1        | 800.000    | RPM        | ok    | na        | na        | 300.000   | na        | na        | na
FRNT_FAN1        | 1100.000   | RPM        | ok    | na        | na        | 300.000   | na        | na        | na
MB Temperature   | 47.000     | degrees C  | ok    | na        | na        | na        | 80.000    | na        | na
CPU Temperature  | 70.000     | degrees C  | ok    | na        | na        | na        | 91.000    | na        | na
+12V             | 12.000     | Volts      | ok    | 9.600     | 10.200    | 10.700    | 13.100    | 13.800    | 14.500

 

"sensors" does not provide any fan info for my board, so ipmi is the only way I can get fan information.

 

Thanks for considering it!

 

 

 

edit:  "ipmitool sdr" might be easier to parse:

 

root@Tower:/boot/custom# ipmitool sdr
ATX+5VSB         | 4.89 Volts        | ok
+3VSB            | 3.44 Volts        | ok
Vcore            | 1.79 Volts        | ok
VCCM             | 1.51 Volts        | ok
+1.05V           | 1.07 Volts        | ok
CPU VCCIO_OUT    | 1.01 Volts        | ok
BAT              | 3.26 Volts        | ok
+3V              | 3.38 Volts        | ok
+5V              | 5.13 Volts        | ok
CPU_FAN1         | 2400 RPM          | ok
REAR_FAN1        | 800 RPM           | ok
FRNT_FAN1        | 1100 RPM          | ok
MB Temperature   | 46 degrees C      | ok
CPU Temperature  | 70 degrees C      | ok
+12V             | 12 Volts          | ok

 

 

 

edit 2: This script could be the basis for parsing the data:

https://github.com/phalenor/nagios_plugins/blob/master/check_ipmi_sensors/check_ipmi_sensors.pl

Share this post


Link to post

I have a look at the info you provided, but no commitments yet ...

Share this post


Link to post

Wow, awk is pretty impressive :)  I took a look at this file on my server:

  plugins/dynamix.system.temp/include/SystemTemp.php

 

And tweaked it slightly to pull data from impitool:

 

ipmitool sdr| awk -F \| 'BEGIN{cpu="-";mb="-";fan="-"}{if(/^CPU Temp/) cpu=$2*1; else if (/^MB Temp/) mb=$2*1; else if (/FRNT_FAN1/) fan=$2*1} END {print cpu,mb,fan}'

 

The only bummer is I don't see a way to redefine FRNT_FAN to "Array Fan" in ipmitool, so I had to hard code FRNT_FAN in the awk command.  That could complicate making this into a generic IPMI solution.

 

Also, do you have your stuff in github?  I found this, but it is a bit old:

  https://github.com/bergware/dynamix/tree/master/source/dynamix.system.temp/usr/local/emhttp/plugins/dynamix

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now