I have a working installation of asterisk v1.6.2.13 with dahdi-linux-2.4.0-69, and it doesn’t seem to be logging properly. There is nothing in /var/log/asterisk/messages except for lines like this:
[Feb 9 19:05:39] ERROR[6877] utils.c: write() returned error: Broken pipe
They just repeat like that, sometimes two or three per second, and sometimes not for almost an hour between them.
These lines are the only information in that file. How can I have it record who has called, and other general on-going status information?
How can I figure out what is causing the ERROR above?
Does anyone have any ideas of how I can troubleshoot this? I’m concerned that it may somehow be configured because of the fwrite() error messages in the logs. How can I figure out how those errors are being produced?
That error message is produced by ast_carefulwrite(). It means that a network (or pipe) write failed because the other side has gone away. This routine is used in the following places:
To decide whether it is related to CLI, or AGI, you need to either take account of knowledge of how Asterisk was being used at the time, or, as I already said, set a breakpoint and get a backtrace. AMI can result in a similar message, but it will say fwrite, rather than write.
It is conceivable that some versions of Asterisk use write from manager.
I notice your subject says fwrite, but the actual error message is write. As noted above, both can produce similar messages, but from slightly different parts of Asterisk.