Package Details: network-ups-tools 2.7.4-5

Git Clone URL: https://aur.archlinux.org/network-ups-tools.git (read-only)
Package Base: network-ups-tools
Description: NUT is a collection of programs for monitoring and administering UPS hardware
Upstream URL: http://www.networkupstools.org/
Licenses: GPL2
Submitter: Atsutane
Maintainer: The-Compiler
Last Packager: The-Compiler
Votes: 79
Popularity: 0.472221
First Submitted: 2010-09-21 19:10
Last Updated: 2017-04-28 20:10

Latest Comments

« First ‹ Previous ... 3 4 5 6 7 8

android commented on 2011-06-12 14:42

Before adding udev rules, make sure your ups is not included in the stock nut rules: /lib/udev/rules.d/52-nut-usbups.rules

Also, if it was working before, udev rule may not be the issue.

On upgrade I had permission issues due to username change. (Why change names? Matching username:groupname, nut:nut, seemed more logical)

realx commented on 2011-06-12 08:00

mikes, 2 solutions:

1. chmod a+rw /dev/bus/usb/004/001 (use correct USB device node)
2. create udev rule to grant access for ups driver. my own rule - /etc/udev/rules.d/53-nut-usbups.rules (use lsusb to get your vendor and product ids)

ACTION!="add|change", GOTO="nut-usbups_rules_end"
SUBSYSTEM=="usb_device", GOTO="nut-usbups_rules_real"
SUBSYSTEM=="usb", GOTO="nut-usbups_rules_real"
SUBSYSTEM!="usb", GOTO="nut-usbups_rules_end"
LABEL="nut-usbups_rules_real"
# Ippon Back Power pro 700
ATTR{idVendor}=="0665", ATTR{idProduct}=="5161", MODE="664", GROUP="nut"
LABEL="nut-usbups_rules_end"

android commented on 2011-06-12 01:46

Hey, Thanks for the update realx!

mikes: I noticed the nut user changed from 'nut' to 'ups'.

Since both users are trying to use the uid of 55, I think the nut.install useradd will fail.

If you manually 'userdel nut' the old nut user, then reinstall the package, that should fix it up.

('grep 55 /etc/passwd', to see if you have the existing user)

mikes commented on 2011-06-11 23:32

Updated to latest version and it stopped working. I give the command "upsdrvctl start" as root and the result is :


Network UPS Tools - UPS driver controller 2.6.1
Network UPS Tools - Megatec/Q1 protocol USB driver 0.03 (2.6.1)
libusb couldn't open USB device /dev/bus/usb/001/001: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/001/002: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/001/004: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/001/005: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/002/001: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/003/001: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/003/003: Permission denied.
libusb requires write access to USB device nodes.
libusb couldn't open USB device /dev/bus/usb/004/001: Permission denied.
libusb requires write access to USB device nodes.
No supported devices found. Please check your device availability with 'lsusb'
and make sure you have an up-to-date version of NUT. If this does not help,
try running the driver with at least 'subdriver', 'vendorid' and 'productid'
options specified. Please refer to the man page for details about these options
(man 8 blazer).

Driver failed to start (exit status=1)


Any idea?

realx commented on 2011-06-11 11:33

updated

mrechte commented on 2011-05-11 13:23

To do the trick I added /etc/rc.d/functions.d/myhooks containing:

function shutdown_ups {
if [ -f /etc/killpower ]; then
/usr/bin/upsdrvctl shutdown
fi
}

add_hook shutdown_poweroff shutdown_ups

mrechte commented on 2011-05-11 10:35

Hello. I am a bit new with Arch, but it seems to me that whenever there is a shutdown due to upsmon action, the Arch shutdown procedure should check the /etc/killpower presence and if so issue the "/usr/bin/upsdrvctl shutdown" command in order to stop the UPS.

mrechte commented on 2011-04-15 10:34

Great work. Thanks

realx commented on 2011-02-27 16:59

updated to 2.6.0-1