mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-25 17:06:01 +03:00
[GH-ISSUE #266] Stats extensions does not create rrd files #252
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#252
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tonioo on GitHub (Dec 4, 2013).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/266
Originally assigned to: @tonioo on GitHub.
Originally created by Reza Muhammad on 2012-06-08T18:46:45Z
Hello,
I have just recently come across this project and I have to say I love it alot :) However, there are some things I found that do not work as expected. So I'll start with this one.
I tried to enable the stats extension from the admin preference, and tried to run the logparser.py. However, there are no files created inside /tmp/modoboa or <modoboa_dir>/static/graphs.
I looked over the source code at <modoboa_dir>/extensions/stats/scripts/logparser.py and noticed that there might be a problem with self.line_expr regex pattern.
On line 185 (changeset 719/cd1c253a9da9), "m = self.line_expr.match(line)" never returns anything. So I wonder whether my Postfix log is in a different format than what was expected?
i'm running Postfix 2.9.1.
Btw, here's some of the logs from my /var/log/mail.log:
And my stats extension settings:
The command I used to run logparser.py:
So can anyone help me out on this? or is it truly a bug?
Thanks.
@tonioo commented on GitHub (Dec 4, 2013):
Posted by Antoine Nguyen on 2012-06-08T19:55:21Z
Thanks for your feedback.
I think you've found a real bug. Looking at the regexp you're talking about, I think the problem comes from the hostname (modoboa-test). It doesn't consider the '-' character as an allowed one.
Can you try to remove the '-' from the hostname and tell me if it works ?
@tonioo commented on GitHub (Dec 4, 2013):
Posted by Reza Muhammad on 2012-06-09T08:34:02Z
Hello Antoine,
Yes after changing the hostname without dashes, the parser works fine. I've also renamed my hostname back into using a dash and created a patch so it can support dashes in the hostname.
Reza.
@tonioo commented on GitHub (Dec 4, 2013):
Posted by Reza Muhammad on 2012-06-09T08:41:24Z
Another thing, while the logparser.py worked with the above patch, the images still wouldn't show up. I looked around the template and it seemed that the template was looking for the images in {{ MEDIA_URL }}/stats/ while the doc mentioned to put it in MODOBOA_DIR/static/graphs.
So what I did was:
I've also created a diff for these changes but am not sure if they are the correct way of doing it. The diff was created against changeset: 31a51350175d.
@tonioo commented on GitHub (Dec 4, 2013):
Posted by Antoine Nguyen on 2012-06-09T08:45:45Z
Thanks Reza,
I'll apply your first patch soon and this issue will be fixed for 0.9.1.
The second issue just concerns documentation, I forgot to update this part.
@tonioo commented on GitHub (Dec 4, 2013):
Posted by Antoine Nguyen on 2012-06-09T09:04:30Z
Applied in changeset commit:1df4b84b8db8.