Dan Journo wrote:> Hello, > > I was wondering if anyone has any insights on the best way to > automatically monitor an asterisk box to check it is constantly > available and processing calls.Depends on which signaling technology is in use. I'll assume SIP here. Checking whether it's processing calls (especially in some sort of subjective way) can be a bit hard. But checking if the SIP interface on it is responsive is quite easy; just install a tool called SIP Swiss Army Knife ('sipsak'): sipsak -T -s sip:s at ip.of.your.asterisk.box sasha at octavia:~$ sipsak -T -s sip:s at 10.250.10.1 warning: IP extract from warning activated to be more informational 0: ?? (70.357 ms) SIP/2.0 404 Not Found without Contact header Conversely, if it were down: sasha at octavia:~$ sipsak -T -s sip:s at 10.250.10.6 warning: IP extract from warning activated to be more informational send failure: Connection refused Or it would just time out. This command returns a value which can be captured by a shell script, and so it is possible to build it into something like a Nagios plugin, for example. -- Alex Balashov - Principal Evariste Systems Web : http://www.evaristesys.com/ Tel : (+1) (678) 954-0670 Direct : (+1) (678) 954-0671
Hello, I was wondering if anyone has any insights on the best way to automatically monitor an asterisk box to check it is constantly available and processing calls. Many thanks Dan ________________________________ IT Maintenance Contract Clients can now access our Instant Chat Service to receive immediate remote IT support. Click the chat link below for support. For more information on receiving IT support from ?150 per month, please contact Kesher Communications. ________________________________ Dan Journo IT Business Consultant Kesher Communications Ltd Tel: 07957 233 599 Web: http://www.KesherCommunications.com <http://www.keshercommunications.com/> Live Chat/Instant Support: Click Here <http://eu.ntrsupport.com/inquiero/web/digisign/digisign.asp?login=I23E7F508C6B61A91700343&lang=en&surpre=PreSurvey> This email and any files transmitted with it are confidential and intended solely for the recipient(s). If you are not the named addressee you should not disseminate, copy or alter this email. Under no circumstances may this email be distributed without written permission from the sender. Warning: Although the Company has taken reasonable precautions to ensure no viruses are present in this email, the company cannot accept responsibility for any loss or damage arising from the use of this email or attachments. All prices exclude VAT unless otherwise stated. No responsibility is taken for any recommendations made by a sender or by Kesher Communications Ltd. Recipient(s) takes responsibility for any actions taken as a result of advice and recommendations given by Kesher Communications Ltd. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091018/9fbbf4cf/attachment.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 1042 bytes Desc: image001.jpg Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20091018/9fbbf4cf/attachment.jpeg -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 8121 bytes Desc: image002.gif Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20091018/9fbbf4cf/attachment.gif
We use Nagios. It is by far the most popular system for making sure process are running and whatnot.. www.nagios.org -- Jarrod Lash, <jarrod at fed-com.com> Federated Communications Office: +1-412-357-2127 Mobile: +1-412-999-0049 Fax: +1-412-545-8368 On Sat, Oct 17, 2009 at 8:30 PM, Dan Journo <dan at keshercommunications.com>wrote:> Hello, > > > > I was wondering if anyone has any insights on the best way to automatically > monitor an asterisk box to check it is constantly available and processing > calls. > > > > Many thanks > > Dan > > > ------------------------------ > > [image: See original image] > > *IT Maintenance Contract Clients can now access our Instant Chat Service > to receive immediate remote IT support. Click the chat link below for > support. > *For more information on receiving IT support from ?150 per month, please > contact Kesher Communications. > ------------------------------ > > [image: sig] > > > > *Dan Journo > **IT Business Consultant* > Kesher Communications Ltd > > Tel: 07957 233 599 > Web: http://www.KesherCommunications.com<http://www.keshercommunications.com/> > Live Chat/Instant Support: Click Here<http://eu.ntrsupport.com/inquiero/web/digisign/digisign.asp?login=I23E7F508C6B61A91700343&lang=en&surpre=PreSurvey> > > This email and any files transmitted with it are confidential and intended > solely for the recipient(s). If you are not the named addressee you should > not disseminate, copy or alter this email. Under no circumstances may this > email be distributed without written permission from the sender. Warning: > Although the Company has taken reasonable precautions to ensure no viruses > are present in this email, the company cannot accept responsibility for any > loss or damage arising from the use of this email or attachments. All prices > exclude VAT unless otherwise stated. No responsibility is taken for any > recommendations made by a sender or by Kesher Communications Ltd. > Recipient(s) takes responsibility for any actions taken as a result of > advice and recommendations given by Kesher Communications Ltd. > > > > > > > > > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > AstriCon 2009 - October 13 - 15 Phoenix, Arizona > Register Now: http://www.astricon.net > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091017/1ed794fa/attachment.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 8121 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20091017/1ed794fa/attachment.gif -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 1042 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20091017/1ed794fa/attachment.jpeg
Nagios has a plugin "check_sip" that can be used for this. -Jai On Sat, Oct 17, 2009 at 5:30 PM, Dan Journo <dan at keshercommunications.com>wrote:> Hello, > > > > I was wondering if anyone has any insights on the best way to automatically > monitor an asterisk box to check it is constantly available and processing > calls. > > > > Many thanks > > Dan > > > ------------------------------ > > [image: See original image] > > *IT Maintenance Contract Clients can now access our Instant Chat Service > to receive immediate remote IT support. Click the chat link below for > support. > *For more information on receiving IT support from ?150 per month, please > contact Kesher Communications. > ------------------------------ > > [image: sig] > > > > *Dan Journo > **IT Business Consultant* > Kesher Communications Ltd > > Tel: 07957 233 599 > Web: http://www.KesherCommunications.com<http://www.keshercommunications.com/> > Live Chat/Instant Support: Click Here<http://eu.ntrsupport.com/inquiero/web/digisign/digisign.asp?login=I23E7F508C6B61A91700343&lang=en&surpre=PreSurvey> > > This email and any files transmitted with it are confidential and intended > solely for the recipient(s). If you are not the named addressee you should > not disseminate, copy or alter this email. Under no circumstances may this > email be distributed without written permission from the sender. Warning: > Although the Company has taken reasonable precautions to ensure no viruses > are present in this email, the company cannot accept responsibility for any > loss or damage arising from the use of this email or attachments. All prices > exclude VAT unless otherwise stated. No responsibility is taken for any > recommendations made by a sender or by Kesher Communications Ltd. > Recipient(s) takes responsibility for any actions taken as a result of > advice and recommendations given by Kesher Communications Ltd. > > > > > > > > > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > AstriCon 2009 - October 13 - 15 Phoenix, Arizona > Register Now: http://www.astricon.net > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091017/6f04f6be/attachment.htm -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 8121 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20091017/6f04f6be/attachment.gif -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 1042 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20091017/6f04f6be/attachment.jpeg
On Sun, 2009-10-18 at 01:30 +0100, Dan Journo wrote:> Hello, > > > > I was wondering if anyone has any insights on the best way to > automatically monitor an asterisk box to check it is constantly > available and processing calls. ><snip>>It depends on how deep and far you want to go. As already mentioned, Nagios will do a nice job of letting you know SIP is responding and is an all around excellent product. Despite our familiarity with Nagios, we've been taking the plunge into OpenNMS. It is much, much, much more difficult to set up for Asterisk monitoring and is an enormous product. On the other hand, it gives you access into the entire Asterisk SNMP MIB, does an outstanding job of collecting and presenting statistics for all channels (not just SIP - Nagios could theoretically expose the entire MIB but I don't know that anyone has written such a plugin and doing it via the SNMP plugin alone would be difficult at best). We were very keen to track much more data than Nagios gave us in order to tweak, troubleshoot, and diagnose our services. Hence the investment in learning OpenNMS. Once you get past the huge learning curve of OpenNMS, it is a remarkably powerful product. There was a flurry of queries regarding the specifics of setting up Asterisk monitoring on the OpenNMS mailing list just a couple of days ago and another string on monitoring SIP a couple of weeks ago. Hope this helps - John -- John A. Sullivan III Open Source Development Corporation +1 207-985-7880 jsullivan at opensourcedevel.com http://www.spiritualoutreach.com Making Christianity intelligible to secular society
On Sat, Oct 17, 2009 at 8:30 PM, Dan Journo <dan at keshercommunications.com>wrote:> Hello, > > > > I was wondering if anyone has any insights on the best way to automatically > monitor an asterisk box to check it is constantly available and processing > calls. > > > > Many thanks > > Dan > > >I just telnet from a "monitor box" to the AMI and issue a number of show commands to gather info such as how many sip, iax2, zap, etc, calls and use RRD for history and graphs. Argus is pretty good too. Thanks, Steve T -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091018/22fc76ed/attachment.htm
-- Sent from my Palm Unknown Jai Rangi wrote: Nagios has a plugin "check_sip" that can be used for this. -Jai On Sat, Oct 17, 2009 at 5:30 PM, Dan Journo <dan at keshercommunications.com> wrote: Hello, ? I was wondering if anyone has any insights on the best way to automatically monitor an asterisk box to check it is constantly available and processing calls. ? Many thanks Dan ? IT Maintenance Contract Clients can now access our Instant Chat Service to receive immediate remote IT support. Click the chat link below for support. For more information on receiving IT support from ?150 per month, please contact Kesher Communications. ? Dan Journo IT Business Consultant Kesher Communications Ltd Tel: 07957 233 599 Web: http://www.KesherCommunications.com Live Chat/Instant Support: Click Here This email and any files transmitted with it are confidential and intended solely for the recipient(s). If you are not the named addressee you should not disseminate, copy or alter this email. Under no circumstances may this email be distributed without written permission from the sender. Warning: Although the Company has taken reasonable precautions to ensure no viruses are present in this email, the company cannot accept responsibility for any loss or damage arising from the use of this email or attachments. All prices exclude VAT unless otherwise stated. No responsibility is taken for any recommendations made by a sender or by Kesher Communications Ltd. Recipient(s) takes responsibility for any actions taken as a result of advice and recommendations given by Kesher Communications Ltd. ? ? ? ? _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2009 - October 13 - 15 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: ? http://lists.digium.com/mailman/listinfo/asterisk-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091018/d4952320/attachment.htm
Zenoss has something that hits the manager port. I run Asterisk 1.4 boxes and are using SNMP to monitor. Asterisk 1.6 has a couple of extra SNMP OID?s that show the number of calls processed. It?s a shame 1.4 doesn?t have this OID as it could be really useful. Regards Lee From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of realmj at gmail.com Sent: 18 October 2009 17:39 To: Asterisk Users Mailing List - Non-Commercial Discussion; abc005 Subject: Re: [asterisk-users] Asterisk Monitoring -- Sent from my Palm Unknown ________________________________ Jai Rangi wrote: Nagios has a plugin "check_sip" that can be used for this. -Jai On Sat, Oct 17, 2009 at 5:30 PM, Dan Journo <dan at keshercommunications.com> wrote: Hello, I was wondering if anyone has any insights on the best way to automatically monitor an asterisk box to check it is constantly available and processing calls. Many thanks Dan ________________________________ See original image IT Maintenance Contract Clients can now access our Instant Chat Service to receive immediate remote IT support. Click the chat link below for support. For more information on receiving IT support from ?150 per month, please contact Kesher Communications. ________________________________ sig Dan Journo IT Business Consultant Kesher Communications Ltd Tel: 07957 233 599 Web: http://www.KesherCommunications.com <http://www.keshercommunications.com/> Live Chat/Instant Support: Click Here <http://eu.ntrsupport.com/inquiero/web/digisign/digisign.asp?login=I23E7F508C6B61A91700343&lang=en&surpre=PreSurvey> This email and any files transmitted with it are confidential and intended solely for the recipient(s). If you are not the named addressee you should not disseminate, copy or alter this email. Under no circumstances may this email be distributed without written permission from the sender. Warning: Although the Company has taken reasonable precautions to ensure no viruses are present in this email, the company cannot accept responsibility for any loss or damage arising from the use of this email or attachments. All prices exclude VAT unless otherwise stated. No responsibility is taken for any recommendations made by a sender or by Kesher Communications Ltd. Recipient(s) takes responsibility for any actions taken as a result of advice and recommendations given by Kesher Communications Ltd. _______________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- AstriCon 2009 - October 13 - 15 Phoenix, Arizona Register Now: http://www.astricon.net asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20091019/a9a2225c/attachment.htm