<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Hello Duarte,</p>
<p>have you looked into the statistics module - you could implement a custom statistics counter for your rate limit logic in the cfg. This can be also evaluated by the mentioned means.</p>
<p>Cheers,</p>
<p>Henning<br>
</p>
<div class="moz-cite-prefix">Am 29.05.19 um 15:52 schrieb Duarte Rocha:<br>
</div>
<blockquote type="cite" cite="mid:CAAJJHZixRv6e8AD7iGcyYbZt_7bG7g1Mvj2P5wg+R_LcG1wOLQ@mail.gmail.com">
<div dir="auto">Greetings,
<div dir="auto"><br>
</div>
<div dir="auto">I'm doing some monitoring of my Kamailio in order to quickly identify system failures and overloads.</div>
<div dir="auto"><br>
</div>
<div dir="auto">In order to do that i have scripts that read the output of "kamcmd sl.stats" and identify the rising of "500_replies", "5xx_replies" and "6xx_replies".</div>
<div dir="auto"><br>
</div>
<div dir="auto">However, i have rate limiting on my Kamailio, which generates "503" replies when limit is reached, which generates an unnecessary alarm. </div>
<div dir="auto"><br>
</div>
<div dir="auto">Is there a way to get more specific stats about the repleis generated by Kamailio? If that isn't possible, will i be safe only monitoring "500" and "6xx" replies? In my experience, when the server has reached a processing or memory limit, the
 reply is always 500, but i'm not really sure about this.</div>
<div dir="auto"><br>
</div>
<div dir="auto">Thank you for your help.</div>
<div dir="auto"><br>
</div>
<div dir="auto">Best Regards,</div>
<div dir="auto"><br>
</div>
<div dir="auto">Duarte Rocha</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">-- 
Henning Westerholt - <a class="moz-txt-link-freetext" href="https://skalatan.de/blog/">https://skalatan.de/blog/</a>
Kamailio services - <a class="moz-txt-link-freetext" href="https://skalatan.de/services">https://skalatan.de/services</a></pre>
</body>
</html>