[Freeswitch-users] CLI status?

Henry Huang red.rain.seven at gmail.com
Sat Apr 3 02:30:52 PDT 2010


Sergey:

Thank you for sharing , I am just recently looking to use monit to monitor
our freeswitch and other production servers.

Henry

Chat Skype: unicsolution MSN: b_ball_henry at hotmail.com
Contact Me [image:
Linkedin]<http://www.linkedin.com/pub/henry-huang/1/654/578>[image:
Facebook] <http://www.facebook.com/profile.php?id=595148342>[image:
Twitter]<http://twitter.com/unicsolution>


On Fri, Apr 2, 2010 at 5:55 PM, Sergey Okhapkin <sos at sokhapkin.dyndns.org>wrote:

> check process freeswitch
>  with pidfile /opt/freeswitch/run/freeswitch.pid
>  start program = "/etc/init.d/freeswitch restart"
>  stop program =  "/etc/init.d/freeswitch stop"
>  if totalmem > 1000.0 MB for 5 cycles then alert
>  if totalmem > 1500.0 MB for 5 cycles then alert
>  if totalmem > 2000.0 MB for 5 cycles then restart
>  if cpu > 60% for 5 cycles then alert
>  if failed host HOST_IP_ADDRESS port 5060 type udp protocol sip within 2
> cycles
>  then restart
>  if 5 restarts within 5 cycles then timeout
>
>
> On Friday 02 April 2010, Lon Baker wrote:
> > Would you care to share an example of the config for monit? I will
> > document the practice on the wiki.
> >
> > On Fri, Apr 2, 2010 at 2:54 PM, Spencer Thomason
> >
> > <spencer at 5ninesolutions.com> wrote:
> > > We run monit on each local machine sending out an options ping every
> > > minute. �If it doesn't get a response then monit restarts the
> > > freeswitch process. �The nice thing about this is that you can
> > > actually verify that Freeswitch is responding to SIP requests.
> > >
> > > On Apr 2, 2010, at 2:24 PM, Lon Baker wrote:
> > >> Hi gang!
> > >>
> > >> I'm trying to determine the best way to periodically check the status
> > >> of production Freeswitch deployments.
> > >>
> > >> While Freeswitch has been incredibly stable in production, I would
> > >> like to ping it periodically to check that its not hung in someway.
> > >>
> > >> Has anyone considered or done this yet?
> > >>
> > >> My thought it so issue a command via fs_cli periodically and compare
> > >> the out. But am trying to determine what a good command would be.
> > >>
> > >> thinking of using show channels or show calls, in addition to status.
> > >>
> > >> Any thoughts? Is this a wrong-headed approach?
> > >>
> > >> Thanks for any feedback.
> > >>
> > >> Lon
> > >>
> > >> _______________________________________________
> > >> FreeSWITCH-users mailing list
> > >> FreeSWITCH-users at lists.freeswitch.org
> > >> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > >> UNSUBSCRIBE:
> http://lists.freeswitch.org/mailman/options/freeswitch-users
> > >> http://www.freeswitch.org
> > >
> > > _______________________________________________
> > > FreeSWITCH-users mailing list
> > > FreeSWITCH-users at lists.freeswitch.org
> > > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > > UNSUBSCRIBE:
> http://lists.freeswitch.org/mailman/options/freeswitch-users
> > > http://www.freeswitch.org
> >
> > _______________________________________________
> > FreeSWITCH-users mailing list
> > FreeSWITCH-users at lists.freeswitch.org
> > http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> > UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> > http://www.freeswitch.org
> >
>
>
> _______________________________________________
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>



-- 
Henry Huang
UniC Solution - Communication Unified
VoIP & Open Source software Consultant
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20100403/ca5fd7d0/attachment.html 


More information about the FreeSWITCH-users mailing list