hello, i have an apc smt750i with 3 debian computers connected to it. i want one of them act as a master to notify the other two in case the battery is about to exhaust. upsmon in the slaves gets notified when the system changes from main to battery and viceversa. the problem i have is that the slaves are not notified and shutdown because of losing the connection to the master, but not for being notified to shutdown as i expect. i'm using debian packages. i've tried two scenarios, one with the three machines using debian wheezy (nut 2.6.4) and another one with tree debian jessie machines (nut 2.7.2). in both cases i get the same log error when i force a shutdown with the command 'upsmon -c fsd': Apr 21 17:45:23 jessie641 upsmon[532]: FSD set on UPS smt750i at 10.21.102.241 failed: ERR ACCESS-DENIED Apr 21 17:45:23 jessie641 upsmon[532]: Executing automatic power-fail shutdown Apr 21 17:45:23 jessie641 upsmon[532]: Auto logout and shutdown proceeding i think the problem may be the first line. do you know what can be the cause? thanks.
On Apr 21, 2015, at 12:09 PM, dmanye <dmanye at urv.cat> wrote:> Apr 21 17:45:23 jessie641 upsmon[532]: FSD set on UPS smt750i at 10.21.102.241 failed: ERR ACCESS-DENIED > Apr 21 17:45:23 jessie641 upsmon[532]: Executing automatic power-fail shutdown > Apr 21 17:45:23 jessie641 upsmon[532]: Auto logout and shutdown proceeding > > i think the problem may be the first line. do you know what can be the cause?The MONITOR line in upsmon.conf needs to correspond to one of the user definitions in upsd.users, and that user needs "upsmon master" or "upsmon slave" permission. Note that entries in upsd.users should probably be called "roles" to avoid confusion with system users in /etc/passwd, but that is how everything is named at the moment. -- Charles Lepple clepple at gmail
El 22/04/15 a les 01:55, Charles Lepple ha escrit:> On Apr 21, 2015, at 12:09 PM, dmanye <dmanye at urv.cat> wrote: > >> Apr 21 17:45:23 jessie641 upsmon[532]: FSD set on UPS smt750i at 10.21.102.241 failed: ERR ACCESS-DENIED >> Apr 21 17:45:23 jessie641 upsmon[532]: Executing automatic power-fail shutdown >> Apr 21 17:45:23 jessie641 upsmon[532]: Auto logout and shutdown proceeding >> >> i think the problem may be the first line. do you know what can be the cause? > The MONITOR line in upsmon.conf needs to correspond to one of the user definitions in upsd.users, and that user needs "upsmon master" or "upsmon slave" permission. > > Note that entries in upsd.users should probably be called "roles" to avoid confusion with system users in /etc/passwd, but that is how everything is named at the moment. >i've found the problem. i had in upsd.users in the master node: [upsmon] upsmon master password blah i didn't write a '=' in the second line because the first one doesn't have it. what works for me is: [upsmon] upsmon master password = blah thank you very much.