k1netic

Members
  • Posts

    8
  • Joined

  • Last visited

Everything posted by k1netic

  1. To test that safely, plug the server directly to the wall, leave the UPS connected by USB, and in terminal issue the command upsdrvctl shutdown See if the UPS turns off after the time you specified in the override.ups.delay.shutdown If it doesn't or it gives an error try upsdrvctl -u root shutdown If that works you need to add user = root to the global settings of ups.conf which is above the area [upsname] where your ups specific settings are. Well, thats all super helpful. I havent come across the sed command before, but if those edits work it may be possible to make the changes in the plugin.txz itself. Something to play with anyway.
  2. Have you tried override.ups.delay.shutdown = time in ups.conf ? offdelay might not be cutting it
  3. i left the entity section alone as the other packages rely on those links, i only changed this section <!-- The 'nut-package' file. --> <FILE Name="&plgPATH;/nut-2.7.4.20200318-x86_64-1.txz" Min="6.8" Run="upgradepkg --install-new"> <URL>http://dl.dropboxusercontent.com/s/uw90m96dp6altt0/nut-2.7.4.20200318-x86_64-1.txz</URL> </FILE> you can try that url, no idea how dropbox works for things like this, ill leave it on my dropbox in case it works. Otherwise substitute that url for whatever you like. Ive been playing around with this plg file to see if i can get nut 2.8.0 to work on the RC unraid update, it will download and install, but get permission denied errors on the upsd/upsc/upsmon etc files and related folders. I can change the permissions and it will sort of work but a reboot reverts the changes i make. Anyone smarter than me? I dont know why i'm punishing myself when it works now...
  4. I finally got it all working, i was getting permissions errors and the like trying to get upsdrvctl shutdown to work so.... I uploaded @IGHOR's file to my dropbox to create a direct download link i edited the nut.plg to point to the file on dropbox and installed the plugin pulling the modified .txz finally for my setup i needed user = root in global settings of ups.conf I can pull the power, the server notifies me, then after a specified time shuts down. Another specified time after that using offdelay = 180 ondelay = 0 in ups.conf and the ups shuts off too. Finally. That was painful.
  5. Hey mate, Yeah I have a clean shutdown once the UPS switches to battery mode with notifications working. The settings langid_fix = 0x409 novendor noscanlangid are needed otherwise I get initial data but nothing after that. My problem is the opposite though. The UPS wont shutdown after the server, so the server never knows to turn back on once AC power is reapplied to the UPS. My settings ups.conf [ups] driver = nutdrv_qx port = auto subdriver = hunnox productid = 0000 vendorid = 0001 product = MEC0003 protocol = hunnox langid_fix = 0x409 novendor noscanlangid default.battery.voltage.high = 13.7 default.battery.voltage.low = 11 default.battery.voltage.nominal = 12.7 runtimecal = 480,100,1200,50 idleload = 15 ondelay = 360 offdelay = 300 upsd.conf LISTEN 127.0.0.1 upsd.users [admin] password=adminpass actions=set actions=fsd instcmds=all [monuser] password=monpass upsmon master [slaveuser] password=slavepass upsmon slave upsmon.conf MONITOR [email protected] 1 monuser monpass master SHUTDOWNCMD "/sbin/poweroff" POWERDOWNFLAG /etc/nut/no_killpower NOTIFYFLAG ONBATT SYSLOG+EXEC NOTIFYFLAG ONLINE SYSLOG+EXEC NOTIFYCMD "/usr/sbin/nut-notify" What have you done to get an immediate UPS shutdown?
  6. If anyone gets to this point, GLIBC_2.34 is available in unraid 6.11.0.rc3 at time of posting This allows you to use nut 2.8.0, but strangely i can now download the file posted by @IGHOR and this was a better option than running an rc3 build. I now have my UPS digitech 650va communicating with NUT using the following [ups] driver = nutdrv_qx port = auto subdriver = hunnox productid = 0000 vendorid = 0001 product = "MEC0003" protocol = hunnox langid_fix = 0x409 novendor noscanlangid default.battery.voltage.high = 13.7 default.battery.voltage.low = 11 default.battery.voltage.nominal = 12.7 runtimecal = 480,100,1200,50 chargetime = 28800 ondelay = 180 offdelay = 60 Cheers
  7. Ok ive figured out the compiling in an Ubuntu VM and moved drivers over to a new txz like @IGHOR did, i think. but i get an error when trying upsdrvctl start root@Tower:~# upsdrvctl start Network UPS Tools - UPS driver controller 2.7.4.1 /usr/libexec/nut/nutdrv_qx: /lib64/libc.so.6: version `GLIBC_2.34' not found (required by /usr/libexec/nut/nutdrv_qx) Driver failed to start (exit status=1) any ideas ?
  8. Hey everyone, Ive been doing my head in trying to get a ups to play nice with nut, but it seems ive hit a wall and cant sort it out myself. At the moment i can detect it and connect, but get no information from it and the server is unaware when the ups switches to battery mode. I am fairly certain i need to use subdriver and/or protocol hunnox to get my device to work. it looks like @IGHOR may have had the answer in the form of a modified .txz file to help out @Jammy B but that link is no longer available. Info below to ID my unit, its a Digitech MP-5205 650VA but seems to be a clone of powercool, or maybe the other way around... Scanning for UPS... [nutdev1] driver = "nutdrv_qx" port = "auto" vendorid = "0001" productid = "0000" product = "MEC0003" bus = "002" /etc/nut/ups.conf [ups] driver = nutdrv_qx port = auto subdriver = hunnox vendorid = 0001 productid = 0000 langid_fix = 0x0409 novendor ondelay = 180 offdelay = 60 default.battery.voltage.high = 13 default.battery.voltage.low = 11 default.battery.voltage.nominal = 12.7 override.battery.packs = 6 runtimecal = 480,100,1200,50 chargetime = 28800 root@Tower:~# upsdrvctl start Network UPS Tools - UPS driver controller 2.7.4.1 Network UPS Tools - Generic Q* USB/Serial driver 0.39 (2.7.4.1) USB communication driver 0.43 Subdriver 'hunnox' not found! Driver failed to start (exit status=1) If i remove the subdriver line from ups.conf i can get this root@Tower:~# upsc [email protected] battery.charge: 1 battery.packs: 6 battery.runtime: 37 battery.voltage: 0.00 battery.voltage.high: 13 battery.voltage.low: 11 battery.voltage.nominal: 12.7 device.type: ups driver.name: nutdrv_qx driver.parameter.chargetime: 28800 driver.parameter.offdelay: 60 driver.parameter.ondelay: 180 driver.parameter.pollfreq: 30 driver.parameter.pollinterval: 2 driver.parameter.port: auto driver.parameter.productid: 0000 driver.parameter.runtimecal: 480,100,1200,50 driver.parameter.synchronous: no driver.parameter.vendorid: 0001 driver.version: 2.7.4.1 driver.version.data: Q1 0.07 driver.version.internal: 0.39 driver.version.usb: libusb-1.0.24 (API: 0x1000107) input.frequency: 0.0 input.voltage: 0.0 input.voltage.fault: 0.0 output.voltage: 0.0 ups.beeper.status: disabled ups.delay.shutdown: 60 ups.delay.start: 180 ups.load: 0 ups.productid: 0000 ups.status: OL ups.temperature: 0.0 ups.type: online ups.vendorid: 0001 I tried compiling from git in ubuntu but its a bit out of my league for the moment. Cheers