[Nut-upsuser] Arch Linux and Tripp Lite web snmp card issues.
Arnaud Quette
aquette.dev at gmail.com
Tue Feb 25 21:23:41 UTC 2014
2014-02-25 12:58 GMT+01:00 Charles Lepple <clepple at gmail.com>:
> On Feb 24, 2014, at 11:48 PM, Jason R Begley wrote:
>
> > 0.073855 load_mib2nut: trying classic method with 'delta_ups' mib
> > 0.073878 Entering nut_snmp_get_str()
> > 0.073899 nut_snmp_get((null))
> > 0.073918 nut_snmp_walk((null))
>
> Arnaud,
>
> The gen-snmp-subdriver.sh script is setting mib2nut[i]->oid_auto_check to
> NULL for new drivers (with no instructions on what to use in place of
> NULL). However, this seems to be only used with the "classic method" for
> detecting an UPS.
>
> Is the intent to phase out the classic method, or should we just add an
> explicit NULL check in load_mib2nut()?
>
> The full stack trace is below:
>
> > Program received signal SIGSEGV, Segmentation fault.
> > 0xb7da9470 in __strchr_sse2_bsf () from /usr/lib/libc.so.6
> > (gdb) bt
> > #0 0xb7da9470 in __strchr_sse2_bsf () from /usr/lib/libc.so.6
> > #1 0xb7f05758 in snmp_parse_oid () from /usr/lib/libnetsnmp.so.30
> > #2 0x0804afd8 in nut_snmp_walk ()
> > #3 0x0804b261 in nut_snmp_get ()
> > #4 0x0804bab6 in nut_snmp_get_str ()
> > #5 0x0804be7b in load_mib2nut ()
> > #6 0x0804bfd2 in upsdrv_initups ()
> > #7 0x08049fb4 in main (
>
Hi Charles,
gen-snmp-subdriver.sh simply hasn't done its job, for some reasons.
well, 1 clear is that's it not a completed effort... at all
but, still IIRC, it should have produced at least a bit more
@Jason: how have you called the script?
could you please also send an archive including:
- the results of the adapted commands on #L73, #L74
https://github.com/networkupstools/nut/blob/master/scripts/subdriver/gen-snmp-subdriver.sh
- your mib file
cheers,
Arno
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20140225/e9d414ac/attachment.html>
More information about the Nut-upsuser
mailing list