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

    Code
    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

    Code
    driver = usbhid-ups
    port = auto
    vendorid = 051d


    Shutdown mode: UPS goes on battery

  • Just a little follow up on this:
    I found the following bug description here:
    -------------------------------

    Zitat

    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:

    Code
    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:



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

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


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

    Code
    root@NASDuck:/etc# modprobe usbhid-ups
    FATAL: Module usbhid-ups not found.
    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?


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


    edit


    is it this?:

    Code
    root@NASDuck:/etc# ls /lib/nut/
    apcsmart      belkin        bestuferrups  clone         everups     ivtscd        metasys      newmge-shut  powerpanel    solis          upscode2
    apcsmart-old  belkinunv     bestups       clone-outlet  gamatronic  liebert       mge-shut     oneac        rhino         tripplite      usbhid-ups
    bcmxcp        bestfcom      blazer_ser    dummy-ups     genericups  liebert-esp2  mge-utalk    optiups      richcomm_usb  tripplitesu    victronups
    bcmxcp_usb    bestfortress  blazer_usb    etapro        isbmex      masterguard   microdowell  powercom     safenet       tripplite_usb
    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: http://www.netz39.de/2013/netw…it-einer-mge-ellipse-600/
    Did:

    Code
    cd /etc/udev/rules.d
    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:


    But later this occours:

    Code
    Nov 10 18:43:39 NASDuck postfix/qmgr[3983]: 45A8C228F2: removed
    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
    Nov 10 18:45:01 NASDuck /USR/SBIN/CRON[13334]: (root) CMD (/usr/sbin/omv-mkgraph >/dev/null 2>&1)
    Nov 10 18:45:01 NASDuck rrdcached[2666]: Received FLUSHALL
    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
    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
    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:


    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

    Einmal editiert, zuletzt von nasduck ()

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!