André Hänsel
2016-Jun-22 07:20 UTC
[Nut-upsuser] What is the purpose of the upsmon setting in upsd.users?
Hi list, (I think) I understand that in upsmon.conf, the MONITOR line ends with "master" or "slave". Basically if it's master it will wait for slaves to shut down and if it's slave it will signal the master to switch off the UPS after shutdown. To be able to monitor a network UPS as a slave, there must be a user in upsd.users on the master system. This user needs to have a setting named "upsmon" set. And this is where I'm confused - this setting has a parameter that must also be set to either " master" or "slave". What do I set this to? Regards, Andr?
André Hänsel
2016-Jun-22 08:06 UTC
[Nut-upsuser] What is the purpose of the upsmon setting in upsd.users?
On Mittwoch, 22. Juni 2016 09:21 Andr? wrote:> Hi list, > > (I think) I understand that in upsmon.conf, the MONITOR line ends with"master" or "slave". Basically if it's master it will wait for slaves to shut down and if it's slave it will signal the master to switch off the UPS after shutdown.> > To be able to monitor a network UPS as a slave, there must be a user inupsd.users on the master system. This user needs to have a setting named "upsmon" set.> > And this is where I'm confused - this setting has a parameter that mustalso be set to either " master" or "slave". What do I set this to?> > Regards, > Andr?Ok, I did some further testing and it seems that setting "upsmon slave" does not allow clients to connect, so when would I want to set it?
Charles Lepple
2016-Jun-23 12:14 UTC
[Nut-upsuser] What is the purpose of the upsmon setting in upsd.users?
[please use reply-all when responding - the list does not mangle reply-to headers. thanks!] On Jun 22, 2016, at 4:06 AM, Andr? H?nsel wrote:> > On Mittwoch, 22. Juni 2016 09:21 Andr? wrote: > >> Hi list, >> >> (I think) I understand that in upsmon.conf, the MONITOR line ends with >> "master" or "slave". Basically if it's master it will wait for slaves to >> shut down and if it's slave it will signal the master to switch off the UPS >> after shutdown.if it is a slave, it *allows* the master to switch off the UPS. I am not familiar with the exact sequence of events if there is no master upsmon process. https://github.com/networkupstools/nut/blob/master/clients/upsmon.c#L615>> >> To be able to monitor a network UPS as a slave, there must be a user in >> upsd.users on the master system. This user needs to have a setting named >> "upsmon" set. >> >> And this is where I'm confused - this setting has a parameter that must >> also be set to either " master" or "slave". What do I set this to? >> >> Regards, >> Andr? > > Ok, I did some further testing and it seems that setting "upsmon slave" does > not allow clients to connect, so when would I want to set it? >The "upsmon slave" setting should not prevent clients from connecting. Can you provide more details about the system? If this is a distributor-provided package, did they link against TCP-wrappers (using /etc/hosts.deny)? -- Charles Lepple clepple at gmail
Reasonably Related Threads
- What is the purpose of the upsmon setting in upsd.users?
- UPS is not turned off in slave-only configuration?
- What is the purpose of the upsmon setting in upsd.users?
- UPS is not turned off in slave-only configuration?
- Why are files synced again and again when not using -a?