<br><br><div><span class="gmail_quote">2006/12/28, Peter Selinger <<a href="mailto:selinger@mathstat.dal.ca">selinger@mathstat.dal.ca</a>>:</span><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
Miwa Forever wrote:<br>><br>> Hello.<br>> So as my english is not so good, i'll try to write my story in bash commands<br>> :o)<br>><br>> miwa@zork3$ uname -mrs<br>> FreeBSD 5.5-STABLE i386<br>>
miwa@zork3$ su<br>> root@zork3# cd /usr/ports/sysutils/nat<br>> root@zork3# make && make install<br>> root@zork3# cd ../nut-usb<br>> root@zork3# make && make install<br>> root@zork3# cd /usr/local/etc/nut
<br>> root@zork3# cat ups.conf<br>> user=root<br>> [MGE-Ellipse]<br>> driver=newhidups<br>> port=auto<br>> desc="MGE Ellipse 1000"<br>><br>> root@zork3# cat upsd.conf<br>> ACL world <a href="http://0.0.0.0/0">
0.0.0.0/0</a><br>> ACL zork <a href="http://192.168.100.0/24">192.168.100.0/24</a><br>> ACL servers <a href="http://192.168.1.0/24">192.168.1.0/24</a><br>> ACL local <a href="http://127.0.0.1/32">127.0.0.1/32</a>
<br>> ACCEPT local<br>> ACCEPT servers<br>> ACCEPT zork<br>> REJECT world<br>><br>> root@zork3# cat upsd.users<br>> [admin]<br>> password = admin<br>> allowfrom = local<br>> actions = set<br>
> instcmds = all<br>><br>> [monitor]<br>> password = monitor<br>> allowfrom = local<br>> upsmon master<br>><br>> root@zork3# /usr/local/libexec/nut/upsdrvctl -u root start<br>> Network UPS Tools - UPS driver controller
2.0.4<br>> Network UPS Tools: New USB/HID UPS driver 0.28 (2.0.4)<br>><br>> Detected a UPS: MGE UPS SYSTEMS/ELLIPSE<br>> Using subdriver: MGE HID 0.9<br><br>Everything is good up to here. Your UPS, cable, and driver (newhidups)
<br>are all working.<br><br>> root@zork3# upsd -u root<br>> Network UPS Tools upsd 2.0.4<br>> /usr/local/etc/nut/upsd.conf is world readable<br>> Connected to UPS [MGE-Ellipse]: newhidups-auto<br>> Synchronizing........ giving up
<br><br>This is definitely a problem. Upsd has "given up" its attempt to<br>connect to the driver.<br><br>There should be a socket in your state directory (typically<br>/var/state/ups). This is what upsd uses to connect to the driver.
<br><br>Perhaps you should start "/usr/local/libexec/nut/upsd" and not just<br>"upsd"? Maybe they are not configured the same way.<br><br>-- Peter<br></blockquote></div><br><br>Well, I found directory /var/state/ups, but it's empty:
<br> <br>root@zork3# ls -l /var/state<br>total 2<br>drwxrwxrwx 2 nut nut 512 Dec 25 18:31 ups<br>root@zork3# ls -l /var/state/ups<br>total 0<br>root@zork3# ps ax | grep ups<br> 878 ?? Is 0:00.65 /usr/local/libexec/nut/newhidups -a MGE-Ellipse -u root
<br> 880 ?? Ss 0:01.18 /usr/local/sbin/upsd -u root<br><br>As for upsd - it's located only in /usr/local/sbin; in /usr/local/libexec/nut/ only drivers are located:<br> <br>root@zork3# ls /usr/local/libexec/nut<br>
apcsmart blazer genericups mge-utalk sms<br>bcmxcp cpsups ippon mustek solis<br>bcmxcp_usb cyberpower isbmex newhidups tripplite
<br>belkin esupssmart liebert oneac tripplite_usb<br>belkinunv etapro masterguard powercom tripplitesu<br>bestfcom everups megatec powermust upscode2
<br>bestuferrups fentonups metasys rhino upsdrvctl<br>bestups gamatronic mge-shut safenet victronups<br><br>// hm, looks like gmail's web-interface does not like tabs, it replace them into spaces :o(
<br><br>Anyway, this is output of my usbdevs:<br> root@zork3# usbdevs -v -d<br> ...<br>Controller /dev/usb1:<br>addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), VIA(0x0000), rev 1.00<br> uhub1<br> port 1 powered
<br> port 2 addr 2: low speed, power 20 mA, config 1, ELLIPSE(0xffff), MGE UPS SYSTEMS(0x0463), rev 42.41<br> ugen0<br> ...<br><br>As we can see, UPS is visible in a system and ugen, but not uhid driver is attached to it.
<br><br>Maybe the problem is in ownership of /var/state/ups directory, but i run upsd and upsdrvctl under root :o/<br>