[Asterisk-Dev] RE: How to use PHP to monitor manager output

Obelix asterisklists at adontendev.net
Mon Jul 25 06:45:10 MST 2005


> Why duplicate the work of the logger, then?

> send the events to a specific log. And watch that log.

I examined the content on the logger, and saw that most of the events that show
up in the manager api don't show in the asterisk.log - I take it you are
referring to the file named event_log. I guess it can't be the file named
messages, that contains way too much stuff.

Is there a way to specify what events go into event_log? Mine only contains
login and logoff events.

Thanks

/Obelix


= The problem is I need to log the time the events happen, and the late arrival
= in
= PHP makes that difficult. Another thing with the manager api is it does not
= indicate the exact time the events occurred.


> Something in the lines of:
>
>   tail -f log_file | your_custom_filter

> This way you can afford waiting a bit more, as you already have a
> time-stamp. And thus you don't need to compete for immediate CPU access
> with Asterisk itself.

> --
> Tzafrir Cohen     icq#16849755  +972-50-7952406
> tzafrir.cohen at xorcom.com  http://www.xorcom.com


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.




More information about the asterisk-dev mailing list