Colleagues, please tell me how I can solve the problem with the USB interface of my UPS.
Some time ago, the daemons of the NUT package decided to run not from the user 'uucp', but from the user 'nut'. I believe that a decision was made to do more correctly and safely.
I installed NUT from /usr/ports and did not do any settings that went beyond the general scope, I just configured the package for my UPS and created accounts for remote machines.
Further, I discovered that after server boot or reboot the corresponding daemon could not connect to the UPS and begin to interact with it. The UPS interface appears in the /dev/usb directory with the owner root and group 'operator'.
However, if you restart the devd daemon and reconnect the UPS cable, then it appears with the group 'nut'. (In exactly that order.)
After this, the NUT package also needs to be restarted.
The nut-scanner will determine the UPS as follows:
There is a corresponding entry about him in the /usr/local/etc/devd/nut-usb.conf file:
I think everything should be fine. But that's not true.
What am I doing wrong?
Ogogon.
Some time ago, the daemons of the NUT package decided to run not from the user 'uucp', but from the user 'nut'. I believe that a decision was made to do more correctly and safely.
I installed NUT from /usr/ports and did not do any settings that went beyond the general scope, I just configured the package for my UPS and created accounts for remote machines.
Further, I discovered that after server boot or reboot the corresponding daemon could not connect to the UPS and begin to interact with it. The UPS interface appears in the /dev/usb directory with the owner root and group 'operator'.
However, if you restart the devd daemon and reconnect the UPS cable, then it appears with the group 'nut'. (In exactly that order.)
After this, the NUT package also needs to be restarted.
The nut-scanner will determine the UPS as follows:
Code:
root@server:/home/ogogon # nut-scanner
Scanning USB bus.
No start IP, skipping SNMP
Scanning XML/HTTP bus.
No start IP, skipping NUT bus (old connect method)
Scanning NUT bus (avahi method).
Failed to create Avahi client: Daemon not running
[nutdev1]
driver = "usbhid-ups"
port = "auto"
vendorid = "0D9F"
productid = "00A3"
product = "SRT-2000 SRTV1.8"
serial = "4A3-0000-0001"
vendor = "POWERCOM Co.,LTD"
bus = "000"
device = "002"
busport = "002"
###NOTMATCHED-YET###bcdDevice = "0001"
There is a corresponding entry about him in the /usr/local/etc/devd/nut-usb.conf file:
Code:
# PowerCOM SKP - Smart KING Pro (all Smart series) - usbhid-ups
notify 100 {
match "system" "USB";
match "subsystem" "DEVICE";
match "type" "ATTACH";
match "vendor" "0x0d9f";
match "product" "0x00a3";
action "chgrp nut /dev/$cdev; chmod g+rw /dev/$cdev";
};
I think everything should be fine. But that's not true.
What am I doing wrong?
Ogogon.