Well, it seems to be a logical/design flow as SNMP returns data related to the stateless processing. As you forward your calls in a stateful mode, SNMP does not see them (as outbound calls).

You will be seeing them if you look at the TM statistics :

        opensipsctl fifo get_statistics tm:

(and do not forget about the final colon at the end ;) ).

Regards

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com


On 12/18/2012 12:17 AM, Jacek Konieczny wrote:
On Mon, Dec 17, 2012 at 11:56:48PM +0400, Bogdan-Andrei Iancu wrote:
If you do:

      opensipsctl fifo get_statistics core:
# opensipsctl fifo get_statistics core
404 Statistics Not Found

what do you see for :
      rcv_requests
      rcv_replies
      fwd_requests
      fwd_replies
# opensipsctl fifo get_statistics all | grep ^core
core:rcv_requests = 32
core:rcv_replies = 45
core:fwd_requests = 0
core:fwd_replies = 0
[...]

at the same time SNMP gives:
OPENSER-SIP-COMMON-MIB::openserSIPSummaryOutRequests.0 = Counter32: 0
OPENSER-SIP-COMMON-MIB::openserSIPSummaryInResponses.0 = Counter32: 45
OPENSER-SIP-COMMON-MIB::openserSIPSummaryInRequests.0 = Counter32: 32
OPENSER-SIP-COMMON-MIB::openserSIPSummaryOutResponses.0 = Counter32: 72

Also, in your script, do you do stateful (via TM t_xxx) or stateless
(core via forward() ) processing for your calls ?
stateful

Greets,
         Jacek


On 12/15/2012 10:16 PM, Jacek Konieczny wrote:
Hi,

I am setting up OpenSIPs server monitoring using SNMP, first at a
hardly-used test server. And two values made me wonder:

$ snmpwalk -v 2c -c public localhost 
OPENSER-SIP-COMMON-MIB::openserSIPSummaryOutRequests ; \
    snmpwalk -v 2c -c public localhost 
OPENSER-SIP-COMMON-MIB::openserSIPSummaryInResponses
OPENSER-SIP-COMMON-MIB::openserSIPSummaryOutRequests.0 = Counter32: 0
OPENSER-SIP-COMMON-MIB::openserSIPSummaryInResponses.0 = Counter32: 441

How can it be the server sends no requests and gets many responses? Is
such behaviour expected (like more outgoing responses than incoming
requests) or is it some kind of bug? If a bug, then is it in snmpstats or
in my configuration?

Greets,
          Jacek

_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

_______________________________________________
Users mailing list
Users@lists.opensips.org
http://lists.opensips.org/cgi-bin/mailman/listinfo/users

Reply via email to