<div dir="ltr">Hi all<br><br>could you help me the clue on that<br>i compiled the module snmpstats successfull, i didnot change the snmpd.conf<br>but when i start opensips with snmp module i get the error<br><br>[root@computer1 ~]# tail -f /var/log/messages<br>
Oct 17 19:13:07 computer1 /sbin/opensips[2028]: INFO:core:sig_usr: signal 15 received<br>Oct 17 19:13:07 computer1 /sbin/opensips[2027]: INFO:core:sig_usr: signal 15 received<br>Oct 17 19:13:07 computer1 /sbin/opensips[2026]: INFO:core:sig_usr: signal 15 received<br>
Oct 17 19:13:07 computer1 /sbin/opensips[2024]: INFO:core:sig_usr: signal 15 received<br>Oct 17 19:13:07 computer1 /sbin/opensips[2022]: INFO:core:sig_usr: signal 15 received<br>Oct 17 19:13:07 computer1 /sbin/opensips[2020]: INFO:core:sig_usr: signal 15 received<br>
Oct 17 19:13:07 computer1 /sbin/opensips[2046]: INFO:core:sig_usr: signal 15 received<br>Oct 17 19:13:09 computer1 opensips: ERROR:core:sr_load_module: could not open module <//lib/opensips/modules/snmpstats.so>: /usr/lib/libnetsnmpagent.so.10: undefined symbol: boot_DynaLoader<br>
Oct 17 19:13:09 computer1 opensips: CRITICAL:core:yyerror: parse error in config file, line 44, column 13-14: failed to load module<br><br>[root@computer1 ~]# ls /lib/opensips/modules/<br>acc.so dispatcher.so mi_fifo.so snmpstats.so<br>
alias_db.so diversion.so msilo.so speeddial.so<br>auth_db.so domainpolicy.so nathelper.so sst.so<br>auth_diameter.so domain.so nat_traversal.so statistics.so<br>auth_radius.so enum.so options.so textops.so<br>
auth.so exec.so path.so tm.so<br>avpops.so gflags.so pdt.so uac_redirect.so<br>avp_radius.so group_radius.so permissions.so uac.so<br>benchmark.so group.so pike.so uri_db.so<br>
cfgutils.so imc.so ratelimit.so uri_radius.so<br>db_flatstore.so lcr.so registrar.so uri.so<br>db_mysql.so mangler.so rr.so userblacklist.so<br>db_text.so maxfwd.so siptrace.so usrloc.so<br>
dialog.so mediaproxy.so sl.so xlog.so<br>dialplan.so mi_datagram.so sms.so<br><br><br>the opensips.cfg :<br><br>debug=3<br>log_stderror=no<br>log_facility=LOG_LOCAL0<br><br>fork=yes<br>children=4<br>
port=5060<br><br>mpath="//lib/opensips/modules/"<br>loadmodule "db_mysql.so"<br>loadmodule "sl.so"<br>loadmodule "tm.so"<br>modparam("tm", "fr_timer", 10) <br>modparam("tm", "fr_inv_timer", 30)/*invite time-out*/<br>
loadmodule "rr.so"<br>modparam("rr", "enable_full_lr", 1)<br>loadmodule "maxfwd.so"<br>loadmodule "usrloc.so"<br>modparam("usrloc", "timer_interval", 120) /* delete expired register on database + memory*/<br>
modparam("usrloc", "db_url", "mysql://opensips:opensipsrw@localhost/opensips")<br>modparam("usrloc", "db_mode", 2) /* store database + memory */<br>loadmodule "registrar.so"<br>
modparam("registrar", "default_expires", 3600) <br>modparam("registrar", "max_expires",3600) <br>modparam("registrar", "min_expires",3600) <br>loadmodule "textops.so"<br>
loadmodule "mi_fifo.so"<br>modparam("mi_fifo", "fifo_name", "/tmp/opensips_fifo")<br>loadmodule "auth.so"<br>loadmodule "auth_db.so"<br>modparam("auth_db", "calculate_ha1", yes)<br>
modparam("auth_db", "password_column", "password")<br>modparam("auth_db", "db_url","mysql://opensips:opensipsrw@localhost/opensips")<br>modparam("auth_db", "load_credentials", "")<br>
loadmodule "acc.so"<br>modparam("acc", "db_flag", 2)<br>modparam("acc", "db_url", "mysql://opensips:opensipsrw@localhost/opensips")<br>modparam("acc", "db_extra", "from_uri=$fu; to_uri=$tu")<br>
modparam("acc", "db_table_acc", "acc")<br>loadmodule "dialog.so"<br>modparam("dialog", "dlg_flag", 4)<br>modparam("dialog", "db_url", "mysql://opensips:opensipsrw@localhost/opensips")<br>
modparam("dialog", "db_mode", 1)<br>loadmodule "snmpstats.so"<br><br><br>route{<br> if (!mf_process_maxfwd_header("10")) {<br> sl_send_reply("483","Too Many Hops");<br>
exit;<br> }<br> if (msg:len >= 2048 ) {<br> sl_send_reply("513", "Message too big");<br> exit;<br> }<br> if (loose_route()) <br>
append_hf("P-hint: rr-enforced\r\n");<br> if (is_method("PUBLISH|SUBSCRIBE"))<br> {<br> sl_send_reply("503", "Service Unavailable");<br>
exit;<br> }<br> if (is_method("REGISTER"))<br> {<br> # authenticate the REGISTER requests (uncomment to enable auth)<br> if(!www_authorize("", "subscriber")){<br>
www_challenge("", "0");<br> exit;<br> } <br> ##if (!check_to())<br> ##{<br> ## sl_send_reply("403","Forbidden auth ID");<br>
## exit;<br> ##}<br> if (!save("location"))<br> sl_reply_error();<br> exit;<br> }<br> if (!lookup("location")) {<br>
switch ($retcode) {<br> case -1:<br> case -3:<br> t_newtran();<br> t_reply("404", "Not Found");<br>
exit;<br> case -2:<br> sl_send_reply("405", "Method Not Allowed");<br> exit;<br> }<br>
}<br> if (!method=="REGISTER")<br> route(2);<br> route(1);<br>}<br><br>route[1] {<br> # send it out now; use stateful forwarding as it works reliably<br> # even for UDP2TCP<br>
if (!t_relay()) {<br> sl_reply_error();<br> };<br> exit;<br>}<br><br>route[2] {<br> if (is_method("INVITE")){<br> if (!proxy_authorize("", "subscriber")) {<br> proxy_challenge("", "0"); # Realm will be autogenerated<br>
exit;<br> }; <br> };<br> record_route();<br>}<br><br><br>Thanks<br>Ha`<br></div>