[Nut-upsuser] Arch Linux and Tripp Lite web snmp card issues.
clepple at gmail.com
Tue Feb 25 11:58:07 UTC 2014
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))
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 ()
clepple at gmail
More information about the Nut-upsuser