Thanks! 

I'll give this a try
  ----- Original Message ----- 
  From: Hakan C 
  To: Asterisk Users Mailing List - Non-Commercial Discussion 
  Sent: Wednesday, November 19, 2008 8:17 AM
  Subject: Re: [asterisk-users] Monitoring


  Hey Jon,

  You are asking something too specific.
  If you want to monitor your PRI, its not so difficult to script.

  <?
  $checkPRI = exec("asterisk -rx 'pri show spans'");
  if (ereg('/^Down/', $checkPRI, $match) {
  echo "OMG, someone call the ambulance\r\n";
  echo $match;
  } else {
  echo "working...";
  }
  ?>

  See?
  It doesnt need write something huge.
  Hope it helps.
  Thanks.

  On Wed, Nov 19, 2008 at 2:29 PM, Jon Weisman <[EMAIL PROTECTED]> wrote:

    Thanks Hakan,

    I was kind of hoping I wouldn't have to "write" anything. Anybody else got 
something I could just use? 
      ----- Original Message ----- 
      From: Hakan C 
      To: Asterisk Users Mailing List - Non-Commercial Discussion 
      Sent: Wednesday, November 19, 2008 7:07 AM
      Subject: Re: [asterisk-users] Monitoring


      Hello Jon,

      Maybe you can think about SNMP support in Asterisk.
      Also you can develop custom applications in many languages or take a look 
to Nagios (http://www.nagios.org/)

      Try that command on your Asterisk box:
      asterisk -rx 'pri show spans', it returns PRI status.

      Good lucks


       
      On Wed, Nov 19, 2008 at 1:57 PM, Jon Weisman <[EMAIL PROTECTED]> wrote:

        Hello all -

        We are trying to implement some monitoring systems for our production
        asterisk boxes. We use whats up gold for all our other stuff. I'd like 
to be
        able to monitor the status of PRI's. For example if a PRI is in alarm, 
i'd
        like to get an e-mail notification. How are others accomplishing this?

        Thanks,
        Jon



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

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

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

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

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

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

Reply via email to