ast-ax-snmpd is an snmp subagent following the agentX standard, ucd snmp based for asterisk .
It is distributed under the gpl license, you can download here.
23 April 2004. Steeve Creel sent me a patch to compile against current cvs .
3 december 2004, Fabrice ROUSSIN writes:
Hello Andrea,
We wanted to install your snmp subagent for asterisk (w/ Steve Creel's
patch) but met installation pbs.
1st (compilation abort) : `PTHREAD_MUTEX_RECURSIVE' undeclared
(first use in this function)
We succeeded by changing in the Makefile
CFLAGS+=-I$(AST_SOURCE_DIR)
to
CFLAGS+=-I$(AST_SOURCE_DIR) -D_GNU_SOURCE
as described in a post.
2nd (asterisk crash) : undefined symbol:
__use_ast_pthread_create_instead__
I changed
pthread_create(&t, NULL,
agentx_thread, NULL);
to
ast_pthread_create(&t, NULL,
agentx_thread, NULL);
in ast-ax-snmpd.c as descibed in several posts.
3rd (asterisk crash) : undefined symbol: ast_channel_walk
We changed each
ast_channel_walk
to
ast_channel_walk_locked
in astChannels.c.
The subagent is now working for us (we use asterisk-1.0.1 on debian
woody).
Ciao,
Fabrice ROUSSIN
If you have questions, and/or ideas to enhance it, email af@netzen.it
Thanks for visiting. Have a nice day.
Andrea Fino
Handcrafted systems with industrial quality