<div dir="ltr"><div>Here is the result with the code inserted into script and the modified script too<br><br><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Aug 24, 2013 at 2:26 AM, 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"><div style="word-wrap:break-word"><div><div>On Aug 23, 2013, at 12:49 PM, Incze Andras wrote:</div><br><blockquote type="cite">
<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></blockquote><div class="gmail_extra"><br></div><div class="gmail_extra">Can you be more specific? You can attach text files if needed.</div><div class="gmail_extra"><br></div><blockquote type="cite"><div class="gmail_extra">
<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><font color="#888888"><br>
--<br>
Charles Lepple<br>
clepple@gmail<br>
<br>
<br>
<br>
</font></span></blockquote></div><br></div>
</blockquote></div><br><div>
<span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:medium;white-space:normal;font-family:Helvetica;word-spacing:0px"><div style="word-wrap:break-word">
<div><br></div><div><div>A: Because it messes up the order in which people normally read text.</div><div>Q: Why is top-posting such a bad thing?</div><div>A: Top-posting.</div><div>Q: What is the most annoying thing on usenet and in e-mail?</div>
</div></div></span></span><span class="HOEnZb"><font color="#888888">
</font></span></div><span class="HOEnZb"><font color="#888888">

<br><div><div>-- </div><div>Charles Lepple</div></div><div><br></div></font></span></div></blockquote></div><br></div>