Re: [asterisk-users] Asterisk Monitoring

2009-10-19 Thread Lee Archer
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-boun...@lists.digium.com 
[mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of rea...@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  
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

 

___
-- 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

Re: [asterisk-users] Asterisk Monitoring

2009-10-18 Thread rea...@gmail.com


-- 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  
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



___
-- 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

Re: [asterisk-users] Asterisk Monitoring

2009-10-18 Thread Steve Totaro
On Sat, Oct 17, 2009 at 8:30 PM, 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.
>
>
>
> 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
___
-- 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

Re: [asterisk-users] Asterisk Monitoring

2009-10-17 Thread John A. Sullivan III
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.
> 

> 
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
jsulli...@opensourcedevel.com

http://www.spiritualoutreach.com
Making Christianity intelligible to secular society


___
-- 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


Re: [asterisk-users] Asterisk Monitoring

2009-10-17 Thread Jai Rangi
Nagios has a plugin "check_sip" that can be used for this.


-Jai



On Sat, Oct 17, 2009 at 5:30 PM, 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.
>
>
>
> 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
> 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
>
<><>___
-- 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

Re: [asterisk-users] Asterisk Monitoring

2009-10-17 Thread Jarrod Lash
We use Nagios.  It is by far the most popular system for making sure process
are running and whatnot..

www.nagios.org

-- 
Jarrod Lash, 
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 
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
> 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
>
<><>___
-- 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

Re: [asterisk-users] Asterisk Monitoring

2009-10-17 Thread Alex Balashov
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...@ip.of.your.asterisk.box

sa...@octavia:~$ sipsak -T -s sip:s...@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:

sa...@octavia:~$ sipsak -T -s sip:s...@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

___
-- 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


[asterisk-users] Asterisk Monitoring

2009-10-17 Thread Dan Journo
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

Re: [Asterisk-Users] asterisk monitoring / res_snmp [2]

2006-05-11 Thread hgaillac-sip
Is it a solution to add some code in those cards in
order to a snmp agent could get/query some
informations about the state of the cards ?

Do you know cards with snmp support ?

Harry
--- "Kevin P. Fleming" <[EMAIL PROTECTED]> a écrit
:

> [EMAIL PROTECTED] wrote:
> > Does digium provide a snmp solution to monitor
> their
> > telephony cards ?
> 
> Not at this time, no.
> ___
> --Bandwidth and Colocation provided by Easynews.com
> --
> 
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
>   
>
http://lists.digium.com/mailman/listinfo/asterisk-users
> 







___ 
Faites de Yahoo! votre page d'accueil sur le web pour retrouver directement vos 
services préférés : vérifiez vos nouveaux mails, lancez vos recherches et 
suivez l'actualité en temps réel. 
Rendez-vous sur http://fr.yahoo.com/set
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] asterisk monitoring / res_snmp [2]

2006-05-11 Thread Kevin P. Fleming
[EMAIL PROTECTED] wrote:
> Does digium provide a snmp solution to monitor their
> telephony cards ?

Not at this time, no.
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] asterisk monitoring / res_snmp [2]

2006-05-11 Thread hgaillac-sip
Does digium provide a snmp solution to monitor their
telephony cards ?

Harry
--- [EMAIL PROTECTED] a écrit :

> Hello,
> 
> I 've installed both cacti and res_snmp for
> monitoring.
> Does res_snmp is able to send snmp traps when
> hardware
> is out of service or others status ?
> 
> Harry
> 
> 
> 
> 
>   
> 
>   
>   
>
___
> 
> Faites de Yahoo! votre page d'accueil sur le web
> pour retrouver directement vos services préférés :
> vérifiez vos nouveaux mails, lancez vos recherches
> et suivez l'actualité en temps réel. 
> Rendez-vous sur http://fr.yahoo.com/set
> ___
> --Bandwidth and Colocation provided by Easynews.com
> --
> 
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
>   
>
http://lists.digium.com/mailman/listinfo/asterisk-users
> 






___ 
Faites de Yahoo! votre page d'accueil sur le web pour retrouver directement vos 
services préférés : vérifiez vos nouveaux mails, lancez vos recherches et 
suivez l'actualité en temps réel. 
Rendezvous sur http://fr.yahoo.com/set
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] asterisk monitoring / res_snmp

2006-05-10 Thread hgaillac-sip
Hello,

I 've installed both cacti and res_snmp for
monitoring.
Does res_snmp is able to send snmp traps when hardware
is out of service or others status ?

Harry








