Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debian 12 Bookworm mailgraph not creating graphs #21

Open
oneilonline opened this issue Mar 12, 2024 · 4 comments
Open

Debian 12 Bookworm mailgraph not creating graphs #21

oneilonline opened this issue Mar 12, 2024 · 4 comments

Comments

@oneilonline
Copy link

oneilonline commented Mar 12, 2024

Debian 12 Bookworm
mailgraph 1.14-20
rrdtool 1.7.2-4+b8

mail.log files being created and contains data.
mailgraph config and permissions set correctly to www-data.
mailgraph service status is "active" no errors reported.
the var/lib/mailgraph dot folder is auto created when the service is started, but that is it only.
Also uninstalled/installed more than a dozen times.
Been troubleshooting and trying different tweaks for the past week.

I've been using mailgraph for over a decade and have always loved it because of it's simplicity.
I've had issues on other distros but have always been able to fix it.
Seams like something at the core changed with this distro.

Anyone else on Debian 12 experiencing the same issues?

Thank you.

@oneilonline
Copy link
Author

I also submitted a Debian bug report:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1051496

@solbu
Copy link

solbu commented Mar 26, 2024

I've been using mailgraph for over a decade and have always loved it because of it's simplicity. I've had issues on other distros but have always been able to fix it. Seams like something at the core changed with this distro.

I'm guessing you are talking about the new syslog timestamt format.
This is an rsyslog change, not a debian specific change.
rsyslog have a config variable that can bring back the old «MM DD 12:34:56» log timestamp that I have added, which fixed the timestamp format for me.

cat /etc/rsyslog.d/timeformat.conf
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat

@mitkola
Copy link

mitkola commented Dec 3, 2024

If you don't want to touch rsyslog format I've made following workaround for this issue.
Disable running of mailgraph as daemon and make manual statistics update via cron script that extract mail log in desired format.
In short it's look like this.

#!/bin/bash
TMAIL_LOG=/tmp/mail.log
journalctl -u postfix@-.service -u dovecot.service -u amavis.service --no-pager --since "1 hour ago" > $TMAIL_LOG
/usr/bin/perl -w /usr/sbin/mailgraph -c -l $TMAIL_LOG --daemon-rrd=/var/lib/mailgraph --ignore-localhost
rm $TMAIL_LOG

@mitkola
Copy link

mitkola commented Dec 4, 2024

I also submitted a Debian bug report: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1051496

This bug was closed.

I've proposed new one with proposed patch.
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1089039

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants