<div dir="ltr"><div>There is some problem with formatting :(<br><br></div>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.<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Aug 22, 2013 at 3:32 PM, Charles Lepple <span dir="ltr"><<a href="mailto:clepple@gmail.com" target="_blank">clepple@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Aug 22, 2013, at 5:15 AM, Incze Andras wrote:<br>
<br>
> Thanks, the strange is that I could set in this way the master user.<br>
<br>
That is odd. The development version of NAS4Free seems to be regenerating the entire upsd.users file:<br>
<br>
<a href="http://sourceforge.net/p/nas4free/code/848/tree/trunk/build/ports/nut/files/nut.sh.in" target="_blank">http://sourceforge.net/p/nas4free/code/848/tree/trunk/build/ports/nut/files/nut.sh.in</a><br>
<br>
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:<br>
<br>
cat <<__EOF__ >> ${nut_upsd_users}<br>
[monslave]<br>
password = abcd<br>
upsmon slave<br>
__EOF__<br>
<br>
(Be sure to add it after the line containing "... > ${nut_upsd_users}")<br>
<br>
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.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Charles Lepple<br>
clepple@gmail<br>
<br>
<br>
<br>
</font></span></blockquote></div><br></div>