Thanks, the strange is that I could set in this way the master user. At NAS4Free forum cannot get help, I presented the problem there too, but no real help. On Thu, Aug 22, 2013 at 2:19 AM, Charles Lepple <clepple at gmail.com> wrote:> On Aug 21, 2013, at 10:41 AM, Incze Andras wrote: > > > Having the next problem, manually adding via WinSCP in the upsd.users > file the user for remote monitoring, saving the file, WinNUT client > connects after "upsd -c reload" in NAS4Free console, but if I restart the > NAS4Free system, the slave user disappears from upsd.users and remains only > the master user. > > NAS4Free is version 9.1.0.1 rev 724 and NUT is the version what is > included. > > You will probably need to check with the NAS4Free folks - if it is similar > to the latest FreeNAS, some of the NUT configuration files are generated > from configuration databases that are outside the scope of NUT. (I assume > this is to make it easier to modify permissions from the web GUI.) > > Let us know what you find out. > > -- > Charles Lepple > clepple at gmail > > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20130822/214378fe/attachment.html>
On Aug 22, 2013, at 5:15 AM, Incze Andras wrote:> Thanks, the strange is that I could set in this way the master user.That is odd. The development version of NAS4Free seems to be regenerating the entire upsd.users file: http://sourceforge.net/p/nas4free/code/848/tree/trunk/build/ports/nut/files/nut.sh.in To address your original concern (adding remote users for monitoring), I would edit the RC file, which is probably /usr/local/etc/rc.d/nut, to include something like this at the end of the nut_mkconf() function: cat <<__EOF__ >> ${nut_upsd_users} [monslave] password = abcd upsmon slave __EOF__ (Be sure to add it after the line containing "... > ${nut_upsd_users}") Of course, this will be lost when you upgrade NAS4Free, but maybe you can convince one of the developers to add this as a core feature, such that the list of slave users can be read from the XML configuration file. -- Charles Lepple clepple at gmail
Thank You very much !!! Now I see how was entered the master password in the file : "-v "concat(' password = ',//system/password)" -n \" I will test the proposed solution. Two questions - Do I need separate users for each WinNUT client or they can use the same user for monitoring&shutdown client machines ? - This is maybe a newbie question, how can be set the winnut client app to make a visual warning for pc user (not just in log file) that UPS is on battery and has N minutes before shutdown ? As I see, the shutdown starts at winnut client just when the monitored ups timing countdown is ended and shutdown is initiated (on the machine with NUT on it). On Thu, Aug 22, 2013 at 3:32 PM, Charles Lepple <clepple at gmail.com> wrote:> On Aug 22, 2013, at 5:15 AM, Incze Andras wrote: > > > Thanks, the strange is that I could set in this way the master user. > > That is odd. The development version of NAS4Free seems to be regenerating > the entire upsd.users file: > > > http://sourceforge.net/p/nas4free/code/848/tree/trunk/build/ports/nut/files/nut.sh.in > > To address your original concern (adding remote users for monitoring), I > would edit the RC file, which is probably /usr/local/etc/rc.d/nut, to > include something like this at the end of the nut_mkconf() function: > > cat <<__EOF__ >> ${nut_upsd_users} > [monslave] > password = abcd > upsmon slave > __EOF__ > > (Be sure to add it after the line containing "... > ${nut_upsd_users}") > > Of course, this will be lost when you upgrade NAS4Free, but maybe you can > convince one of the developers to add this as a core feature, such that the > list of slave users can be read from the XML configuration file. > > -- > Charles Lepple > clepple at gmail > > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20130822/ccc64bb9/attachment.html>
There is some problem with formatting :( If I paste how was written, the structure is wrong formatted, is putted somewhere right after the end of 1st part with master in the generated file. On Thu, Aug 22, 2013 at 3:32 PM, Charles Lepple <clepple at gmail.com> wrote:> On Aug 22, 2013, at 5:15 AM, Incze Andras wrote: > > > Thanks, the strange is that I could set in this way the master user. > > That is odd. The development version of NAS4Free seems to be regenerating > the entire upsd.users file: > > > http://sourceforge.net/p/nas4free/code/848/tree/trunk/build/ports/nut/files/nut.sh.in > > To address your original concern (adding remote users for monitoring), I > would edit the RC file, which is probably /usr/local/etc/rc.d/nut, to > include something like this at the end of the nut_mkconf() function: > > cat <<__EOF__ >> ${nut_upsd_users} > [monslave] > password = abcd > upsmon slave > __EOF__ > > (Be sure to add it after the line containing "... > ${nut_upsd_users}") > > Of course, this will be lost when you upgrade NAS4Free, but maybe you can > convince one of the developers to add this as a core feature, such that the > list of slave users can be read from the XML configuration file. > > -- > Charles Lepple > clepple at gmail > > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20130823/43812973/attachment.html>