Hi Marc,<br><br>you seem to be facing several problems...<br><br><div><span class="gmail_quote">2006/1/9, Marc Cuypers &lt;<a href="mailto:mozilla@mgvd.be">mozilla@mgvd.be</a>&gt;:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br><br>I'm using debian sarge on my server and connected a MGE-ups ellipse via<br>the serial port.<br><br>I searched the internet for the answer, but can't find it.<br><br>My config files:<br><br>&lt;upsd.users&gt;<br>
[admin]<br>&nbsp;&nbsp; password = pwd<br>&nbsp;&nbsp; allowfrom = <a href="http://127.0.0.1/32">127.0.0.1/32</a><br>&nbsp;&nbsp; actions = set<br>&nbsp;&nbsp; instcmds = all<br><br>[upsmon]<br>&nbsp;&nbsp; password = pwd<br>&nbsp;&nbsp; allowfrom = <a href="http://127.0.0.1/32">127.0.0.1/32
</a> <a href="http://10.0.0.224/32">10.0.0.224/32</a><br>&nbsp;&nbsp; upsmon master<br><br>[upsslave]<br>&nbsp;&nbsp; password = pwd<br>&nbsp;&nbsp; allowfrom = <a href="http://10.0.0.223/32">10.0.0.223/32</a><br>&nbsp;&nbsp; upsmon slave<br>&lt;/upsd.users&gt;
<br><br>&lt;upsd.conf&gt;<br>ACL localhost <a href="http://127.0.0.1/32">127.0.0.1/32</a><br>ACL test2 <a href="http://10.0.0.223/32">10.0.0.223/32</a><br><br>ACCEPT localhost test2<br>REJECT all<br>&lt;/upsd.conf&gt;<br>
<br>&lt;upsmon.conf&gt;<br>MONITOR <a href="mailto:mge@127.0.0.1">mge@127.0.0.1</a> 1 admin pwd master<br>MINSUPPLIES 1<br>SHUTDOWNCMD &quot;/sbin/shutdown -h +0&quot;<br>NOTIFYCMD /etc/nut/notifyme_cmd.sh<br>NOTIFYFLAG ONLINE SYSLOG+EXEC
<br>NOTIFYFLAG ONBATT SYSLOG+EXEC<br>NOTIFYFLAG LOWBATT SYSLOG+EXEC<br>NOTIFYFLAG FSD SYSLOG+EXEC<br>NOTIFYFLAG COMMOK SYSLOG+EXEC<br>NOTIFYFLAG COMMBAD SYSLOG<br>NOTIFYFLAG SHUTDOWN SYSLOG+EXEC<br>NOTIFYFLAG REPLBATT SYSLOG+EXEC
<br>NOTIFYFLAG NOCOMM SYSLOG+EXEC<br>RBWARNTIME 43200<br>NOCOMMWARNTIME 300<br>FINALDELAY 5<br>DEADTIME 15<br>HOSTSYNC 15<br>POLLFREQ 15<br>POLLFREQALERT 5<br>&lt;/upsmon.conf&gt;<br><br>I got two problems:<br><br>1. Master privileges unavailable.
<br><br>Jan&nbsp;&nbsp;9 16:53:15 localhost upsd[5066]: upsd.conf: invalid directive MAXAGE=25</blockquote><div><br>though I don't see it in your above uspd.conf (maybe a too short excerpt), there is a mismatch here.<br>You should have &quot;MAXAGE 25&quot;, ie not with the &quot;=&quot; char.
<br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Jan&nbsp;&nbsp;9 16:53:15 localhost upsd[5066]: Connected to UPS [mge]: mge-shut-ttyS1<br>
Jan&nbsp;&nbsp;9 16:53:19 localhost upsd[5067]: Startup successful<br>Jan&nbsp;&nbsp;9 16:53:19 localhost upsmon[5069]: Startup successful<br>Jan&nbsp;&nbsp;9 16:53:19 localhost upsd[5067]: Connection from <a href="http://127.0.0.1">127.0.0.1</a><br>Jan&nbsp;&nbsp;9 16:53:19 localhost upsd[5067]: Client 
<a href="mailto:admin@127.0.0.1">admin@127.0.0.1</a> logged into<br>UPS [mge]<br>Jan&nbsp;&nbsp;9 16:53:19 localhost upsmon[5070]: Master privileges unavailable on<br>UPS [<a href="mailto:mge@127.0.0.1">mge@127.0.0.1</a>]</blockquote>
<div><br>now this one:<br>as the above msg states, you need the master priv. to run upsmon.<br>As you've defined 2 users, you have also used the wrong one.<br>You should use the &quot;[upsmon]&quot; one which defines a &quot;upsmon master&quot;.
<br>simply changing <br>&nbsp;MONITOR <a href="mailto:mge@127.0.0.1">mge@127.0.0.1</a> 1 admin pwd master<br>to<br>MONITOR <a href="mailto:mge@127.0.0.1">mge@127.0.0.1</a> 1 upsmon pwd master<br></div><br>will do the trick.<br>
<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Jan&nbsp;&nbsp;9 16:53:19 localhost upsmon[5070]: Reason: Access denied<br><br>What could be the problem?
<br><br>2. I get mails that the ups is on battery and the next moment it is<br>online.&nbsp;&nbsp;The electricity was never down.&nbsp;&nbsp;What could be the problem?<br></blockquote></div><br>I've a Debian bug logged for that one, but I have not yet found the time to reproduce it:
<br>See: <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=345362">http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=345362</a><br><br>I've made a quick test with 2.0.2 (the one shipped with Testing/Sid) on an&nbsp; Ellipse USBS (serial mode) and everything goes fine.
<br>So please, try to upgrade to these packages and report back if you still face this issue.<br><br>Best regards,<br>Arnaud<br>-- <br>Linux / Unix Expert - MGE UPS SYSTEMS - R&amp;D Dpt<br>Network UPS Tools (NUT) Project Leader - 
<a href="http://www.networkupstools.org/">http://www.networkupstools.org/</a><br>Debian Developer - <a href="http://people.debian.org/~aquette/">http://people.debian.org/~aquette/</a><br>OpenSource Developer - <a href="http://arnaud.quette.free.fr/">
http://arnaud.quette.free.fr/</a>