NUT-Plugin (Network UPS Tools) System Logs Spam

    • OMV 1.0

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • NUT-Plugin (Network UPS Tools) System Logs Spam

      Hallo,

      ich habe OMV 1.0.21(Kralizec) frisch installiert (kein Upgrade von 0.5.x), und habe jetzt folgendes Problem.
      Wenn ich das NUT-Plugin aktiviere, bekomme ich im System Log fast jede 30 Sekunden volgenden Eintrag

      Source Code

      1. kernel: [32381.909679] usb 4-1: usbfs: USBDEVFS_CONTROL failed cmd usbhid-ups rqt 161 rq 1 len 2 ret -75

      beim OMV 0.5.x mit Backports Kernel 3.0.x gab es keine Probleme.

      Meine USV-Anlage ist die Back-UPS CS 350 von APC.

      NUT Konfiguration

      Source Code

      1. driver = usbhid-ups
      2. port = auto
      3. vendorid = 051d

      Shutdown mode: UPS goes on battery
    • Just a little follow up on this:
      I found the following bug description here:
      -------------------------------
      USBHID-UPS: Known Issues And Bugs
      Repetitive timeout and staleness
      Some models tends to be unresponsive with the default polling frequency. The result is that your system log will have lots of messages like:
      usb 2-1: usbfs: USBDEVFS_CONTROL failed cmd usbhid-ups rqt 128 rq 6 len 256 ret -110
      In this case, simply modify the general parameter "pollinterval" to a higher value (like 10 for 10 seconds). This should solve the issue.

      ------------------------------------

      This seemed to be exactly our issue, so I added:

      Source Code

      1. pollinterval=60

      in the driver configuration text field in the services:ups tab.
      Obviously this command was recognized, but did not solve the issue, as the error messages keep coming, but now in a one minute interval.

      So the reason for this seems somwhat deeper, probably beyond my capabilities. Anyway, I consider it a minor issue only.
      regards, Tom
    • Hi,

      this day my USV was arived and i installed it an the NUT Plugin. But has the same issue. With dmesg i see the USV:

      Source Code

      1. [ 1.979227] usb 1-3: new low-speed USB device number 4 using xhci_hcd
      2. [ 2.213202] usb 1-3: New USB device found, idVendor=051d, idProduct=0002
      3. [ 2.213212] usb 1-3: New USB device strings: Mfr=3, Product=1, SerialNumber=2
      4. [ 2.213218] usb 1-3: Product: Back-UPS CS 350 FW:807.q10 .I USB FW:q10
      5. [ 2.213223] usb 1-3: Manufacturer: American Power Conversion
      6. [ 2.213228] usb 1-3: SerialNumber: 4B1415P39896
      7. [ 2.213707] usb 1-3: ep 0x81 - rounding interval to 512 microframes, ep desc says 800 microframes
      8. [ 2.328027] usb 1-4: new low-speed USB device number 5 using xhci_hcd
      9. [ 2.422926] usbcore: registered new interface driver usbhid
      10. [ 2.422931] usbhid: USB HID core driver
      11. [ 2.522015] usb 1-4: New USB device found, idVendor=046a, idProduct=0011
      12. [ 2.522023] usb 1-4: New USB device strings: Mfr=0, Product=0, SerialNumber=0
      13. [ 2.522423] usb 1-4: ep 0x81 - rounding interval to 64 microframes, ep desc says 80 microframes
      14. [ 2.533477] input: HID 046a:0011 as /devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.0/0003:046A:0011.0002/input/input2
      15. [ 2.533945] hid-generic 0003:046A:0011.0002: input,hidraw0: USB HID v1.11 Keyboard [HID 046a:0011] on usb-0000:00:14.0-4/input0
      16. [ 2.615143] hid-generic 0003:051D:0002.0001: hiddev0,hidraw1: USB HID v1.10 Device [American Power Conversion Back-UPS CS 350 FW:807.q10 .I USB FW:q10 ] on usb-0000:00:14.0-3/input0
      Display All


      but if i do a lsmod the is no line with "usbhid-ups":

      Source Code

      1. root@NASDuck:/etc# lsmod|grep usb
      2. usbhid 48607 0
      3. usbcore 199395 3 usbhid,xhci_hcd
      4. usb_common 12440 1 usbcore
      5. hid 102250 3 i2c_hid,hid_generic,usbhid


      don´t see what is wrong. Perhaps the module ist nut in the backport kernel?

      Source Code

      1. root@NASDuck:/etc# modprobe usbhid-ups
      2. FATAL: Module usbhid-ups not found.
      3. root@NASDuck:/etc#

      omv 1.14 kralizec | 64 bit | 3.16 backport kernel | omvextrasorg 1.13
      Plugins: Virtualbox, VDR (e-toby 2.2, jessie, manual), OwnCloud, Backup, MiniDLNA, Openvpnas, MySQL, USB Datasave, USV
      HW:Asrock q1900-ITX / 8GB RAM / 60 GB SSD / 2 TB Seagate Green + 2 TB WD Red = RAID 1 / APC Back-UPS CS 350 / Digibit R1 SAT>IP
    • hm. But nut-server ist installed. Waht did i wrong?

      Source Code

      1. root@NASDuck:/etc# apt-get install nut-server
      2. Paketlisten werden gelesen... Fertig
      3. Abhängigkeitsbaum wird aufgebaut.
      4. Statusinformationen werden eingelesen.... Fertig
      5. nut-server ist schon die neueste Version.
      6. 0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
      7. root@NASDuck:/etc#


      edit

      is it this?:

      Source Code

      1. root@NASDuck:/etc# ls /lib/nut/
      2. apcsmart belkin bestuferrups clone everups ivtscd metasys newmge-shut powerpanel solis upscode2
      3. apcsmart-old belkinunv bestups clone-outlet gamatronic liebert mge-shut oneac rhino tripplite usbhid-ups
      4. bcmxcp bestfcom blazer_ser dummy-ups genericups liebert-esp2 mge-utalk optiups richcomm_usb tripplitesu victronups
      5. bcmxcp_usb bestfortress blazer_usb etapro isbmex masterguard microdowell powercom safenet tripplite_usb
      6. root@NASDuck:/etc#

      omv 1.14 kralizec | 64 bit | 3.16 backport kernel | omvextrasorg 1.13
      Plugins: Virtualbox, VDR (e-toby 2.2, jessie, manual), OwnCloud, Backup, MiniDLNA, Openvpnas, MySQL, USB Datasave, USV
      HW:Asrock q1900-ITX / 8GB RAM / 60 GB SSD / 2 TB Seagate Green + 2 TB WD Red = RAID 1 / APC Back-UPS CS 350 / Digibit R1 SAT>IP
    • o.k. it works. Found this: netz39.de/2013/network-ups-too…it-einer-mge-ellipse-600/
      Did:

      Source Code

      1. cd /etc/udev/rules.d
      2. ln -s /lib/udev/rules.d/52-nut-usbups.rules


      repluged the UPS and deaktivated/activated the Plugin in OMV and it seems to work:

      Source Code

      1. Nov 10 18:43:07 NASDuck upsmon[12836]: Signal 15: exiting
      2. Nov 10 18:43:07 NASDuck upsd[12827]: User monmaster@127.0.0.1 logged out from UPS [ups]
      3. Nov 10 18:43:07 NASDuck upsd[12827]: Connected to UPS [ups]: usbhid-ups-ups
      4. Nov 10 18:43:07 NASDuck upsmon[12835]: upsmon parent: read
      5. Nov 10 18:43:09 NASDuck upsmon[12937]: Startup successful
      6. Nov 10 18:43:09 NASDuck upsd[12827]: User monmaster@127.0.0.1 logged into UPS [ups]
      7. Nov 10 18:43:09 NASDuck monit[8739]: 'nut-client' monitor on user request
      8. Nov 10 18:43:09 NASDuck monit[8739]: monit daemon at 8739 awakened
      9. Nov 10 18:43:09 NASDuck monit[8739]: Awakened by User defined signal 1
      10. Nov 10 18:43:09 NASDuck monit[8739]: 'nut-server' monitor on user request
      11. Nov 10 18:43:09 NASDuck monit[8739]: monit daemon at 8739 awakened
      12. Nov 10 18:43:09 NASDuck monit[8739]: 'nut-server' monitor action done
      13. Nov 10 18:43:09 NASDuck monit[8739]: 'nut-client' monitor action done
      14. Nov 10 18:43:17 NASDuck collectd[12338]: nut plugin: Connection to (localhost, 3493) established.
      15. Nov 10 18:43:39 NASDuck monit[8739]: Awakened by User defined signal 1
      16. Nov 10 18:43:39 NASDuck monit[8739]: 'nut-server' process is running with pid 12827
      Display All

      But later this occours:

      Source Code

      1. Nov 10 18:43:39 NASDuck postfix/qmgr[3983]: 45A8C228F2: removed
      2. Nov 10 18:44:07 NASDuck kernel: [ 8122.874085] usb 1-3: usbfs: USBDEVFS_CONTROL failed cmd usbhid-ups rqt 161 rq 1 len 2 ret -75
      3. Nov 10 18:45:01 NASDuck /USR/SBIN/CRON[13334]: (root) CMD (/usr/sbin/omv-mkgraph >/dev/null 2>&1)
      4. Nov 10 18:45:01 NASDuck rrdcached[2666]: Received FLUSHALL
      5. Nov 10 18:45:07 NASDuck kernel: [ 8183.025836] usb 1-3: usbfs: USBDEVFS_CONTROL failed cmd usbhid-ups rqt 161 rq 1 len 2 ret -75
      6. Nov 10 18:46:07 NASDuck kernel: [ 8243.111716] usb 1-3: usbfs: USBDEVFS_CONTROL failed cmd usbhid-ups rqt 161 rq 1 len 2 ret -75
      7. Nov 10 18:47:07 NASDuck kernel: [ 8303.260631] usb 1-3: usbfs: USBDEVFS_CONTROL failed cmd usbhid-ups rqt 161 rq 1 len 2 ret -75
      omv 1.14 kralizec | 64 bit | 3.16 backport kernel | omvextrasorg 1.13
      Plugins: Virtualbox, VDR (e-toby 2.2, jessie, manual), OwnCloud, Backup, MiniDLNA, Openvpnas, MySQL, USB Datasave, USV
      HW:Asrock q1900-ITX / 8GB RAM / 60 GB SSD / 2 TB Seagate Green + 2 TB WD Red = RAID 1 / APC Back-UPS CS 350 / Digibit R1 SAT>IP
    • root@NASDuck:/# upsc ups@127.0.0.1 shows this. Seems to work:

      Display Spoiler

      battery.charge: 100
      battery.charge.low: 10
      battery.charge.warning: 50
      battery.date: 2014/04/11
      battery.mfr.date: 2014/04/11
      battery.runtime: 3427
      battery.runtime.low: 120
      battery.temperature: 29.2
      battery.type: PbAc
      battery.voltage: 13.6
      battery.voltage.nominal: 12.0
      device.mfr: American Power Conversion
      device.model: Back-UPS CS 350
      device.serial: 4B1415P39896
      device.type: ups
      driver.name: usbhid-ups
      driver.parameter.pollfreq: 30
      driver.parameter.pollinterval: 60
      driver.parameter.port: auto
      driver.parameter.vendorid: 051d
      driver.version: 2.6.4
      driver.version.data: APC HID 0.95
      driver.version.internal: 0.37
      input.sensitivity: medium
      input.transfer.high: 266
      input.transfer.low: 180
      input.voltage: 232.0
      output.frequency: 50.0
      output.voltage: 230.0
      output.voltage.nominal: 230.0
      ups.beeper.status: enabled
      ups.delay.shutdown: 20
      ups.delay.start: 30
      ups.firmware: 807.q10 .I
      ups.firmware.aux: q10
      ups.load: 12.0
      ups.mfr: American Power Conversion
      ups.mfr.date: 2014/04/11
      ups.model: Back-UPS CS 350
      ups.productid: 0002
      ups.realpower.nominal: 210
      ups.serial: 4B1415P39896
      ups.status: OL
      ups.test.result: No test initiated
      ups.timer.reboot: 0
      ups.timer.shutdown: -1
      ups.timer.start: 0
      ups.vendorid: 051d
      root@NASDuck:/etc/udev/rules.d#

      omv 1.14 kralizec | 64 bit | 3.16 backport kernel | omvextrasorg 1.13
      Plugins: Virtualbox, VDR (e-toby 2.2, jessie, manual), OwnCloud, Backup, MiniDLNA, Openvpnas, MySQL, USB Datasave, USV
      HW:Asrock q1900-ITX / 8GB RAM / 60 GB SSD / 2 TB Seagate Green + 2 TB WD Red = RAID 1 / APC Back-UPS CS 350 / Digibit R1 SAT>IP

      The post was edited 1 time, last by nasduck ().