I'm trying to detect when a T1 goes to Yellow or Red alarm. I noticed these events will be displayed on the CLI. What I'd like to do is cause an email to be sent when from a script on these events, but somehow I would need to capture the CLI outputs to detect messages Message are: wct4xxp: Setting yellow alarm on span 1 wct4xxp: Clearing yellow alarm on span 1 Any clues? Bart
Have you looked to see if they're being logged to /var/log/asterisk/full ?
That would be much easier to detect.
--joey
On 8/3/06, Bart Fisher <bhfisher@icpage.com>
wrote:>
> I'm trying to detect when a T1 goes to Yellow or Red alarm. I noticed
> these events will be displayed on the CLI.
> What I'd like to do is cause an email to be sent when from a script on
> these events, but somehow I would need to
> capture the CLI outputs to detect messages
>
> Message are:
> wct4xxp: Setting yellow alarm on span 1
> wct4xxp: Clearing yellow alarm on span 1
>
> Any clues?
>
> Bart
>
>
> _______________________________________________
> --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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.digium.com/pipermail/asterisk-users/attachments/20060803/4dd6b0d9/attachment.htm
Eric "ManxPower" Wieling
2006-Aug-03 20:48 UTC
[asterisk-users] Run a script at certain CLI writes
Bart Fisher wrote:> I'm trying to detect when a T1 goes to Yellow or Red alarm. I noticed > these events will be displayed on the CLI. > What I'd like to do is cause an email to be sent when from a script on > these events, but somehow I would need to > capture the CLI outputs to detect messages > > Message are: > wct4xxp: Setting yellow alarm on span 1 > wct4xxp: Clearing yellow alarm on span 1 > > Any clues?Wouldn't it be easier to just look at the /proc/zap entries. The ones with the current alarm state should be in cleartext. -- Now accepting new clients in Birmingham, Atlanta, Huntsville, Chattanooga, and Montgomery.