Hello all, I'm having problems with what I'm told should be a straightforward issue. The message in /var/log/daemon is: <quote> Feb 13 10:37:57 lupin upsmon[31324]: Master privileges unavailable on UPS [lupin1500AVR@localhost] Feb 13 10:37:57 lupin upsmon[31324]: Reason: Access denied </quote> And of course I think I've done everything I'm supposed to do. The configuration follows, with most comments stripped out, and passwords obliterated. # Network UPS Tools: example ups.conf user nutmon [lupin1500AVR] driver = cyberpower port = /dev/tty01 # Network UPS Tools: example upsd configuration file ACL all 0.0.0.0/0 ACL localhost 127.0.0.1/32 ACCEPT localhost REJECT all # Network UPS Tools: Example upsd.users [monmaster] password = * allowfrom = localhost actions = SET instcmds = ALL # Network UPS Tools: example upsmon configuration RUN_AS_USER nutmon MONITOR lupin1500AVR@localhost 1 monmaster * master MINSUPPLIES 1 SHUTDOWNCMD "/sbin/shutdown -h +0" NOTIFYCMD /usr/local/ups/bin/notifyme POLLFREQ 5 POLLFREQALERT 5 HOSTSYNC 15 DEADTIME 15 POWERDOWNFLAG /etc/killpower NOTIFYFLAG ONLINE SYSLOG+WALL+EXEC NOTIFYFLAG ONBATT SYSLOG+WALL+EXEC NOTIFYFLAG LOWBATT SYSLOG+WALL+EXEC NOTIFYFLAG FSD SYSLOG+WALL+EXEC NOTIFYFLAG COMMOK SYSLOG+WALL+EXEC NOTIFYFLAG COMMBAD SYSLOG+WALL+EXEC NOTIFYFLAG SHUTDOWN SYSLOG+WALL+EXEC NOTIFYFLAG REPLBATT SYSLOG+WALL+EXEC NOTIFYFLAG NOCOMM SYSLOG+WALL+EXEC RBWARNTIME 43200 NOCOMMWARNTIME 300 FINALDELAY 5 What am I missing? Thanks! -- David Benfell, LCP benfell@parts-unknown.org --- Resume available at http://www.parts-unknown.org/
you simply forgot to delcare at least a user as "upsmon master", ie below 2006/2/14, David A. Benfell <benfell@parts-unknown.org>:> > ... > # Network UPS Tools: Example upsd.users > [monmaster] > password = * > allowfrom = localhost > actions = SET > instcmds = ALLupsmon master 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/20060214/abe9a3e9/attachment.html
Hello all, I'm having problems with what I'm told should be a straightforward issue. The message in /var/log/daemon is: <quote> Feb 13 10:37:57 lupin upsmon[31324]: Master privileges unavailable on UPS [lupin1500AVR@localhost] Feb 13 10:37:57 lupin upsmon[31324]: Reason: Access denied </quote> And of course I think I've done everything I'm supposed to do. The configuration follows, with most comments stripped out, and passwords obliterated. # Network UPS Tools: example ups.conf user nutmon [lupin1500AVR] driver = cyberpower port = /dev/tty01 # Network UPS Tools: example upsd configuration file ACL all 0.0.0.0/0 ACL localhost 127.0.0.1/32 ACCEPT localhost REJECT all # Network UPS Tools: Example upsd.users [monmaster] password = * allowfrom = localhost actions = SET instcmds = ALL # Network UPS Tools: example upsmon configuration RUN_AS_USER nutmon MONITOR lupin1500AVR@localhost 1 monmaster * master MINSUPPLIES 1 SHUTDOWNCMD "/sbin/shutdown -h +0" NOTIFYCMD /usr/local/ups/bin/notifyme POLLFREQ 5 POLLFREQALERT 5 HOSTSYNC 15 DEADTIME 15 POWERDOWNFLAG /etc/killpower NOTIFYFLAG ONLINE SYSLOG+WALL+EXEC NOTIFYFLAG ONBATT SYSLOG+WALL+EXEC NOTIFYFLAG LOWBATT SYSLOG+WALL+EXEC NOTIFYFLAG FSD SYSLOG+WALL+EXEC NOTIFYFLAG COMMOK SYSLOG+WALL+EXEC NOTIFYFLAG COMMBAD SYSLOG+WALL+EXEC NOTIFYFLAG SHUTDOWN SYSLOG+WALL+EXEC NOTIFYFLAG REPLBATT SYSLOG+WALL+EXEC NOTIFYFLAG NOCOMM SYSLOG+WALL+EXEC RBWARNTIME 43200 NOCOMMWARNTIME 300 FINALDELAY 5 What am I missing? Thanks! -- David Benfell, LCP benfell@parts-unknown.org --- Resume available at http://www.parts-unknown.org/
On Tue, 14 Feb 2006 17:20:42 +0100, Arnaud Quette wrote:> > upsmon master >This did it. Thank you very much. I was alarmed later in the day when I found the system had gone down without any kind of notification, but so far this appears to have been unrelated to nut -- the proximal cause was a kernel panic. -- David Benfell, LCP benfell@parts-unknown.org --- Resume available at http://www.parts-unknown.org/