[nut-Patches][313846] nut apcupsd client driver

nut-patches at alioth.debian.org nut-patches at alioth.debian.org
Mon Oct 1 12:08:08 UTC 2012


nut-Patches item #313846, was changed at 2012-10-01 08:08 by Charles Lepple
You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=411544&aid=313846&group_id=30602

Status: Open
Priority: 3
Submitted By: Andreas Steinmetz (anstein-guest)
Assigned to: Nobody (None)
Summary: nut apcupsd client driver 
Category: None
Group: None
Resolution: None


Initial Comment:
I do have to access an APC UPS via PowerChute Client (pcnet) mode, which is supported by apcupsd and all of my regular systems are running apcupsd.

Furthermore I'm running QNAP NAS systems that require me to serve UPS data via nut. Thus I do need an apcupsd client driver for nut, which I do attach.

The attached patch is against nut-2.6.3 which is the current Gentoo version of nut. This, however, shouldn't be a problem.

----------------------------------------------------------------------

>Comment By: Charles Lepple (clepple-guest)
Date: 2012-10-01 08:08

Message:
Arnaud: OS X doesn't have a "detach driver" request like Linux, and apcupsd has all of the "driverless KEXT" support to make it work out of the box. We're getting there, though.

Andreas: Not sure if you're monitoring "ups.load" in NUT, but there was an extra multiplier on that variable. I also added a few more variables to the Git branch: https://github.com/clepple/nut/commits/git-apcupsd/

----------------------------------------------------------------------

Comment By: Arnaud Quette (aquette)
Date: 2012-10-01 04:35

Message:
Interesting!
And both on the driver itself, and Charles' comment:
"...apcupsd still does a better job than NUT for accessing APC hardware on OS X."

@Charles: what is missing from nut to be on par with apcupsd?
Is it just related to OS X or is it in general?

----------------------------------------------------------------------

Comment By: Charles Lepple (clepple-guest)
Date: 2012-09-27 22:23

Message:
Thanks for your patch! I would like to try this on one of my systems, since apcupsd still does a better job than NUT for accessing APC hardware on OS X.

I applied it to my Git mirror of the SVN trunk, and there were no conflicts (not surprisingly, given how recent 2.6.3 is). Here are a few minor additions to the comments and documentation:

https://github.com/clepple/nut/commit/b37b7cba2abc3c5d4d1747a442f3ca85535647c2

Since the core of NUT is GPLv2, and drivers link against that, I added that license boilerplate to the beginning of the source. Also, I'll poke around and see if we have some canned IPv6-compatible TCP code to add - otherwise, some of that can be added to common/

----------------------------------------------------------------------

You can respond by visiting: 
https://alioth.debian.org/tracker/?func=detail&atid=411544&aid=313846&group_id=30602



More information about the NUT-tracker mailing list