[Nut-upsuser] snmp-ups sends status "OL OB" on HP R3000 UPS with AF465A management card [UPDATE]
Philippe Andersson
pan at iba-group.com
Mon Apr 7 16:10:15 UTC 2014
Arnaud, Ivan,
Please find attached a set of patches that represent the changes I made
to fix the issue on NUT ver. 2.6.5.
At least, the UPS now properly reports "OL", "OB DISCHRG" and "OL CHRG"
when appropriate. Of course, it still won't report "Low Batt", as there
doesn't seem to be an OID for that any longer. I'll talk to HP about
that, as I have a support ticket open with them as well.
As you will see in my patch files, I've created a new subdriver called
"cpqpower76" in order for the code to remain backward compatible with
older versions of the MIB.
I'll post this to github as well.
HTH
Cheers. Bye.
Ph. A.
On 07/04/14 13:45, Philippe Andersson wrote:
> Hello Arnaud,
>
> On 05/04/14 22:01, Arnaud Quette wrote:
>> Philippe, Ivan,
>>
>> please see https://github.com/networkupstools/nut/issues/118
>> and send back your data.
> I've pasted the requested files in github, but the auto-formatting may
> have damaged them, so here they are.
>
> Also, when I ran gen-snmp-subdriver.sh, it gave me the following message:
>
> -----------------------<cut>-------------------------
> snmp_build: unknown failuresnmpget: Error building ASN.1 representation
> (Can't build OID for variable)
> -----------------------<cut>-------------------------
>
> Not sure whether this invalidates the resulting files.
>
> Ph. A.
>
--
*Philippe Andersson*
Unix System Administrator
IBA Particle Therapy |
Tel: +32-10-475.983
Fax: +32-10-487.707
eMail: pan at iba-group.com
<http://www.iba-worldwide.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: compaq-mib.c.diff
Type: text/x-patch
Size: 12503 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20140407/1fc872f8/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: compaq-mib.h.diff
Type: text/x-patch
Size: 240 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20140407/1fc872f8/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: snmp-ups.c.diff
Type: text/x-patch
Size: 202 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20140407/1fc872f8/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20140407/1fc872f8/attachment.sig>
More information about the Nut-upsuser
mailing list