Problems with percmain and snmpd
Matthew Schumacher
matt.s at aptalaska.net
Fri Jun 2 14:17:25 CDT 2006
Ok,
I got the software installed and percagent is running. Percmain seems
to work just fine:
# percmain -n .1.3.6.1.4.1.3582.1.1.1.1.0
.1.3.6.1.4.1.3582.1.1.2.1.1.0.0
integer
0
So I put "pass .1.3.6.1.4.1.3582 /usr/sbin/percmain" in my snmpd.conf
thinking I'm good to go, except my snmpd crashes every time I try to
start it with:
trace: read_config(): read_config.c, 725:
read_config: /etc/snmpd.conf:101 examining: pass .1.3.6.1.4.1.3582
/usr/sbin/percmain
trace: run_config_handler(): read_config.c, 441:
read_config: Found a parser. Calling it: pass / .1.3.6.1.4.1.3582
/usr/sbin/percmain
trace: netsnmp_register_handler(): agent_handler.c, 189:
handler::register: Registering pass (::old_api) at
SNMPv2-SMI::enterprises.3582
trace: netsnmp_inject_handler_before(): agent_handler.c, 300:
handler:inject: injecting bulk_to_next before old_api
trace: netsnmp_register_mib(): agent_registry.c, 556:
register_mib: registering "pass" at SNMPv2-SMI::enterprises.3582
trace: netsnmp_subtree_find_first(): agent_registry.c, 156:
subtree: looking for subtree for context: ""
trace: netsnmp_subtree_find_first(): agent_registry.c, 160:
subtree: found one for: ""
trace: snmp_call_callbacks(): callback.c, 176:
callback: START calling callbacks for maj=1 min=1
trace: snmp_call_callbacks(): callback.c, 196:
callback: END calling callbacks for maj=1 min=1 (0 called)
trace: netsnmp_subtree_find_first(): agent_registry.c, 156:
subtree: looking for subtree for context: "Ðï
Ò·"
trace: netsnmp_subtree_find_first(): agent_registry.c, 165:
subtree: didn't find a subtree for context: "Ðï
Ò·"
*** glibc detected *** double free or corruption (fasttop): 0x080b3800 ***
Aborted
Anyone seen this before? You would think it's just calling the percmain
binary with exec() so it should work.
schu
More information about the Linux-PowerEdge
mailing list