[Freeswitch-users] FS crash / Monitoring Script to Restart FS
Steven Ayre
steveayre at gmail.com
Tue Dec 14 16:14:16 MSK 2010
Also see freeswitch.monitrc in git (I forget which directory) which also has an example config.
Steve on iPhone
On 14 Dec 2010, at 12:38, Vitalii Colosov <vetali100 at gmail.com> wrote:
> Hi Jan,
> Regarding the monitoring and restarting script - you can use monit:
>
> Take one of the pre-compiled binaries from
> http://mmonit.com/monit/download/
>
> Unpack it on your system, create file:
> /etc/monitrc
>
> With the following content:
>
> set daemon 60
> set logfile syslog facility log_daemon
>
> check process freeswitch with pidfile /usr/local/freeswitch/run/freeswitch.pid
> start program = "/usr/local/freeswitch/bin/freeswitch -nc"
> stop program = "/usr/local/freeswitch/bin/freeswitch -stop"
>
>
> Start monit
> /your/dir/monit/bin/monit
> and enjoy :)
>
> Also you can monitor the status from web, if you will add the following lines to the monitrc:
> set httpd port 1234
> use address your.domain.com
> allow your.ip.add.ress
> allow yourUser:yourPassword
>
> Don't forget to add start monit to the system auto start list.
> Refer to your linux doc how to do it.
>
> Regards,
> Vitalie
>
>
>
>
>
> 2010/12/14 Jan Riedinger <riedinger at sns.eu>
> We are running FreeSWITCH Version 1.0.head (git-51cc00a 2010-10-06
> 11-07-41 -0500).
>
> On the 7th December FS crashed. The last lines of the log file with full
> debug output are:
> 22c143da-728d-4477-aa06-c8383fa604f2 2010-12-07 22:52:55.339619 [DEBUG]
> sofia_glue.c:4250 Audio Codec Compare
> [G729:18:8000:20:8000]/[G729:18:8000:20:8000]
> 22c143da-728d-4477-aa06-c8383fa604f2 2010-12-07 22:52:55.339619 [DEBUG]
> sofia_glue.c:2554 Changing Codec from G729 at 30ms to G729 at 20ms
> 2010-12-07 22:52:55.339619 [INFO] mod_com_g729.c:76 ENCODER DESTROYX -
> 0x2aaacc1530b0 (nil)
> 2010-12-07 22:52:55.339619 [INFO] mod_com_g729.c:77 DECODER DESTROYX -
> 0x2aaacc1530b0 (nil)
> 2010-12-07 22:52:55.339619 [INFO] mod_com_g729.c:76 ENCODER DESTROYX -
> 0x2aaacc153130 (nil)
>
> There were some dozen concurrent calls on the system at this moment,
> thus it is possible that the crash was caused by something else than
> mod_com_g729.c.
>
> Furthermore, a 209 MB core dump file was written. Please let me know, if
> anyone wants to examine the reason for the crash in detail.
>
> Does anyone have written a script, which monitors and restart FS in such
> cases?
>
> Thank you in advance
> Jan
>
>
>
> --
> Jan Riedinger Phone : +49-30-39 73 19 66
> Dipl.-Inf. | Managing Director Fax : +49-30-39 73 19 64
> E-Mail: riedinger at sns.eu
> SNS Consult GmbH ICQ : 163-237-041
> Südwestkorso 49a MSN : jan at sns-consult.de
> 14197 Berlin GERMANY Skype : Jan Riedinger
>
> AG Charlottenburg - HRB 71973
>
>
> _______________________________________________
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20101214/c295da95/attachment.html
More information about the FreeSWITCH-users
mailing list