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:[EMAIL PROTECTED]
+972-50-7952406           mailto:[EMAIL PROTECTED]
http://www.xorcom.com  iax:[EMAIL PROTECTED]/tzafrir

_______________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

AstriCon 2008 - September 22 - 25 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

Reply via email to