<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Aug 23, 2013, at 12:49 PM, Incze Andras wrote:</div><br class="Apple-interchange-newline"><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 class="HOEnZb"><font color="#888888"><br>
--<br>
Charles Lepple<br>
clepple@gmail<br>
<br>
<br>
<br>
</font></span></blockquote></div><br></div>
</blockquote></div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><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>
</div>

<br><div><div>-- </div><div>Charles Lepple</div></div><div><br></div></body></html>