Freepbx update to 2.4.0 now sending email of my asterisk logs

RonV
Posts: 19
Member Since:
2007-05-31

I did the update to Freepbx 2.4.0 and it went in like a champ. But now for some reason I am getting email messages from root with the following files attached everyday. Any idea what process or CRON job that may be sending these?

/var/log/asterisk/freepbx-bounce_op.log.33
/var/log/asterisk/queue_log.33
/var/log/asterisk/event_log.33
/var/log/asterisk/full.33

What seems to be happening that the current log is getting renamed to the last file number and then mailed and then deleted.

Thanks....



akula169
Posts: 2
Member Since:
2007-01-30
ditto

Same problem. Would love to know how to stop it.



cosmicwombat
Posts: 1173
Member Since:
2006-05-31
Same problem with what version of tb?

There is a place in General stetting to set an "Update" notification. Doubtful of that being the origin... I wonder is this the "PBX Settings" version of FreePBX or authentic FreePBX?

--

Robert Keller - Chief Technologist at large
The VoIP Experience
Open Telephony Training Seminar



akula169
Posts: 2
Member Since:
2007-01-30
Trixbox 1.0.1.0? That's

Trixbox 1.0.1.0? That's what it says at the bottom of the home page.

FreePBX 2.5.0rc2.0



kmporter
Posts: 37
Member Since:
2007-12-01
Same problem -- resolved

I was experiencing the same problem after upgrading. After digging around a little, I have found the file that controls the emailing of the log files. It lies with the rotation of the logs. I updated my /etc/logrotate.d/asterisk file. I commented out the "mail" line under the section that referenced /var/log/asterisk/*log:

# mail root@localhost

This morning, I did not receive the email. I hope this helps!!



xnomad
Posts: 4
Member Since:
2008-09-03
Hi Guys, This is just a

Hi Guys,

This is just a feature of logrotate.
If you look at
/etc/logrotate.d/asterisk
You will see that there is a
mail root@localhost

If you read the man page for logrotate it says:

mail address
When a log is rotated out-of-existence, it is mailed to address.
If no mail should be generated by a particular log, the nomail
directive may be used.

This means that the last logs, before they are deleted by the rotation, are emailed to the admin. This is handy for historical archiving of the logs.

If you rather have the latest log sent to you then change the mail line to read
mailfirst root@localhost

Or simply turn it off by commenting the line out or putting in the line "nomail"

Cheers,



justinlawrence
Posts: 3
Member Since:
2008-05-22
Thanks xnomad, i'm glad for

Thanks xnomad, i'm glad for a few less mails each day :)



Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.