Hi. I'm trying to configure NUT to manage a HP R12000/3 3-phase UPS fitted with an AF401A management module but it immediately crashes with a segmentation fault. O/S is CentOS 6.3 64-bit NUT built from tarball AF401A Firmware version 2.1.3 Extract from /etc/ups/ups.conf [UPS-HP01] driver = snmp-ups port = 192.168.0.89 desc = " HP R12000/3 UPS" Output from starting the driver [root at ups-monitor log]# upsdrvctl start Network UPS Tools - UPS driver controller 2.6.4 Network UPS Tools - Generic SNMP UPS driver 0.66 (2.6.4) kill: No such process Detected HP R12000/3UPS on host 192.168.0.89 (mib: cpqpower 1.5) Driver exited abnormally [root at ups-monitor log]# Extract from /var/log/messages Oct 15 15:02:32 ups-monitor kernel: snmp-ups[16840]: segfault at 0 ip 000000354707a98c sp 00007fff11f2a8b8 error 4 in libc-2.12.so<http://libc-2.12.so>[3547000000+189000] Debug output attached. I've downloaded the latest mib file (v1.64) from HP's website but I can't find any way to add it to the source files. I've seen references to the mib2nut mapping but, again, no help on how to achieve this. Thanks, Chris Pratt Development Infrastructure Manager Comptel Corporation 69 Suttons Business Park, Sutton Park Avenue, Reading, RG6 1AZ, UK T: +44 118 929 4176 | M: +44 7979 854 307 | F: +44 118 929 4001 Chris.Pratt at comptel.com<mailto:Chris.Pratt at comptel.com> www.comptel.com<http://www.comptel.com/> ________________________________ Disclaimer: This message and any attachments thereto are intended solely for the addressed recipient(s) and may contain confidential information. If you are not the intended recipient, please notify the sender by reply e-mail and delete the e-mail (including any attachments thereto) without producing, distributing or retaining any copies thereof. Any review, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient(s) is prohibited. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20121016/2a691692/attachment-0001.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: nut.txt.gz Type: application/x-gzip Size: 2960 bytes Desc: nut.txt.gz URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20121016/2a691692/attachment-0001.bin>
2012/10/16 Pratt Chris <Chris.Pratt at comptel.com>:> Hi.Hi Chris,> I?m trying to configure NUT to manage a HP R12000/3 3-phase UPS fitted with > an AF401A management module but it immediately crashes with a segmentation > fault.right, we have recently identified a regression WRT outlet handling. I have a stagging patch for ~2 months, but still no time to test and complete it. Would you be able to patch, compile and test on your side? Best regards, Arnaud -- Linux / Unix / Opensource Engineering Expert - Eaton - http://opensource.eaton.com Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org Debian Developer - http://www.debian.org Free Software Developer - http://arnaud.quette.fr> O/S is CentOS 6.3 64-bit > > NUT built from tarball > > AF401A Firmware version 2.1.3 > > Extract from /etc/ups/ups.conf > > [UPS-HP01] > > driver = snmp-ups > > port = 192.168.0.89 > > desc = " HP R12000/3 UPS" > > > > Output from starting the driver > > [root at ups-monitor log]# upsdrvctl start > > Network UPS Tools - UPS driver controller 2.6.4 > > Network UPS Tools - Generic SNMP UPS driver 0.66 (2.6.4) > > kill: No such process > > Detected HP R12000/3UPS on host 192.168.0.89 (mib: cpqpower 1.5) > > Driver exited abnormally > > [root at ups-monitor log]# > > > > Extract from /var/log/messages > > Oct 15 15:02:32 ups-monitor kernel: snmp-ups[16840]: segfault at 0 ip > 000000354707a98c sp 00007fff11f2a8b8 error 4 in > libc-2.12.so[3547000000+189000] > > Debug output attached. > > I?ve downloaded the latest mib file (v1.64) from HP?s website but I can?t > find any way to add it to the source files. I?ve seen references to the > mib2nut mapping but, again, no help on how to achieve this. > > > > Thanks, > > > > > > > > Chris Pratt > > Development Infrastructure Manager > > Comptel Corporation > > 69 Suttons Business Park, Sutton Park Avenue, Reading, RG6 1AZ, UK > > T: +44 118 929 4176 | M: +44 7979 854 307 | F: +44 118 929 4001 > > Chris.Pratt at comptel.com > > www.comptel.com > > > > > > > ________________________________ > Disclaimer: This message and any attachments thereto are intended solely for > the addressed recipient(s) and may contain confidential information. > If you are not the intended recipient, please notify the sender by reply > e-mail and delete the e-mail (including any attachments thereto) without > producing, distributing or retaining any copies thereof. Any review, > dissemination or other use of, or taking of any action in reliance upon, > this information by persons or entities other than the intended recipient(s) > is prohibited. > Thank you. > > _______________________________________________ > Nut-upsuser mailing list > Nut-upsuser at lists.alioth.debian.org > http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser
2012/10/17 Pratt Chris <Chris.Pratt at comptel.com>> Hi Arnaud. >Hi Chris, first, please keep the traffic on the list, since other people may be interested in the topic.> Unfortunately I'm not primarily a developer (I manage a room full of > servers) so I don't have the normal array of development tools. I built > NUT from the downloaded tarball following the instructions in the > Installation Guide so If patching means simply amending files I can do that > and then rebuild and test it, if you let me know what changes need to be > made. >it's exactly that, not harder. the patch is attached. please beware that if I've not committed it to the NUT code repository, it's because of a lack of testing! so even if my confidence level is good, not all my green lights are lit. to apply the patch, go into the NUT source directory and use: $ patch -p0 < /path/to/snmp-ups-0outlet.diff note that it applies fine on 2.6.5. then just "make && make install" as previously I'm interested in a driver debug trace, using: $ /path/to/snmp-ups -DDDDD -a UPS-HP01 If the driver doesn't crash, just Ctrl+C after a couple of minutes. in all cases, send back the trace in compressed form please. cheers, Arnaud -- Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org Debian Developer - http://www.debian.org Free Software Developer - http://arnaud.quette.fr -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20121018/c501346b/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: snmp-ups-0outlet.diff Type: application/octet-stream Size: 3614 bytes Desc: not available URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20121018/c501346b/attachment.obj>