<br><br><div class="gmail_quote">On Tue, Jul 24, 2012 at 3:18 AM,  <span dir="ltr"><<a href="mailto:FredericBohe@eaton.com" target="_blank">FredericBohe@eaton.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">








<div bgcolor="#FFFFFF">
<p>
</p><div style="direction:ltr;font-size:10pt;font-family:Tahoma">Hello Jim,<br>
<br>
Can you send your configuration files please (hide your password).<br>
<br>
Regards,<br>
Fred<br>
<div><br>
<div style="font-family:Tahoma;font-size:13px"><span style="font-family:Tahoma">--
<br>
Eaton Opensource Team - <a href="http://opensource.eaton.com" target="_blank">http://opensource.eaton.com</a></span></div>
</div>
<div style="font-size:16px;font-family:Times New Roman">
</div></div><p></p>
<p> </p></div></blockquote><div>I hope I'm sending the right stuff. It's out of the box setup. I didn't edit anything except the port and driver, and email stuff.<br>/var/etc/ups.conf is<br><br> [ups]<br>        driver = usbhid-ups<br>
        port = auto<br><br>/var/etc/nut.conf is<br><br>MODE = standalone<br><br>/var/etc/upsd.conf is<br><br>MAXAGE 15<br>MAXCONN 1024<br>LISTEN 127.0.0.1 3493<br>LISTEN ::1 3493<br><br>/var/etc/upds.users is<br><br>[root]<br>
        password = xxxxxxx<br>        actions = set<br>        instcmds = all<br>        upsmon master<br><br>/var/etc/upsmon.conf is<br><br>MONITOR ups@localhost 1 root password master<br>MINSUPPLIES 1<br>SHUTDOWNCMD "/sbin/shutdown -p now"<br>
NOTIFYCMD /usr/local/sbin/upssched<br>POLLFREQ 5<br>POLLFREQALERT 5<br>HOSTSYNC 15<br>DEADTIME 15<br>POWERDOWNFLAG /var/etc/killpower<br>NOTIFYFLAG ONLINE SYSLOG+WALL+EXEC<br>NOTIFYFLAG ONBATT SYSLOG+WALL+EXEC<br>NOTIFYFLAG LOWBATT SYSLOG+WALL+EXEC<br>
NOTIFYFLAG FSD SYSLOG+WALL+EXEC<br>NOTIFYFLAG COMMOK SYSLOG+WALL+EXEC<br>NOTIFYFLAG COMMBAD SYSLOG+WALL+EXEC<br>NOTIFYFLAG SHUTDOWN SYSLOG+WALL+EXEC<br>NOTIFYFLAG REPLBATT SYSLOG+WALL+EXEC<br>NOTIFYFLAG NOCOMM SYSLOG+WALL+EXEC<br>
NOTIFYFLAG NOPARENT SYSLOG+WALL+EXEC<br>RBWARNTIME 43200<br>NOCOMMWARNTIME 300<br>FINALDELAY 5<br><br>/var/etc/upssched.conf is<br><br>CMDSCRIPT /usr/local/bin/upssched-cmd<br>PIPEFN /var/run/upssched.pipe<br>LOCKFN /var/run/upssched.lock<br>
<br>AT COMMOK * EXECUTE notify<br>AT COMMBAD * EXECUTE notify<br>AT REPLBATT * EXECUTE notify<br>AT NOCOMM * EXECUTE notify<br>AT FSD * EXECUTE forced-shutdown<br>AT NOPARENT * EXECUTE notify<br>AT SHUTDOWN * EXECUTE notify<br>
AT ONLINE * CANCEL-TIMER shutdown<br>AT ONLINE * EXECUTE resume<br>AT ONBATT * START-TIMER shutdown 30<br>AT ONBATT * EXECUTE shutdown-warning<br>AT LOWBATT * START-TIMER shutdown<br>AT LOWBATT * EXECUTE shutdown-warning<br>
<br>Jim A<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="#FFFFFF">
<p>
</p><hr>

<p>
</p><hr>

