> I've had an APC BackUPS ES with a usb since 2002 but never even hooked
> it up, assuming that was for a Windows world only. I'm glad to have
> emerged from the darkness. I managed to get it monitoring working well
> with this package, though I have a few suggestions that I hope can be
> solved in the packaging installation scripts.
>
> 1) I'd suggest the sample scripts installed in their proper locations in /etc/nut/ , with the proper ownership and permissions (nut:nut, 600). These samples can have everything commented out. They don't have to be functional, as long as they don't produce security holes.
> root@foo:/# ls -alF /etc/nut/
> total 44
> drwxr-xr-x 2 nut nut 4096 2008-02-21 16:37 ./
> drwxr-xr-x 131 root root 12288 2008-02-21 16:13 ../
> -rw------- 1 nut nut 3741 2008-02-21 15:14 ups.conf
> -rw------- 1 nut nut 2012 2008-02-21 14:26 upsd.conf
> -rw------- 1 nut nut 2422 2008-02-21 15:26 upsd.users
> -rw------- 1 nut nut 11950 2008-02-21 15:45 upsmon.conf
> -rw------- 1 nut nut 3901 2008-02-21 16:37 upssched.conf
there are many things underway for the configuration handling.
check the MIR audit for my comments
> 2) Why is /usr/share/doc/nut/examples/upsmon.conf.sample.gz compressed
> but none of the others? It's bigger, but not huge.
bug
> 3) I see /etc/init.d/nut and then /etc/init.d/ups-monitor symlinks to ->
> /etc/init.d/nut ... Why the duplication?
this is due to the ups-monitor role, offered by various packages (nut,
apcupsd, ...)
One method to rule them all...
> 4) Speaking of init scripts, I did have to a couple of lines to my /etc/rc.local that would be nice to have in the init scripts (upstart, as it may be):
> /usr/bin/upsdrvctl start apc
> /usr/sbin/upsd
> /usr/sbin/upsmon
this is already done by the nut init script. But you might have missed
/etc/default/nut
in general, have a look at /usr/share/doc/README.Debian for instructions.
though I still have to make this script lsb compliant, and to check
for upstart possible enhancement
yup, Peter is (though somehow retired currently) a member of the NUT team.
Note that the doc rewritte is underway using the new web Wiki infra
(test.networkupstools.org)
And also that the Integrated Power Management will make it easy for
USB UPS owners: https://blueprints.edge.launchpad.net/ubuntu/+spec/integrated-usb-ups-support
2008/2/21, Dustin Kirkland <email address hidden>:
> Cool package!
thanks
> I've had an APC BackUPS ES with a usb since 2002 but never even hooked
> it up, assuming that was for a Windows world only. I'm glad to have
> emerged from the darkness. I managed to get it monitoring working well
> with this package, though I have a few suggestions that I hope can be
> solved in the packaging installation scripts.
>
> 1) I'd suggest the sample scripts installed in their proper locations in /etc/nut/ , with the proper ownership and permissions (nut:nut, 600). These samples can have everything commented out. They don't have to be functional, as long as they don't produce security holes.
> root@foo:/# ls -alF /etc/nut/
> total 44
> drwxr-xr-x 2 nut nut 4096 2008-02-21 16:37 ./
> drwxr-xr-x 131 root root 12288 2008-02-21 16:13 ../
> -rw------- 1 nut nut 3741 2008-02-21 15:14 ups.conf
> -rw------- 1 nut nut 2012 2008-02-21 14:26 upsd.conf
> -rw------- 1 nut nut 2422 2008-02-21 15:26 upsd.users
> -rw------- 1 nut nut 11950 2008-02-21 15:45 upsmon.conf
> -rw------- 1 nut nut 3901 2008-02-21 16:37 upssched.conf
there are many things underway for the configuration handling.
check the MIR audit for my comments
> 2) Why is /usr/share/ doc/nut/ examples/ upsmon. conf.sample. gz compressed
> but none of the others? It's bigger, but not huge.
bug
> 3) I see /etc/init.d/nut and then /etc/init. d/ups-monitor symlinks to ->
> /etc/init.d/nut ... Why the duplication?
this is due to the ups-monitor role, offered by various packages (nut,
apcupsd, ...)
One method to rule them all...
> 4) Speaking of init scripts, I did have to a couple of lines to my /etc/rc.local that would be nice to have in the init scripts (upstart, as it may be):
> /usr/bin/upsdrvctl start apc
> /usr/sbin/upsd
> /usr/sbin/upsmon
this is already done by the nut init script. But you might have missed doc/README. Debian for instructions.
/etc/default/nut
in general, have a look at /usr/share/
though I still have to make this script lsb compliant, and to check
for upstart possible enhancement
> As a reference, I found this howto to be very, very useful for my APC UPS. www.mathstat. dal.ca/ ~selinger/ ups/backups. html
> http://
yup, Peter is (though somehow retired currently) a member of the NUT team. stools. org) /blueprints. edge.launchpad. net/ubuntu/ +spec/integrate d-usb-ups- support
Note that the doc rewritte is underway using the new web Wiki infra
(test.networkup
And also that the Integrated Power Management will make it easy for
USB UPS owners:
https:/
-- Arnaud