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">&lt;<a href="mailto:sos@sokhapkin.dyndns.org">sos@sokhapkin.dyndns.org</a>&gt;</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 = &quot;/etc/init.d/freeswitch restart&quot;<br>
  stop program =  &quot;/etc/init.d/freeswitch stop&quot;<br>
  if totalmem &gt; 1000.0 MB for 5 cycles then alert<br>
  if totalmem &gt; 1500.0 MB for 5 cycles then alert<br>
  if totalmem &gt; 2000.0 MB for 5 cycles then restart<br>
  if cpu &gt; 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">&gt; Would you care to share an example of the config for monit? I will<br>
&gt; document the practice on the wiki.<br>
&gt;<br>
&gt; On Fri, Apr 2, 2010 at 2:54 PM, Spencer Thomason<br>
&gt;<br>
&gt; &lt;<a href="mailto:spencer@5ninesolutions.com">spencer@5ninesolutions.com</a>&gt; wrote:<br>
&gt; &gt; We run monit on each local machine sending out an options ping every<br>
&gt; &gt; minute. �If it doesn&#39;t get a response then monit restarts the<br>
&gt; &gt; freeswitch process. �The nice thing about this is that you can<br>
&gt; &gt; actually verify that Freeswitch is responding to SIP requests.<br>
&gt; &gt;<br>
&gt; &gt; On Apr 2, 2010, at 2:24 PM, Lon Baker wrote:<br>
&gt; &gt;&gt; Hi gang!<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; I&#39;m trying to determine the best way to periodically check the status<br>
&gt; &gt;&gt; of production Freeswitch deployments.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; While Freeswitch has been incredibly stable in production, I would<br>
&gt; &gt;&gt; like to ping it periodically to check that its not hung in someway.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Has anyone considered or done this yet?<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; My thought it so issue a command via fs_cli periodically and compare<br>
&gt; &gt;&gt; the out. But am trying to determine what a good command would be.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; thinking of using show channels or show calls, in addition to status.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Any thoughts? Is this a wrong-headed approach?<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Thanks for any feedback.<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Lon<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; _______________________________________________<br>
&gt; &gt;&gt; FreeSWITCH-users mailing list<br>
&gt; &gt;&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; &gt;&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; &gt;&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; &gt;&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; FreeSWITCH-users mailing list<br>
&gt; &gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; &gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; &gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; &gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; FreeSWITCH-users mailing list<br>
&gt; <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
&gt; <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
&gt; UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
&gt; <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
&gt;<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 &amp; Open Source software Consultant<br>