Sergey:<br><br>Thank you for sharing , I am just recently looking to use monit to monitor our freeswitch and other production servers. <br><br>Henry<br><br><span style="color: black;"><div dir="ltr"><div></div><div style="padding: 10px 0pt 5px; font-family: arial,sans-serif; font-size: 13.3px;">
<span style="color: gray;">Chat</span> <img src="http://www.images.wisestamp.com/skype.png" style="vertical-align: middle; padding-right: 5px;" alt="" height="16" width="16"><font style="color: gray; font-weight: bold; font-size: 9pt;">Skype: </font><font style="vertical-align: middle;">unicsolution</font> <img src="http://www.images.wisestamp.com/msn.png" style="vertical-align: middle; padding-right: 5px;" alt="" height="16" width="16"><font style="color: gray; font-weight: bold; font-size: 9pt;">MSN: </font><font style="vertical-align: middle;"><a href="mailto:b_ball_henry@hotmail.com">b_ball_henry@hotmail.com</a></font></div>
<div style="padding: 5px 0pt; font-family: arial,sans-serif; font-size: 13.3px;"><span style="color: gray;">Contact Me</span> <a href="http://www.linkedin.com/pub/henry-huang/1/654/578" style="padding: 0pt 2px; color: blue; font-size: 10pt;"><img src="http://www.images.wisestamp.com/linkedin.png" alt="Linkedin" style="vertical-align: middle; padding-bottom: 5px;" border="0" height="16" width="16"></a><a href="http://www.facebook.com/profile.php?id=595148342" style="padding: 0pt 2px; color: blue; font-size: 10pt;"><img src="http://www.images.wisestamp.com/facebook.png" alt="Facebook" style="vertical-align: middle; padding-bottom: 5px;" border="0" height="16" width="16"></a><a href="http://twitter.com/unicsolution" style="padding: 0pt 2px; color: blue; font-size: 10pt;"><img src="http://www.images.wisestamp.com/twitter.png" alt="Twitter" style="vertical-align: middle; padding-bottom: 5px;" border="0" height="16" width="16"></a></div>
</div></span><br><br><div class="gmail_quote">On Fri, Apr 2, 2010 at 5:55 PM, Sergey Okhapkin <span dir="ltr"><<a href="mailto:sos@sokhapkin.dyndns.org">sos@sokhapkin.dyndns.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
check process freeswitch<br>
with pidfile /opt/freeswitch/run/freeswitch.pid<br>
start program = "/etc/init.d/freeswitch restart"<br>
stop program = "/etc/init.d/freeswitch stop"<br>
if totalmem > 1000.0 MB for 5 cycles then alert<br>
if totalmem > 1500.0 MB for 5 cycles then alert<br>
if totalmem > 2000.0 MB for 5 cycles then restart<br>
if cpu > 60% for 5 cycles then alert<br>
if failed host HOST_IP_ADDRESS port 5060 type udp protocol sip within 2<br>
cycles<br>
then restart<br>
if 5 restarts within 5 cycles then timeout<br>
<div class="im"><br>
<br>
On Friday 02 April 2010, Lon Baker wrote:<br>
</div><div><div></div><div class="h5">> Would you care to share an example of the config for monit? I will<br>
> document the practice on the wiki.<br>
><br>
> On Fri, Apr 2, 2010 at 2:54 PM, Spencer Thomason<br>
><br>
> <<a href="mailto:spencer@5ninesolutions.com">spencer@5ninesolutions.com</a>> wrote:<br>
> > We run monit on each local machine sending out an options ping every<br>
> > minute. �If it doesn't get a response then monit restarts the<br>
> > freeswitch process. �The nice thing about this is that you can<br>
> > actually verify that Freeswitch is responding to SIP requests.<br>
> ><br>
> > On Apr 2, 2010, at 2:24 PM, Lon Baker wrote:<br>
> >> Hi gang!<br>
> >><br>
> >> I'm trying to determine the best way to periodically check the status<br>
> >> of production Freeswitch deployments.<br>
> >><br>
> >> While Freeswitch has been incredibly stable in production, I would<br>
> >> like to ping it periodically to check that its not hung in someway.<br>
> >><br>
> >> Has anyone considered or done this yet?<br>
> >><br>
> >> My thought it so issue a command via fs_cli periodically and compare<br>
> >> the out. But am trying to determine what a good command would be.<br>
> >><br>
> >> thinking of using show channels or show calls, in addition to status.<br>
> >><br>
> >> Any thoughts? Is this a wrong-headed approach?<br>
> >><br>
> >> Thanks for any feedback.<br>
> >><br>
> >> Lon<br>
> >><br>
> >> _______________________________________________<br>
> >> FreeSWITCH-users mailing list<br>
> >> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
> >> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> >> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> >> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
> ><br>
> > _______________________________________________<br>
> > FreeSWITCH-users mailing list<br>
> > <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
> > <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> > UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> > <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
><br>
> _______________________________________________<br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
><br>
<br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Henry Huang<br>UniC Solution - Communication Unified<br>VoIP & Open Source software Consultant<br>