<p></p>
<p> </p>
<p></p><div style="direction:ltr;font-size:10pt;font-family:Tahoma"><div style="font-size:16px;font-family:Times New Roman"><hr>
<div style="direction:ltr"><font color="#000000" face="Tahoma"><b>From:</b> nut-upsuser-bounces+fredericbohe=<a href="mailto:eaton.com@lists.alioth.debian.org" target="_blank">eaton.com@lists.alioth.debian.org</a> [nut-upsuser-bounces+fredericbohe=<a href="mailto:eaton.com@lists.alioth.debian.org" target="_blank">eaton.com@lists.alioth.debian.org</a>] on behalf of Jim
 Abernathy [<a href="mailto:jfabernathy@gmail.com" target="_blank">jfabernathy@gmail.com</a>]<br>
<b>Sent:</b> Monday, July 23, 2012 9:51 PM<br>
<b>To:</b> <a href="mailto:nut-upsuser@lists.alioth.debian.org" target="_blank">nut-upsuser@lists.alioth.debian.org</a><br>
<b>Subject:</b> [Nut-upsuser] getting nut 2.6.4 working in Nas4Free<br>
</font><br>
</div><div><div class="h5">
<div></div>
<div>I'm trying to use a Nas4Free storage system.  This same hardware worked fine on Freenas 0.7.2.<br>
<br>
O/S: Nas4Free 9.0.0.1.148 which comes with nut 2.6.4.<br>
<br>
UPS is an APC Back UPS RS 800.  USB interface.  <br>
<br>
Driver : usbhid-ups <br>
Port: auto<br>
<br>
my NAS is communicating with the UPS, but in testing power failures, I'm not getting the shutdown to be handled properly.<br>
<br>
When I pull the AC plug on the UPS, the NAS recognizes that event, but doesn't send out the email and doesn't start the shutdown sequence even though the 30 sec time limit has passed. The log shows errors. I've posted them below. The restoring of power is also
 recognized by the NAS.<br>
<br>
Jul 14 06:14:41 nas4free upsmon[1813]: UPS Back-UPS-RS-800@localhost on battery<br>
<br>
<span style="color:#ff0000">Jul 14 06:14:42 nas4free upssched[2334]: read confirmation got [ERR UNKNOWN own" "30"]<br>
Jul 14 06:14:43 nas4free last message repeated 24 times<br>
Jul 14 06:14:43 nas4free upssched[2334]: Unable to connect to daemon and unable to start daemon</span><br>
<br>
Jul 14 06:17:01 nas4free upsmon[1813]: UPS Back-UPS-RS-800@localhost on line power<br>
Jul 14 06:17:01 nas4free upssched-cmd: UPS Back-UPS-RS-800@localhost - Running on line power. Shutdown cancelled.<br>
<br>
Jul 14 06:17:03 nas4free msmtp: host=<a href="http://smtp.gmail.com" target="_blank">smtp.gmail.com</a> tls=on auth=on <a href="mailto:user=xyz@gmail.com" target="_blank">
user=xyz@gmail.com</a> <a href="mailto:from=xyz@gmail.com" target="_blank">from=xyz@gmail.com</a>
<a href="mailto:recipients=xyz@gmail.com" target="_blank">recipients=xyz@gmail.com</a> mailsize=244 smtpstatus=250 smtpmsg='250 2.0.0 OK 1342261023 y66sm18956640yhi.10' exitcode=EX_OK<br>
<br>
more information in the daemon log file:<br>
<br>
Jul 14 08:35:17 nas4free upsmon[6990]: UPS ups@localhost on battery<br>
Jul 14 08:35:17 nas4free upssched[7010]: Timer daemon started<br>
Jul 14 08:35:17 nas4free upssched[7010]: Unknown command on socket: <br>
Jul 14 08:35:17 nas4free upssched[7010]: arg 0: 30START<br>
Jul 14 08:35:17 nas4free upssched[7010]: arg 1: shutdown<br>
Jul 14 08:35:17 nas4free upssched[7010]: arg 2: 30<br>
Jul 14 08:35:17 nas4free upssched[7009]: read confirmation got [ERR UNKNOWN own" "30"]<br>
<br>
Jim A<br>
<br>
</div>
</div></div></div>
</div>
<p></p><p></p><p></p></div>


</blockquote></div><br>