[asterisk-users] Monitoring
Hakan C
ella4ever at gmail.com
Wed Nov 19 07:17:50 CST 2008
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 <jweisman at ibell.net> 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 <ella4ever at gmail.com>
> *To:* Asterisk Users Mailing List - Non-Commercial Discussion<asterisk-users at lists.digium.com>
> *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 <jweisman at ibell.net> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20081119/0578b572/attachment.htm
More information about the asterisk-users
mailing list