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
André Hänsel
2016-Jun-24 02:28 UTC
[Nut-upsuser] What is the purpose of the upsmon setting in upsd.users?
On Donnerstag, 23. Juni 2016 14:14, Charles Lepple wrote:> The "upsmon slave" setting should not prevent clients from connecting. Canyou provide more details about the system? If this is a distributor-provided package, did they link against TCP-wrappers (using /etc/hosts.deny)? It's the Debian (Raspbian) jessie package. Anyway, I'm sorry, I just saw that I had it set to "master" in usbmon.conf. Only then the user has to have "upsmon master" set. However, that made me curious: Is there any situation where I would add a remote (not @localhost) UPS in my upsmon.conf with "master" instead of "slave"?
Charles Lepple
2016-Jun-24 12:29 UTC
[Nut-upsuser] What is the purpose of the upsmon setting in upsd.users?
On Jun 23, 2016, at 10:28 PM, Andr? H?nsel wrote:> > On Donnerstag, 23. Juni 2016 14:14, Charles Lepple wrote: > >> 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)? >> > It's the Debian (Raspbian) jessie package.Looks like it is: https://packages.debian.org/jessie/nut-server> > Anyway, I'm sorry, I just saw that I had it set to "master" in usbmon.conf. > Only then the user has to have "upsmon master" set. > > However, that made me curious: Is there any situation where I would add a > remote (not @localhost) UPS in my upsmon.conf with "master" instead of > "slave"?I'm not sure, but given that the master upsd waits for all of the slaves to shutdown or time out, I guess it comes down to which server is more reliable. You would also need to consider the network link between the master and the server running upsd, which was assumed to be the loopback interface in the original NUT design. -- Charles Lepple clepple at gmail
Seemingly Similar Threads
- What is the purpose of the upsmon setting in upsd.users?
- What is the purpose of the upsmon setting in upsd.users?
- What is the purpose of the upsmon setting in upsd.users?
- usbmon fails silently to start with invalid RUN_AS_USER values
- Fopen upsmon.pid - no such file or directory - Nut 2.8.0 built from source