Eric "ManxPower" Wieling wrote:
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.
Span in ALARM:
[EMAIL PROTECTED] zaptel]# cat /proc/zaptel/2
Span 2: TE2/0/2 "T2XXP (PCI) Card 0 Span 2" B8ZS/ESF RED
25 TE2/0/2/1 FXSKS
26 TE2/0/2/2 FXSKS
27 TE2/0/2/3 FXSKS
28 TE2/0/2/4 FXSKS
29 TE2/0/2/5 FXSKS
30 TE2/0/2/6 FXSKS
31 TE2/0/2/7 FXSKS
32 TE2/0/2/8 FXSKS
33 TE2/0/2/9 FXSKS
34 TE2/0/2/10 FXSKS
35 TE2/0/2/11 FXSKS
36 TE2/0/2/12 FXSKS
37 TE2/0/2/13 E&M
38 TE2/0/2/14 E&M
39 TE2/0/2/15 E&M
40 TE2/0/2/16 E&M
41 TE2/0/2/17
42 TE2/0/2/18
43 TE2/0/2/19
44 TE2/0/2/20
45 TE2/0/2/21
46 TE2/0/2/22
47 TE2/0/2/23
48 TE2/0/2/24
Span NOT in Alarm:
[EMAIL PROTECTED] zaptel]# cat /proc/zaptel/1
Span 1: TE2/0/1 "T2XXP (PCI) Card 0 Span 1" B8ZS/ESF ClockSource
1 TE2/0/1/1 Clear (In use)
2 TE2/0/1/2 Clear (In use)
3 TE2/0/1/3 Clear (In use)
4 TE2/0/1/4 Clear (In use)
5 TE2/0/1/5 Clear (In use)
6 TE2/0/1/6 Clear (In use)
7 TE2/0/1/7 Clear (In use)
8 TE2/0/1/8 Clear (In use)
9 TE2/0/1/9 Clear (In use)
10 TE2/0/1/10 Clear (In use)
11 TE2/0/1/11 Clear (In use)
12 TE2/0/1/12 Clear (In use)
13 TE2/0/1/13 Clear (In use)
14 TE2/0/1/14 Clear (In use)
15 TE2/0/1/15 Clear (In use)
16 TE2/0/1/16 Clear (In use)
17 TE2/0/1/17 Clear (In use)
18 TE2/0/1/18 Clear (In use)
19 TE2/0/1/19 Clear (In use)
20 TE2/0/1/20 Clear (In use)
21 TE2/0/1/21 Clear (In use)
22 TE2/0/1/22 Clear (In use)
23 TE2/0/1/23 Clear (In use)
24 TE2/0/1/24 HDLCFCS (In use)
--
Now accepting new clients in Birmingham, Atlanta, Huntsville,
Chattanooga, and Montgomery.
_______________________________________________
--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