___ 
Faites de Yahoo! votre page d'accueil sur le web pour retrouver directement vos 
services préférés : vérifiez vos nouveaux mails, lancez vos recherches et 
suivez l'actualité en temps réel. 
Rendez-vous sur http://fr.yahoo.com/set
___
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] Asterisk monitoring availability

2005-09-19 Thread Sherwood McGowan



I personally use Zabbix, and custom scripts that call 
asterisk -rx or the manager API and return numeric digits. For instance, I use 
"asterisk -rx 'sip show peers' | grep --text -i 'OK' | wc -l" to show me how 
many users are connected at once, and test for no data return after 60 seconds 
for deadlock catching. (Asterisk does not always play nice and return the data 
you expect). 
 
Another example: "asterisk -rx 'show channels' | grep 
--text -i 'active call' | awk '{print $1}' " (if I remember correctly) gives me 
my number of active calls. 
 
Hope this was somewhat helpful.

  
  
  From: [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED] On Behalf Of Sig 
  LangeSent: Monday, September 19, 2005 2:58 PMTo: 
  Asterisk Users Mailing List - Non-Commercial DiscussionSubject: 
  [Asterisk-Users] Asterisk monitoring availability
  I'm attempting to implement an acceptable asterisk monitoring 
  program. One method is with a simple program i've written (Adapted from the 
  perl one in the wiki).One problem with this solution is the timeout I 
  expect a packet response. Currently it's set to 1 second, and I still 
  sometimes miss an IAX ping response. Which throws false alarms to my other 
  programs, SMS's, etc. What have others done to monitor asterisks 
  availability?Thanks-- Sig Langehttp://www.signuts.net/ 

___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

[Asterisk-Users] Asterisk monitoring availability

2005-09-19 Thread Sig Lange
I'm attempting to implement an acceptable asterisk monitoring program.
One method is with a simple program i've written (Adapted from the perl
one in the wiki).

One problem with this solution is the timeout I expect a packet
response. Currently it's set to 1 second, and I still sometimes miss an
IAX ping response. Which throws false alarms to my other programs,
SMS's, etc. What have others done to monitor asterisks availability?

Thanks
-- Sig Langehttp://www.signuts.net/
#include 
#include 
#include 
#include 
#include 
#include 


int udpping(char *host, int port, int timeout_sec, int timeout_usec) {
	int rc = 0;
	int r, s;
	char  msg[1024];
   struct hostent *hp;
	struct sockaddr_in destaddr;

	fd_set rfds;
   struct timeval timeout;
   struct hostent *hostname;

	s = socket(PF_INET, SOCK_DGRAM, 17);

	memset(&destaddr, 0, sizeof(destaddr));

	destaddr.sin_port = htons(port);

   // destaddr.sin_addr.s_addr = inet_addr(host);
   //
  
   hostname = gethostbyname(host);

   destaddr.sin_addr.s_addr = ((struct in_addr *)(hostname->h_addr))->s_addr;

	// 80 00 00 0000 00 00 00 00 00 06 1e
	strcpy(msg, "\x80\x00\x00\x00\x00\x00\x00\x00\x00\x00\x06\x1e");

	timeout.tv_sec = timeout_sec;
	timeout.tv_usec = timeout_usec;

	FD_ZERO(&rfds);
	FD_SET(s, &rfds);

	sendto(s, msg, 12, MSG_NOSIGNAL, (struct sockaddr *) &destaddr, sizeof(destaddr) );

	r = select(s + 1, &rfds, NULL, NULL, &timeout);

	if (r) {
		r = recv(s, msg, 1024, 0);
		if (r) rc = 1;
	}

	return rc;
}
int main(int argc, char **argv) {
	int r;

   if (argc < 2) {
  printf("Usage: %s \n", argv[0]);
  exit(100);
   }

	r = udpping(argv[1], 4569, 1, 0);

   r = ! r;

	exit(r);
}
___
--Bandwidth and Colocation sponsored by Easynews.com --

Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Re: [Asterisk-Users] Asterisk monitoring with Nagios and IAX

2005-01-19 Thread Rich Adamson
> > an application available called iaxping with would send a set of well
> > formed iax packets and wait for the response.  Unfortunately that
> > application was written in visual basic, and no source code was
> > distributed.  A skilled coder could probably use some of the required
> > functions from iaxclient or libiax2 and create a similar function in C.
> 
> I've googled around and tried a few things. The ideal solution would 
> involve no library dependencies to make maintenance easier.
> 
> The specific problem I have is that I don't know what a IAX packet 
> contains which elicits a measurable response from Asterisk. I have 
> looked at the sources but it's very convoluted and the last time I 
> touched any C was 7 years ago...
> 
> So if there was a way to "synthesize" this IAX PING or POKE packet it 
> shouldn't be hard to just package that into a script that handles the 
> connection establishment, sends it, and listens for a response.

