Hi, <br><span id="result_box" class="" lang="en"><span class="hps">I think</span> <span class="hps">the</span> <span class="hps">easiest way</span> <span class="hps">is to use a</span> <span class="hps">script</span> <span class="hps">with</span> <span class="hps">cron</span> <span class="hps">and</span> <span class="hps">send an email</span> <span class="hps">following the</span> <span class="hps">result of the command</span> <span class="hps">fifo</span> <span class="hps">opensipsctl</span> <span class="hps">dr_status</span> <span class="hps">GatewayID</span></span> without using the databases.<br>
<br><div class="gmail_quote">2012/9/14 alexandre Moutot <span dir="ltr"><<a href="mailto:a.moutot@alphalink.fr" target="_blank">a.moutot@alphalink.fr</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
Thank you for your answer. Yes i can actively check via fifo interface. To have some alert, i need to keep all gateways status in a cache and check all the time through the fifo. I can do that with a simple script, a little database and cron. I'm looking for the other way to do that.<br>
<div class="im HOEnZb"><br>
Regards,<br>
<br>
MOUTOT Alexandre<br>
<a href="mailto:a.moutot@alphalink.fr">a.moutot@alphalink.fr</a><br>
<a href="tel:%2B33%20%280%296%2062%2091%2095%2014" value="+33662919514">+33 (0)6 62 91 95 14</a><br>
<br>
</div><div class="HOEnZb"><div class="h5">----- Original Message -----<br>
> From: "Max Mühlbronner" <<a href="mailto:mm@42com.com">mm@42com.com</a>><br>
> To: "OpenSIPS users mailling list" <<a href="mailto:users@lists.opensips.org">users@lists.opensips.org</a>><br>
> Sent: Friday, September 14, 2012 3:39:13 PM<br>
> Subject: Re: [OpenSIPS-Users] Drouting and gateway monitoring<br>
> Hello,<br>
><br>
> Afaik there is no option for logging the disabled gateways (except at<br>
> higher debug levels?).<br>
><br>
> But you can actively check via fifo interface: "opensipsctl fifo<br>
> dr_status GatewayID" which shows current status of the queried<br>
> gateway.<br>
><br>
><br>
> Best Regards<br>
><br>
> Max M.<br>
><br>
> On 09/14/2012 02:14 PM, alexandre Moutot wrote:<br>
> > Hello,<br>
> ><br>
> > I'm using Opensips with the drouting module. All is ok and works<br>
> > good. I'm using the probe_mode for several gateways : it works good<br>
> > but i don't have any feedback about gateways status. Is there a<br>
> > capability to have a log or to execute an action when a gateway<br>
> > status is modified or otherwise when a gateway goes down.<br>
> ><br>
> > Regards,<br>
> ><br>
> > MOUTOT Alexandre<br>
> > <a href="mailto:a.moutot@alphalink.fr">a.moutot@alphalink.fr</a><br>
> > <a href="tel:%2B33%20%280%296%2062%2091%2095%2014" value="+33662919514">+33 (0)6 62 91 95 14</a><br>
> ><br>
> > _______________________________________________<br>
> > Users mailing list<br>
> > <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
> > <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><span onmouseout="cancel = false; window.setTimeout(WRCHideContent, 1000); clearTimeout(showTimer);" onmouseover=" var self = this; showTimer = window.setTimeout(function(){WRCShowContent({'rating':{'value':-1,'weight':-1},'flags':{'shopping':null,'social':null,'news':null,'it':null,'corporate':null,'pornography':null,'violence':null,'gambling':null,'drugs':null,'illegal':null},'single':true,'ttl':null}, self.className)},600);" class="wrc0" style="padding-right:16px;width:16px;height:16px"></span><br>
><br>
><br>
> --<br>
> Max Mühlbronner<br>
><br>
> 42com Telecommunication GmbH<br>
> Straße der Pariser Kommune 12-16<br>
> 10243 Berlin<br>
><br>
> E-Mail: <a href="mailto:mm@42com.com">mm@42com.com</a><br>
> Web: <a href="http://www.42com.com" target="_blank">www.42com.com</a><span onmouseout="cancel = false; window.setTimeout(WRCHideContent, 1000); clearTimeout(showTimer);" onmouseover=" var self = this; showTimer = window.setTimeout(function(){WRCShowContent({'rating':{'value':-1,'weight':-1},'flags':{'shopping':null,'social':null,'news':null,'it':null,'corporate':null,'pornography':null,'violence':null,'gambling':null,'drugs':null,'illegal':null},'single':true,'ttl':null}, self.className)},600);" class="wrc0" style="padding-right:16px;width:16px;height:16px"></span><br>
><br>
> Firmenangaben/Company information:<br>
> Handelsregister/Commercial register: Amtsgericht Berlin HRB 99071 B<br>
> Umsatzsteuer-ID/VAT-ID: DE223812306<br>
> Geschäftsführer/CEO: Thomas Reinig, Alexander Reinig<br>
><br>
> Diese E-Mail enthält Informationen von 42com Telecommunication GmbH.<br>
> Diese sind möglicherweise vertraulich und ausschließlich für den<br>
> Adressaten bestimmt. Sollten Sie diese elektronische Nachricht<br>
> irrtümlicherweise erhalten haben, so informieren Sie uns bitte<br>
> unverzüglich telefonisch oder per E-Mail.<br>
><br>
> This message is intended only for the use of the individual or entity<br>
> to which it is addressed. If you have received this message by<br>
> mistake, please notify us immediately.<br>
><br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
> <a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><span onmouseout="cancel = false; window.setTimeout(WRCHideContent, 1000); clearTimeout(showTimer);" onmouseover=" var self = this; showTimer = window.setTimeout(function(){WRCShowContent({'rating':{'value':-1,'weight':-1},'flags':{'shopping':null,'social':null,'news':null,'it':null,'corporate':null,'pornography':null,'violence':null,'gambling':null,'drugs':null,'illegal':null},'single':true,'ttl':null}, self.className)},600);" class="wrc0" style="padding-right:16px;width:16px;height:16px"></span><br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><span onmouseout="cancel = false; window.setTimeout(WRCHideContent, 1000); clearTimeout(showTimer);" onmouseover=" var self = this; showTimer = window.setTimeout(function(){WRCShowContent({'rating':{'value':-1,'weight':-1},'flags':{'shopping':null,'social':null,'news':null,'it':null,'corporate':null,'pornography':null,'violence':null,'gambling':null,'drugs':null,'illegal':null},'single':true,'ttl':null}, self.className)},600);" class="wrc0" style="padding-right:16px;width:16px;height:16px"></span><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><br>Best Regards<br><br>