Hi, How can I be notified anytime a given warning message appears in Asterisk logs ? I've got a running system that produces "cause 34" warnings ("Unable to create channel of type 'Zap' (cause 34 - Circuit/channel congestion)") once or twice a week. I would like to like to be notified (by email, phone, ...) anytime such warning message occurs in log file. I was thinking of using logwatch but wondered if anything better exists. Any advice ? Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080715/e4edce65/attachment.htm
perl script. Olivier wrote:> Hi, > > How can I be notified anytime a given warning message appears in > Asterisk logs ? > > I've got a running system that produces "cause 34" warnings ("Unable > to create channel of type 'Zap' (cause 34 - Circuit/channel > congestion)") once or twice a week. > I would like to like to be notified (by email, phone, ...) anytime > such warning message occurs in log file. > > I was thinking of using logwatch but wondered if anything better exists. > Any advice ? > > Regards > ------------------------------------------------------------------------ > > _______________________________________________ > -- Bandwidth and Colocation Provided by http://www.api-digital.com -- > > AstriCon 2008 - September 22 - 25 Phoenix, Arizona > Register Now: http://www.astricon.net > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users-- Thank you and have any kind of day you want, Anthony Francis Rockynet VOIP (303) 444-7052 opt 2 voip at rockynet.com
It's probably total overkill, but nagios is a very sophisticated system monitoring tool. The learning curve is quite steep, but once there, it'll be able to monitor just about anything of concern. Paul Olivier wrote:> How can I be notified anytime a given warning message appears in > Asterisk logs ? > > I've got a running system that produces "cause 34" warnings ("Unable > to create channel of type 'Zap' (cause 34 - Circuit/channel > congestion)") once or twice a week. > I would like to like to be notified (by email, phone, ...) anytime > such warning message occurs in log file. > > I was thinking of using logwatch but wondered if anything better exists. > Any advice ?
On 7/15/08, Olivier <oza-4h07 at myamail.com> wrote:> Hi, > > How can I be notified anytime a given warning message appears in Asterisk > logs ? > > I've got a running system that produces "cause 34" warnings ("Unable to > create channel of type 'Zap' (cause 34 - Circuit/channel congestion)") once > or twice a week. > I would like to like to be notified (by email, phone, ...) anytime such > warning message occurs in log file. > > I was thinking of using logwatch but wondered if anything better exists. > Any advice ? > > Regards >syslog-ng with the proper config file and Asterisk configuration should do the trick: http://www.syslog.org/wiki/Syslog-ng/Syslog-ngWiki -- Kristian Kielhofner http://blog.krisk.org
On Tue, Jul 15, 2008 at 3:22 PM, Olivier <oza-4h07 at myamail.com> wrote:> Hi, > > How can I be notified anytime a given warning message appears in Asterisk > logs ?Oliver - This is a project I've had my eye on for a while: http://www.splunk.com I've never used it, nor have I set it up, but from reading the feature list, it looks like it's able to keep an eye on any number of log files and notify you if it sees an error. Unless they have built-in asterisk support (which I doubt), I'd bet you'd need to specify some regex rules for what constitutes an "error". Anyway - report back if you end up giving it a try. I've wanted to get it set up for several months now, but haven't been able to due to lack of "play" time in my work schedule. -Erik