Use ethereal to sniff an iax link and you'll see the pkt construction
if rather simple.


___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Asterisk monitoring with Nagios and IAX

2005-01-18 Thread Jens Vagelpohl
an application available called iaxping with would send a set of well
formed iax packets and wait for the response.  Unfortunately that
application was written in visual basic, and no source code was
distributed.  A skilled coder could probably use some of the required
functions from iaxclient or libiax2 and create a similar function in C.
I've googled around and tried a few things. The ideal solution would 
involve no library dependencies to make maintenance easier.

The specific problem I have is that I don't know what a IAX packet 
contains which elicits a measurable response from Asterisk. I have 
looked at the sources but it's very convoluted and the last time I 
touched any C was 7 years ago...

So if there was a way to "synthesize" this IAX PING or POKE packet it 
shouldn't be hard to just package that into a script that handles the 
connection establishment, sends it, and listens for a response.

jens
---
Jens Vagelpohl  [EMAIL PROTECTED]
Software Engineer   +49-(0)441-36 18 14 38
Zetwork GmbHhttp://www.zetwork.com/
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Asterisk monitoring with Nagios and IAX

2005-01-18 Thread Roy Sigurd Karlsbakk
Does anyone have a lead on a Nagios plugin that speaks IAX or a small 
app to do so? I'm trying to set up remote monitoring for my Asterisk 
server and only IAX2 traffic is allowed through the firewall. Simply 
using check_udp to port 4569 yields no usable answer and Asterisk 
complains about receiving a midget packet or something like that :)
I wrote a nagios plugin that probes asterisk with the manager interface.
Shouldn't be too hard to check by IAX2 or SIP neither, given libraries 
to do so

roy
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users


Re: [Asterisk-Users] Asterisk monitoring with Nagios and IAX

2005-01-18 Thread Brian Roy
On Tue, 18 Jan 2005 14:07:08 +0100, Jens Vagelpohl <[EMAIL PROTECTED]> wrote:
> Hi *,
> 
> Does anyone have a lead on a Nagios plugin that speaks IAX or a small
> app to do so? I'm trying to set up remote monitoring for my Asterisk
> server and only IAX2 traffic is allowed through the firewall. 

I don't believe it has been done yet. There is a small Nagios plugin
out there but it doesn't do much. We have a very large Nagios
installation and I have been struggling to find time to write some
Asterisk plugins. I would be interested in helping out (though my IAX
knowledge is limited). Also, RoyK on IRC is very involved in the
Nagios and Asterisk communities. I'm sure he could be a resource.

-Chuji
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


RE: [Asterisk-Users] Asterisk monitoring with Nagios and IAX

2005-01-18 Thread Robert Jackson


> -Original Message-
> From: Jens Vagelpohl [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, January 18, 2005 8:07 AM
> To: Asterisk Non-Commercial Discussion Users Mailing List -
> Subject: [Asterisk-Users] Asterisk monitoring with Nagios and IAX
> 
> 
> Hi *,
> 
> Does anyone have a lead on a Nagios plugin that speaks IAX or a small 
> app to do so? I'm trying to set up remote monitoring for my Asterisk 
> server and only IAX2 traffic is allowed through the firewall. Simply 
> using check_udp to port 4569 yields no usable answer and Asterisk 
> complains about receiving a midget packet or something like that :)
> 
> jens
> 
I am also very interested in this functionality.  At one point there was

an application available called iaxping with would send a set of well 
formed iax packets and wait for the response.  Unfortunately that 
application was written in visual basic, and no source code was 
distributed.  A skilled coder could probably use some of the required 
functions from iaxclient or libiax2 and create a similar function in C.


I think this could be a very important feature for failover, and would 
love to see a function created to do this.

Please let us know what you find or end up doing.

Robert Jackson
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[Asterisk-Users] Asterisk monitoring with Nagios and IAX

2005-01-18 Thread Jens Vagelpohl
Hi *,
Does anyone have a lead on a Nagios plugin that speaks IAX or a small 
app to do so? I'm trying to set up remote monitoring for my Asterisk 
server and only IAX2 traffic is allowed through the firewall. Simply 
using check_udp to port 4569 yields no usable answer and Asterisk 
complains about receiving a midget packet or something like that :)

jens
___
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users