Hi, I'm using debian sarge on my server and connected a MGE-ups ellipse via the serial port. I searched the internet for the answer, but can't find it. My config files: <upsd.users> [admin] password = pwd allowfrom = 127.0.0.1/32 actions = set instcmds = all [upsmon] password = pwd allowfrom = 127.0.0.1/32 10.0.0.224/32 upsmon master [upsslave] password = pwd allowfrom = 10.0.0.223/32 upsmon slave </upsd.users> <upsd.conf> ACL localhost 127.0.0.1/32 ACL test2 10.0.0.223/32 ACCEPT localhost test2 REJECT all </upsd.conf> <upsmon.conf> MONITOR mge@127.0.0.1 1 admin pwd master MINSUPPLIES 1 SHUTDOWNCMD "/sbin/shutdown -h +0" NOTIFYCMD /etc/nut/notifyme_cmd.sh NOTIFYFLAG ONLINE SYSLOG+EXEC NOTIFYFLAG ONBATT SYSLOG+EXEC NOTIFYFLAG LOWBATT SYSLOG+EXEC NOTIFYFLAG FSD SYSLOG+EXEC NOTIFYFLAG COMMOK SYSLOG+EXEC NOTIFYFLAG COMMBAD SYSLOG NOTIFYFLAG SHUTDOWN SYSLOG+EXEC NOTIFYFLAG REPLBATT SYSLOG+EXEC NOTIFYFLAG NOCOMM SYSLOG+EXEC RBWARNTIME 43200 NOCOMMWARNTIME 300 FINALDELAY 5 DEADTIME 15 HOSTSYNC 15 POLLFREQ 15 POLLFREQALERT 5 </upsmon.conf> I got two problems: 1. Master privileges unavailable. Jan 9 16:53:15 localhost upsd[5066]: upsd.conf: invalid directive MAXAGE=25 Jan 9 16:53:15 localhost upsd[5066]: Connected to UPS [mge]: mge-shut-ttyS1 Jan 9 16:53:19 localhost upsd[5067]: Startup successful Jan 9 16:53:19 localhost upsmon[5069]: Startup successful Jan 9 16:53:19 localhost upsd[5067]: Connection from 127.0.0.1 Jan 9 16:53:19 localhost upsd[5067]: Client admin@127.0.0.1 logged into UPS [mge] Jan 9 16:53:19 localhost upsmon[5070]: Master privileges unavailable on UPS [mge@127.0.0.1] Jan 9 16:53:19 localhost upsmon[5070]: Reason: Access denied What could be the problem? 2. I get mails that the ups is on battery and the next moment it is online. The electricity was never down. What could be the problem? -- Marc
Hi Marc, you seem to be facing several problems... 2006/1/9, Marc Cuypers <mozilla@mgvd.be>:> > Hi, > > I'm using debian sarge on my server and connected a MGE-ups ellipse via > the serial port. > > I searched the internet for the answer, but can't find it. > > My config files: > > <upsd.users> > [admin] > password = pwd > allowfrom = 127.0.0.1/32 > actions = set > instcmds = all > > [upsmon] > password = pwd > allowfrom = 127.0.0.1/32 10.0.0.224/32 > upsmon master > > [upsslave] > password = pwd > allowfrom = 10.0.0.223/32 > upsmon slave > </upsd.users> > > <upsd.conf> > ACL localhost 127.0.0.1/32 > ACL test2 10.0.0.223/32 > > ACCEPT localhost test2 > REJECT all > </upsd.conf> > > <upsmon.conf> > MONITOR mge@127.0.0.1 1 admin pwd master > MINSUPPLIES 1 > SHUTDOWNCMD "/sbin/shutdown -h +0" > NOTIFYCMD /etc/nut/notifyme_cmd.sh > NOTIFYFLAG ONLINE SYSLOG+EXEC > NOTIFYFLAG ONBATT SYSLOG+EXEC > NOTIFYFLAG LOWBATT SYSLOG+EXEC > NOTIFYFLAG FSD SYSLOG+EXEC > NOTIFYFLAG COMMOK SYSLOG+EXEC > NOTIFYFLAG COMMBAD SYSLOG > NOTIFYFLAG SHUTDOWN SYSLOG+EXEC > NOTIFYFLAG REPLBATT SYSLOG+EXEC > NOTIFYFLAG NOCOMM SYSLOG+EXEC > RBWARNTIME 43200 > NOCOMMWARNTIME 300 > FINALDELAY 5 > DEADTIME 15 > HOSTSYNC 15 > POLLFREQ 15 > POLLFREQALERT 5 > </upsmon.conf> > > I got two problems: > > 1. Master privileges unavailable. > > Jan 9 16:53:15 localhost upsd[5066]: upsd.conf: invalid directive > MAXAGE=25though I don't see it in your above uspd.conf (maybe a too short excerpt), there is a mismatch here. You should have "MAXAGE 25", ie not with the "=" char. Jan 9 16:53:15 localhost upsd[5066]: Connected to UPS [mge]: mge-shut-ttyS1> Jan 9 16:53:19 localhost upsd[5067]: Startup successful > Jan 9 16:53:19 localhost upsmon[5069]: Startup successful > Jan 9 16:53:19 localhost upsd[5067]: Connection from 127.0.0.1 > Jan 9 16:53:19 localhost upsd[5067]: Client admin@127.0.0.1 logged into > UPS [mge] > Jan 9 16:53:19 localhost upsmon[5070]: Master privileges unavailable on > UPS [mge@127.0.0.1]now this one: as the above msg states, you need the master priv. to run upsmon. As you've defined 2 users, you have also used the wrong one. You should use the "[upsmon]" one which defines a "upsmon master". simply changing MONITOR mge@127.0.0.1 1 admin pwd master to MONITOR mge@127.0.0.1 1 upsmon pwd master will do the trick. Jan 9 16:53:19 localhost upsmon[5070]: Reason: Access denied> > What could be the problem? > > 2. I get mails that the ups is on battery and the next moment it is > online. The electricity was never down. What could be the problem? >I've a Debian bug logged for that one, but I have not yet found the time to reproduce it: See: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=345362 I've made a quick test with 2.0.2 (the one shipped with Testing/Sid) on an Ellipse USBS (serial mode) and everything goes fine. So please, try to upgrade to these packages and report back if you still face this issue. Best regards, Arnaud -- Linux / Unix Expert - MGE UPS SYSTEMS - R&D Dpt Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/ Debian Developer - http://people.debian.org/~aquette/ OpenSource Developer - http://arnaud.quette.free.fr/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20060110/ea5de96d/attachment.html
[fwded to the list for info] 2006/1/13, Marc Cuypers <mozilla@mgvd.be>:> > > > Arnaud Quette wrote: > > Hi Marc, > > > > 2006/1/13, Marc Cuypers <mozilla@mgvd.be <mailto:mozilla@mgvd.be>>: > > > > > > > > Arnaud Quette wrote: > > > Hi Marc, > > > > > > please send me your upsd.{users,conf} and upsmon.conf files, > after > > > having ripped off the passwd. I think there is a mix in your conf > > files. > > > > > My config files. > > > > > > ok, there are several things: > > - upsd.conf: > > The "all" ACL is missing. Add this > > ACL all 0.0.0.0/0 <http://0.0.0.0/0> > > ACL test1 10.0.0.224/32 <http://10.0.0.224/32> > > > > - upsd.users: > > the "allowfrom" field reference ACLs, so you should have: > > [admin] > > password = pwd > > allowfrom = localhost > > actions = set > > instcmds = all > > > > [upsmon] > > password = pwd > > allowfrom = localhost test1 > > upsmon master > > > > [upsslave] > > password = pwd > > allowfrom = test2 > > upsmon slave > > > > And that should be fine that time > > > > > sadly, no. Not this year. I won't be at Solution Linux in Paris > too. > > > But that's for the good. And I hope to present some Power Mgt > > > related topic at the next year FOSDEM... > > > > > See you there. > > > > > > I hope so ;-) > It now works. Thanks for your help. > > Are all MGE-UPS'ses supported under linux? > >for sure, from the oldest (having communication) to the newest, the smallest to the biggest (not considering the 3 phases data, which is a work underway in NUT), all MGE units are supported. Our developments are GPL'ed (ie http://www.mgeups.com/products/pdt230/software/sp97/solpaclinux.htm), we fully support and help NUT, and all our users running NUT based systems. For more info, have a look at: http://opensource.mgeups.com/ Arnaud -- Linux / Unix Expert - MGE UPS SYSTEMS - R&D Dpt Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/ Debian Developer - http://people.debian.org/~aquette/ OpenSource Developer - http://arnaud.quette.free.fr/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20060113/7173e0fb/attachment.html