check to see if freeswitch is alive
hello we have the problem here that our freeswitch server "freezes" from time to time (no sip traffic is possible any more). has somebody here expirience or any idea how to monitor freeswitch to answer the questions - is the server alive - does he process sip messages (invites, registrations) and so on the monitoring should work via cron local and remote (with esl for example) a simple "fs_cli -x 'version'" wouldn't work - it's too simple, am i right? any ideas would be helpful br -- Ing. Christian Löschenkohl Technische Leitung, Forschung & Entwicklung VoIP xpirio Telekommunikation & Service GmbH Lakeside B04 9020 Klagenfurt Austria T +43 (0) 5 77 11 - 1000 F +43 (0) 5 77 11 - 1002 E christian.loeschenkohl@xpirio.com
Hi Christian, You can subscribe and monitor the heartbeat event either locally or remotely: http://wiki.freeswitch.org/wiki/Perl_freeswitch_client_example You could also send an application level SIP packet, like a ping, to Freeswitch externally. I have a small script if you can't find one. More importantly, while monitoring is good, its probably worth investigating the root cause of the freezes since thats not normal. Rob On Oct 19, 2009, at 11:07 AM, Christian Löschenkohl wrote:
hello
we have the problem here that our freeswitch server "freezes" from time to time (no sip traffic is possible any more).
has somebody here expirience or any idea how to monitor freeswitch to answer the questions
- is the server alive - does he process sip messages (invites, registrations) and so on
the monitoring should work via cron local and remote (with esl for example)
a simple "fs_cli -x 'version'" wouldn't work - it's too simple, am i right?
any ideas would be helpful
br
-- Ing. Christian Löschenkohl Technische Leitung, Forschung & Entwicklung VoIP
xpirio Telekommunikation & Service GmbH Lakeside B04 9020 Klagenfurt Austria
T +43 (0) 5 77 11 - 1000 F +43 (0) 5 77 11 - 1002 E christian.loeschenkohl@xpirio.com
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Woof! On Mon, 19 Oct 2009 12:07:10 -0400, Christian Löschenkohl <christian.loeschenkohl@xpirio.com> wrote:
any ideas would be helpful
We run a perl script that checks if the servers are responding to requests. It can send OPTIONS, and PING requests to various servers periodically. If the response it gets back isn't correct, it can send e-mail. It'll keep testing and send an e-mail again when the system is working again. It's defaults setup for testing sipXecs servers, but it's easy enough to set the various command line arguments to point it at FreeSWITCH directly. Code here. http://code.sipfoundry.org/browse/~raw,r=14874/sipXecs/main/sipXtools/src/si... --Woof!
thank you for the script, we will try this asap br On 2009-10-19 18:28, Andy Spitzer wrote:
Woof!
On Mon, 19 Oct 2009 12:07:10 -0400, Christian Löschenkohl <christian.loeschenkohl@xpirio.com> wrote:
any ideas would be helpful
We run a perl script that checks if the servers are responding to requests. It can send OPTIONS, and PING requests to various servers periodically. If the response it gets back isn't correct, it can send e-mail. It'll keep testing and send an e-mail again when the system is working again. It's defaults setup for testing sipXecs servers, but it's easy enough to set the various command line arguments to point it at FreeSWITCH directly.
Code here. http://code.sipfoundry.org/browse/~raw,r=14874/sipXecs/main/sipXtools/src/si...
--Woof!
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Ing. Christian Löschenkohl Technische Leitung, Forschung & Entwicklung VoIP xpirio Telekommunikation & Service GmbH Lakeside B04 9020 Klagenfurt Austria T +43 (0) 5 77 11 - 1000 F +43 (0) 5 77 11 - 1002 E christian.loeschenkohl@xpirio.com
2009/10/19 Christian Löschenkohl <christian.loeschenkohl@xpirio.com>
hello
we have the problem here that our freeswitch server "freezes" from time to time (no sip traffic is possible any more).
Monitoring is definitely important, but I'm sure the FS devs would like to know more about what happens when FS "freezes" - is it FS or some other process that is messing things up? If there's an issue with FS then the developers would like to know more. -MC
There's a check_sip plugin for nagios if you're into that sorta thing On October 19, 2009 12:39:53 pm Michael Collins wrote:
2009/10/19 Christian Löschenkohl <christian.loeschenkohl@xpirio.com>
hello
we have the problem here that our freeswitch server "freezes" from time to time (no sip traffic is possible any more).
Monitoring is definitely important, but I'm sure the FS devs would like to know more about what happens when FS "freezes" - is it FS or some other process that is messing things up? If there's an issue with FS then the developers would like to know more. -MC
i know, we tried to to get closer to this with anthony (see thread "stability problems", started on 03.09.2009). the old issue described a server that used more profiles (8-10) and some event socket scripts. we came to the conclusion that it could be a race condition when using multiple profiles. now on the server we need monitor we use only internal functions and conditions - no external scripts - no database - only on profile - only freeswitch stock functions the symptoms are the same - no more progress displays on the fs_cli console (debug level info) - invites are answered with trying, but no more communication after this - customers said that option requests are answered (they could not switch to fallback because this worked) we did use the trunk version and have now updated to 15162, but i don't think our problem is solved with any update so far. br On 2009-10-19 18:39, Michael Collins wrote:
2009/10/19 Christian Löschenkohl <christian.loeschenkohl@xpirio.com <mailto:christian.loeschenkohl@xpirio.com>>
hello
we have the problem here that our freeswitch server "freezes" from time to time (no sip traffic is possible any more).
Monitoring is definitely important, but I'm sure the FS devs would like to know more about what happens when FS "freezes" - is it FS or some other process that is messing things up? If there's an issue with FS then the developers would like to know more. -MC
------------------------------------------------------------------------
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Ing. Christian Löschenkohl Technische Leitung, Forschung & Entwicklung VoIP xpirio Telekommunikation & Service GmbH Lakeside B04 9020 Klagenfurt Austria T +43 (0) 5 77 11 - 1000 F +43 (0) 5 77 11 - 1002 E christian.loeschenkohl@xpirio.com
do you have a jira ticket open for this? The mailing list is not a good place to ask for bugs to be fixed because I can't possibly scour them for responses. If you can update to latest trunk and still reproduce this problem: make sure gdb and gcore is installed on your box from the FS build root enter ./support-d/fscore_pb gcore and submit the url it generates to me 2009/10/19 Christian Löschenkohl <christian.loeschenkohl@xpirio.com>
i know, we tried to to get closer to this with anthony (see thread "stability problems", started on 03.09.2009). the old issue described a server that used more profiles (8-10) and some event socket scripts. we came to the conclusion that it could be a race condition when using multiple profiles.
now on the server we need monitor we use only internal functions and conditions - no external scripts - no database - only on profile - only freeswitch stock functions
the symptoms are the same - no more progress displays on the fs_cli console (debug level info) - invites are answered with trying, but no more communication after this - customers said that option requests are answered (they could not switch to fallback because this worked)
we did use the trunk version and have now updated to 15162, but i don't think our problem is solved with any update so far.
br
On 2009-10-19 18:39, Michael Collins wrote:
2009/10/19 Christian Löschenkohl <christian.loeschenkohl@xpirio.com <mailto:christian.loeschenkohl@xpirio.com>>
hello
we have the problem here that our freeswitch server "freezes" from
time
to time (no sip traffic is possible any more).
Monitoring is definitely important, but I'm sure the FS devs would like to know more about what happens when FS "freezes" - is it FS or some other process that is messing things up? If there's an issue with FS then the developers would like to know more. -MC
------------------------------------------------------------------------
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Ing. Christian Löschenkohl Technische Leitung, Forschung & Entwicklung VoIP
xpirio Telekommunikation & Service GmbH Lakeside B04 9020 Klagenfurt Austria
T +43 (0) 5 77 11 - 1000 F +43 (0) 5 77 11 - 1002 E christian.loeschenkohl@xpirio.com
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
participants (6)
-
Andy Spitzer
-
Anthony Minessale
-
Chris Burns
-
Christian Löschenkohl
-
Michael Collins
-
Rob Forman