[Nut-upsuser] NUT under NAS4Free config issue
Incze Andras
andrisgazda at gmail.com
Mon Aug 26 12:08:56 UTC 2013
Here is the result with the code inserted into script and the modified
script too
On Sat, Aug 24, 2013 at 2:26 AM, Charles Lepple <clepple at gmail.com> wrote:
> On Aug 23, 2013, at 12:49 PM, Incze Andras wrote:
>
> 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.
>
>
> Can you be more specific? You can attach text files if needed.
>
> 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
>>
>>
>>
>>
>
>
> A: Because it messes up the order in which people normally read text.
> Q: Why is top-posting such a bad thing?
> A: Top-posting.
> Q: What is the most annoying thing on usenet and in e-mail?
>
> --
> Charles Lepple
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20130826/529fecc8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: upsd.users
Type: application/octet-stream
Size: 180 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20130826/529fecc8/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nut
Type: application/octet-stream
Size: 3501 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20130826/529fecc8/attachment-0001.obj>
More information about the Nut-upsuser
mailing list