APC ups not connecting

  • from dmesg I get the following info for my UPS connection:


    generic-usb 0003:051D:0002.0005: hiddev0,hidraw0: USB HID v1.00 Device [American Power Conversion Back-UPS ES/CyberFort 500 FW: 4.1.I USB FW: d1] on usb-0000:00:04.0-4/input0


    and I place the following settings in my driver configuration
    [ups]
    driver = apcsmart
    port = /dev/ttyS0
    cable = 940-0095B
    sdtype = 3


    though I get a communication error.


    can someone help me please.


    thank you.

    • Offizieller Beitrag

    It looks like you are connecting using usb? If so, try this for your config:


    driver = usbhid-ups
    port = auto


    Don't put the brackets and name in the Driver configuration directives section.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    You may have to wait a few minutes or click Refresh to update the charts. The charts are updated every five minutes.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.6 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • a similar situation.
    configuration of the driver:
    driver = usbhid-ups
    port = auto


    in the "Variables" :
    battery.charge: 96
    battery.charge.low: 10
    battery.charge.warning: 30
    battery.date: 2010/01/01
    battery.runtime: 1984
    battery.type: PbAc
    device.mfr: powercome Co.,LTD
    device.model: UPS IMP--625AP FW3.A2
    device.serial: 3A2-0000-0001
    device.type: ups
    driver.name: usbhid-ups
    driver.parameter.pollfreq: 30
    driver.parameter.pollinterval: 2
    driver.parameter.port: auto
    driver.version: 2.4.3
    driver.version.data: Powercome HID 0.2
    driver.version.internal: 0.34
    input.frequency: 50.0
    input.voltage: 214.0
    input.voltage.nominal: 220
    output.frequency: 50.0
    output.voltage: 214.0
    output.voltage.nominal: 220
    ups.beeper.status: enabled
    ups.date: 2010/01/01
    ups.load: 1
    ups.mfr: powercome Co.,LTD
    ups.model: UPS IMP--625AP FW3.A2
    ups.productid: 00a2
    ups.serial: 3A2-0000-0001
    ups.status: OL CHRG
    ups.test.result: Done and passed
    ups.vendorid: 0d9f


    graphics "Charge" and "Load" displayed correctly.
    graphics "Temperature" and "Voltage" in the smileys :(


    Reboot the system and waiting not led to a positive result.
    How to fix this?

  • Rather than start a new topic on what seems to be a similar problem, I thought I'd jump on this thread, hope that's okay.


    I have installed the UPS plugin this morning to monitor an APC UPS I have connected with USB.


    The UPS is connected to OMV and in Services > UPS > Variables, I get



    None of the graphs are working and I've noticed in the System Logs every 5 minutes I get this error:


    /USR/SBIN/CRON[pid1]: (root) CMD (/usr/sbin/omv-mkgraph > /dev/null 2>&1)
    /USR/SBIN/CRON[pid2]: (CRON) error (grandchild #pid1 failed with exist status 1)


    I can't see anything glaring in omv-mkgraph, it appears to refer correctly to the .rrd's I have, excluding 'temperature-battery.rrd'.


    Code
    root@OMV:/var/lib/collectd/rrd/localhost/nut-ups# ls -al
    total 748
    drwxr-xr-x  2 root root   4096 Jul 19 10:57 .
    drwxr-xr-x 11 root root   4096 Jul 19 10:57 ..
    -rw-r--r--  1 root root 148656 Jul 19 14:53 percent-charge.rrd
    -rw-r--r--  1 root root 148656 Jul 19 14:53 percent-load.rrd
    -rw-r--r--  1 root root 148656 Jul 19 14:54 timeleft-battery.rrd
    -rw-r--r--  1 root root 148656 Jul 19 14:53 voltage-battery.rrd
    -rw-r--r--  1 root root 148656 Jul 19 14:53 voltage-input.rrd


    I'm not sure what else to check here and any assistance would be great.

  • Zitat von "ryecoaaron"

    It looks like you are connecting using usb? If so, try this for your config:


    driver = usbhid-ups
    port = auto


    Don't put the brackets and name in the Driver configuration directives section.


    I came with the same problem as the OP and this fixed me up as well. Thanks a heap :)

  • Good day to all.
    Defeated his problem itself.
    I edited the file "nut" according to their parameters in /usr/share/openmediavault/scripts/collectd.d.
    The problem is that if at least one condition in the configuration does not match, then not display the graph.

Jetzt mitmachen!

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