Hello,
I'm trying to get the total number of SIP request messages sent out by the proxy with *kamailioSIPSummaryOutRequest* scalar. But the value doesn't increase if I use t_relay() (with forward() counter works).
Related thread https://opensips.org/pipermail/users/2012-December/024045.html.
Is there another SNMP counter which contains a total number of OUT requests?
Marat
Hello,
the statistics from the core are only for stateless forwarding.
You can check if tmx module offers the numbers you are looking for (load the module and check the output of 'kamctl stats').
If not, you can also define new statistics in the config with the module:
* https://www.kamailio.org/docs/modules/stable/modules/statistics.html
An you can incremented when you use t_relay(). Alternative, you can use onsend_route for requests.
On the other hand, I do not use snmp module to see if there is any option to export config-defined stats to snmp.
Firthermore, maybe you can switch to statsd module for pushing out the stats or pull them via rpc.
Cheers, Daniel
On 25.03.21 16:45, Marat Gareev wrote:
Hello,
I'm trying to get the total number of SIP request messages sent out by the proxy with *kamailioSIPSummaryOutRequest* scalar. But the value doesn't increase if I use t_relay() (with forward() counter works).
Related thread https://opensips.org/pipermail/users/2012-December/024045.html.
Is there another SNMP counter which contains a total number of OUT requests?
Marat
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Thanks, Daniel.
In this case I'll define a custom counter.
Marat
вт, 30 мар. 2021 г. в 14:06, Daniel-Constantin Mierla miconda@gmail.com:
Hello,
the statistics from the core are only for stateless forwarding.
You can check if tmx module offers the numbers you are looking for (load the module and check the output of 'kamctl stats').
If not, you can also define new statistics in the config with the module:
An you can incremented when you use t_relay(). Alternative, you can use onsend_route for requests.
On the other hand, I do not use snmp module to see if there is any option to export config-defined stats to snmp.
Firthermore, maybe you can switch to statsd module for pushing out the stats or pull them via rpc.
Cheers, Daniel On 25.03.21 16:45, Marat Gareev wrote:
Hello,
I'm trying to get the total number of SIP request messages sent out by the proxy with *kamailioSIPSummaryOutRequest* scalar. But the value doesn't increase if I use t_relay() (with forward() counter works).
Related thread https://opensips.org/pipermail/users/2012-December/024045.html.
Is there another SNMP counter which contains a total number of OUT requests?
Marat
Kamailio (SER) - Users Mailing Listsr-users@lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda Funding: https://www.paypal.me/dcmierla
Just for sake of completion of the knowledge here in the mailing list archive: do custom counters become available in snmpstats?
Cheers, Daniel
On 30.03.21 13:55, Marat Gareev wrote:
Thanks, Daniel.
In this case I'll define a custom counter.
Marat
вт, 30 мар. 2021 г. в 14:06, Daniel-Constantin Mierla <miconda@gmail.com mailto:miconda@gmail.com>:
Hello, the statistics from the core are only for stateless forwarding. You can check if tmx module offers the numbers you are looking for (load the module and check the output of 'kamctl stats'). If not, you can also define new statistics in the config with the module: * https://www.kamailio.org/docs/modules/stable/modules/statistics.html <https://www.kamailio.org/docs/modules/stable/modules/statistics.html> An you can incremented when you use t_relay(). Alternative, you can use onsend_route for requests. On the other hand, I do not use snmp module to see if there is any option to export config-defined stats to snmp. Firthermore, maybe you can switch to statsd module for pushing out the stats or pull them via rpc. Cheers, Daniel On 25.03.21 16:45, Marat Gareev wrote:
Hello, I'm trying to get the total number of SIP request messages sent out by the proxy with *kamailioSIPSummaryOutRequest* scalar. But the value doesn't increase if I use t_relay() (with forward() counter works). Related thread <https://opensips.org/pipermail/users/2012-December/024045.html>. Is there another SNMP counter which contains a total number of OUT requests? Marat _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org <mailto:sr-users@lists.kamailio.org> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users <https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users>
-- Daniel-Constantin Mierla -- www.asipto.com <http://www.asipto.com> www.twitter.com/miconda <http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda <http://www.linkedin.com/in/miconda> Funding: https://www.paypal.me/dcmierla <https://www.paypal.me/dcmierla>
It looks like custom metrics are only available in xHTTP_PROM module.
вт, 6 апр. 2021 г. в 10:25, Daniel-Constantin Mierla miconda@gmail.com:
Just for sake of completion of the knowledge here in the mailing list archive: do custom counters become available in snmpstats?
Cheers, Daniel On 30.03.21 13:55, Marat Gareev wrote:
Thanks, Daniel.
In this case I'll define a custom counter.
Marat
вт, 30 мар. 2021 г. в 14:06, Daniel-Constantin Mierla miconda@gmail.com:
Hello,
the statistics from the core are only for stateless forwarding.
You can check if tmx module offers the numbers you are looking for (load the module and check the output of 'kamctl stats').
If not, you can also define new statistics in the config with the module:
An you can incremented when you use t_relay(). Alternative, you can use onsend_route for requests.
On the other hand, I do not use snmp module to see if there is any option to export config-defined stats to snmp.
Firthermore, maybe you can switch to statsd module for pushing out the stats or pull them via rpc.
Cheers, Daniel On 25.03.21 16:45, Marat Gareev wrote:
Hello,
I'm trying to get the total number of SIP request messages sent out by the proxy with *kamailioSIPSummaryOutRequest* scalar. But the value doesn't increase if I use t_relay() (with forward() counter works).
Related thread https://opensips.org/pipermail/users/2012-December/024045.html.
Is there another SNMP counter which contains a total number of OUT requests?
Marat
Kamailio (SER) - Users Mailing Listsr-users@lists.kamailio.orghttps://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda Funding: https://www.paypal.me/dcmierla
--
Daniel-Constantin Mierla -- www.asipto.comwww.twitter.com/miconda -- www.linkedin.com/in/miconda Funding: https://www.paypal.me/dcmierla
On 6 Apr 2021, at 12:14, Marat Gareev maratkin94@gmail.com wrote:
It looks like custom metrics are only available in xHTTP_PROM module.
You can read them with jsonrpc as well and add them as custom counters in your snmpd.conf
/O
вт, 6 апр. 2021 г. в 10:25, Daniel-Constantin Mierla <miconda@gmail.com mailto:miconda@gmail.com>: Just for sake of completion of the knowledge here in the mailing list archive: do custom counters become available in snmpstats?
Cheers, Daniel
On 30.03.21 13:55, Marat Gareev wrote:
Thanks, Daniel.
In this case I'll define a custom counter.
Marat
вт, 30 мар. 2021 г. в 14:06, Daniel-Constantin Mierla <miconda@gmail.com mailto:miconda@gmail.com>: Hello,
the statistics from the core are only for stateless forwarding.
You can check if tmx module offers the numbers you are looking for (load the module and check the output of 'kamctl stats').
If not, you can also define new statistics in the config with the module:
- https://www.kamailio.org/docs/modules/stable/modules/statistics.html https://www.kamailio.org/docs/modules/stable/modules/statistics.html
An you can incremented when you use t_relay(). Alternative, you can use onsend_route for requests.
On the other hand, I do not use snmp module to see if there is any option to export config-defined stats to snmp.
Firthermore, maybe you can switch to statsd module for pushing out the stats or pull them via rpc.
Cheers, Daniel
On 25.03.21 16:45, Marat Gareev wrote:
Hello,
I'm trying to get the total number of SIP request messages sent out by the proxy with kamailioSIPSummaryOutRequest scalar. But the value doesn't increase if I use t_relay() (with forward() counter works).
Related thread https://opensips.org/pipermail/users/2012-December/024045.html.
Is there another SNMP counter which contains a total number of OUT requests?
Marat
Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org mailto:sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-- Daniel-Constantin Mierla -- www.asipto.com http://www.asipto.com/ www.twitter.com/miconda http://www.twitter.com/miconda -- www.linkedin.com/in/miconda http://www.linkedin.com/in/miconda Funding: https://www.paypal.me/dcmierla https://www.paypal.me/dcmierla--
Daniel-Constantin Mierla -- www.asipto.com http://www.asipto.com/ www.twitter.com/miconda http://www.twitter.com/miconda -- www.linkedin.com/in/miconda http://www.linkedin.com/in/miconda Funding: https://www.paypal.me/dcmierla https://www.paypal.me/dcmierla_______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
Probably is like 10 years since I deployed snmpstats module for kamailio, as far as I can remember, SNMP works with static mappings of MIBs, probably each new metric exported by Kamailio needs C code and a defined MIB value. So right now only what was coded in snmpstats is available.
On the other hand, the new counters/stats should also be available via rpc stats.fetchn (or its variants). So you can pull them from kamailio via jsonrpc (or xmlrpc) and push them to your monitoring system using a converting script -- typically such scripts are easy to build with python, I guess python has libraries for snmp, if you need to go this way.
Cheers, Daniel
On 06.04.21 12:14, Marat Gareev wrote:
It looks like custom metrics are only available in xHTTP_PROM module.
вт, 6 апр. 2021 г. в 10:25, Daniel-Constantin Mierla <miconda@gmail.com mailto:miconda@gmail.com>:
Just for sake of completion of the knowledge here in the mailing list archive: do custom counters become available in snmpstats? Cheers, Daniel On 30.03.21 13:55, Marat Gareev wrote:
Thanks, Daniel. In this case I'll define a custom counter. Marat вт, 30 мар. 2021 г. в 14:06, Daniel-Constantin Mierla <miconda@gmail.com <mailto:miconda@gmail.com>>: Hello, the statistics from the core are only for stateless forwarding. You can check if tmx module offers the numbers you are looking for (load the module and check the output of 'kamctl stats'). If not, you can also define new statistics in the config with the module: * https://www.kamailio.org/docs/modules/stable/modules/statistics.html <https://www.kamailio.org/docs/modules/stable/modules/statistics.html> An you can incremented when you use t_relay(). Alternative, you can use onsend_route for requests. On the other hand, I do not use snmp module to see if there is any option to export config-defined stats to snmp. Firthermore, maybe you can switch to statsd module for pushing out the stats or pull them via rpc. Cheers, Daniel On 25.03.21 16:45, Marat Gareev wrote:
Hello, I'm trying to get the total number of SIP request messages sent out by the proxy with *kamailioSIPSummaryOutRequest* scalar. But the value doesn't increase if I use t_relay() (with forward() counter works). Related thread <https://opensips.org/pipermail/users/2012-December/024045.html>. Is there another SNMP counter which contains a total number of OUT requests? Marat _______________________________________________ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org <mailto:sr-users@lists.kamailio.org> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users <https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users>
-- Daniel-Constantin Mierla -- www.asipto.com <http://www.asipto.com> www.twitter.com/miconda <http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda <http://www.linkedin.com/in/miconda> Funding: https://www.paypal.me/dcmierla <https://www.paypal.me/dcmierla>
-- Daniel-Constantin Mierla -- www.asipto.com <http://www.asipto.com> www.twitter.com/miconda <http://www.twitter.com/miconda> -- www.linkedin.com/in/miconda <http://www.linkedin.com/in/miconda> Funding: https://www.paypal.me/dcmierla <https://www.paypal.me/dcmierla>