[asterisk-users] Run a script at certain CLI writes

2006-08-03 Thread Bart Fisher
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:

Re: [asterisk-users] Run a script at certain CLI writes

2006-08-03 Thread Joey McDonald
Have you looked to see if they're being logged to /var/log/asterisk/full ? That would be much easier to detect. --joeyOn 8/3/06, Bart Fisher [EMAIL PROTECTED] 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

Re: [asterisk-users] Run a script at certain CLI writes

2006-08-03 Thread Bart Fisher
Oh, good idea - the messages do appear there - I'll check it out Thanks Joey McDonald wrote: 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* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

Re: [asterisk-users] Run a script at certain CLI writes

2006-08-03 Thread Nick Hoffman
Joey McDonald wrote: Have you looked to see if they're being logged to /var/log/asterisk/full ? That would be much easier to detect. --joey Hi Joey. What is /var/log/asterisk/full ? I've never heard of it, and don't see it in my /var/log/asterisk/ . Cheers, -- Nick e: [EMAIL

Re: [asterisk-users] Run a script at certain CLI writes

2006-08-03 Thread Bruce Reeves
Check you logger.conf file, it will show types of messages going to full and full is probably commented out. Remove the ; and type logger reload from the CLI.On 8/3/06, Nick Hoffman [EMAIL PROTECTED] wrote: Joey McDonald wrote: Have you looked to see if they're being logged to

Re: [asterisk-users] Run a script at certain CLI writes

2006-08-03 Thread Eric \ManxPower\ Wieling
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

Re: [asterisk-users] Run a script at certain CLI writes

2006-08-03 Thread Eric \ManxPower\ Wieling
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