<br><br><div><span class="gmail_quote">2006/12/28, Peter Selinger &lt;<a href="mailto:selinger@mathstat.dal.ca">selinger@mathstat.dal.ca</a>&gt;:</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>&gt;<br>&gt; Hello.<br>&gt; So as my english is not so good, i&#39;ll try to write my story in bash commands<br>&gt; :o)<br>&gt;<br>&gt; miwa@zork3$ uname -mrs<br>&gt; FreeBSD 5.5-STABLE i386<br>&gt; 
miwa@zork3$ su<br>&gt; root@zork3# cd /usr/ports/sysutils/nat<br>&gt; root@zork3# make &amp;&amp; make install<br>&gt; root@zork3# cd ../nut-usb<br>&gt; root@zork3# make &amp;&amp; make install<br>&gt; root@zork3# cd /usr/local/etc/nut
<br>&gt; root@zork3# cat ups.conf<br>&gt; user=root<br>&gt; [MGE-Ellipse]<br>&gt; driver=newhidups<br>&gt; port=auto<br>&gt; desc=&quot;MGE Ellipse 1000&quot;<br>&gt;<br>&gt; root@zork3# cat upsd.conf<br>&gt; ACL world <a href="http://0.0.0.0/0">
0.0.0.0/0</a><br>&gt; ACL zork <a href="http://192.168.100.0/24">192.168.100.0/24</a><br>&gt; ACL servers <a href="http://192.168.1.0/24">192.168.1.0/24</a><br>&gt; ACL local <a href="http://127.0.0.1/32">127.0.0.1/32</a>
<br>&gt; ACCEPT local<br>&gt; ACCEPT servers<br>&gt; ACCEPT zork<br>&gt; REJECT world<br>&gt;<br>&gt; root@zork3# cat upsd.users<br>&gt; [admin]<br>&gt; password = admin<br>&gt; allowfrom = local<br>&gt; actions = set<br>
&gt; instcmds = all<br>&gt;<br>&gt; [monitor]<br>&gt; password = monitor<br>&gt; allowfrom = local<br>&gt; upsmon master<br>&gt;<br>&gt; root@zork3# /usr/local/libexec/nut/upsdrvctl -u root start<br>&gt; Network UPS Tools - UPS driver controller 
2.0.4<br>&gt; Network UPS Tools: New USB/HID UPS driver 0.28 (2.0.4)<br>&gt;<br>&gt; Detected a UPS: MGE UPS SYSTEMS/ELLIPSE<br>&gt; 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>&gt; root@zork3# upsd -u root<br>&gt; Network UPS Tools upsd 2.0.4<br>&gt; /usr/local/etc/nut/upsd.conf is world readable<br>&gt; Connected to UPS [MGE-Ellipse]: newhidups-auto<br>&gt; Synchronizing........ giving up
<br><br>This is definitely a problem. Upsd has &quot;given up&quot; 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 &quot;/usr/local/libexec/nut/upsd&quot; and not just<br>&quot;upsd&quot;?&nbsp;&nbsp;Maybe they are not configured the same way.<br><br>-- Peter<br></blockquote></div><br><br>Well, I&nbsp;found&nbsp;directory&nbsp;/var/state/ups,&nbsp;but&nbsp;it&#39;s&nbsp;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&#39;s&nbsp;located&nbsp;only&nbsp;in&nbsp;/usr/local/sbin;&nbsp;in&nbsp;/usr/local/libexec/nut/&nbsp;only&nbsp;drivers&nbsp;are&nbsp;located:<br> <br>root@zork3# ls /usr/local/libexec/nut<br>
apcsmart&nbsp;        &nbsp;blazer          &nbsp;&nbsp;genericups      &nbsp;&nbsp;mge-utalk       &nbsp;&nbsp;sms<br>bcmxcp          &nbsp;&nbsp;cpsups          &nbsp;&nbsp;ippon           &nbsp;&nbsp;mustek          &nbsp;&nbsp;solis<br>bcmxcp_usb      &nbsp;&nbsp;cyberpower      &nbsp;&nbsp;isbmex          &nbsp;&nbsp;newhidups       &nbsp;&nbsp;tripplite
<br>belkin          &nbsp;&nbsp;esupssmart      &nbsp;&nbsp;liebert         &nbsp;&nbsp;oneac           &nbsp;&nbsp;tripplite_usb<br>belkinunv       &nbsp;&nbsp;etapro          &nbsp;&nbsp;masterguard     &nbsp;&nbsp;powercom        &nbsp;&nbsp;tripplitesu<br>bestfcom        &nbsp;&nbsp;everups         &nbsp;&nbsp;megatec         &nbsp;&nbsp;powermust       &nbsp;&nbsp;upscode2
<br>bestuferrups    &nbsp;&nbsp;fentonups       &nbsp;&nbsp;metasys         &nbsp;&nbsp;rhino           &nbsp;&nbsp;upsdrvctl<br>bestups         &nbsp;&nbsp;gamatronic      &nbsp;&nbsp;mge-shut        &nbsp;&nbsp;safenet         &nbsp;&nbsp;victronups<br><br>// hm, looks like gmail&#39;s web-interface does not like tabs, it replace them into spaces :o(
<br><br>Anyway, this is output of my&nbsp;usbdevs:<br> root@zork3# usbdevs -v -d<br>&nbsp;...<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>&nbsp;...<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>