[asterisk-users] Asterisk and Network Monitoring

Tzafrir Cohen tzafrir.cohen at xorcom.com
Tue Sep 9 13:31:13 CDT 2008


On Tue, Sep 09, 2008 at 10:45:59AM -0400, Jay R. Ashworth wrote:
> On Tue, Sep 09, 2008 at 09:21:50AM -0500, Darrick Hartman (lists) wrote:
> > I'm using Zabbix to monitor network interfaces, storage, cpu load and a 
> > few other things on several asterisk boxes.  I'm just looking at adding 
> > Asterisk specific monitoring.  Simple things like sip registration is 
> > pretty easy.  Getting the actual status of zap-daddy hardware might be a 
> > little trickier.  When I get something together I can pass it along.
> 
> $ head -1q /proc/zaptel/*

something of the sort of:

#!/usr/bin/perl -w

use Zaptel;

for my $span (Zaptel::spans() ){
  if ($span->alarm() {
  	# PANIC!
	# DO SOMETHING!

	last;
  }
}

-- 
               Tzafrir Cohen
icq#16849755              jabber:tzafrir.cohen at xorcom.com
+972-50-7952406           mailto:tzafrir.cohen at xorcom.com
http://www.xorcom.com  iax:guest at local.xorcom.com/tzafrir



More information about the asterisk-users mailing list