Advanced Statistics for mails (code attached)
Dear developpers,
I like to work with ISPConfig and I create a script for automatic generation of following statistics for Mails:
-
Mail synthesis : internal, incoming and outgoing #
-
IPv4 / Ipv6 : show mails routed by protocol
-
Detailed : Show clean, greylisted, spammy, Junk, SPAMs, Banned, Infected, rejected, Relay Denied and no FQDN
If you see other things to graph don’t hesitate to ask ;-)
Graphs creation has been done but I’m facing the following problems:
-
where (in which current folder from ISP 3.1.2) can we generate (write) pictures so that they will be displayed with GUI ? With my scripts they are generated into /tmp.
-
Integration with Monitor menu isn’t made because I think it will be faster for you to integrate it. You can either add buttons for different time frames or use a scrolldown select (included), as you want. A new menu might be also either created.
Of course you can change width or height depending on your graphical standards. It’s either possible to perform graphs from servers other than master by querying the other slaves servers.
Here are the files needed and included: -mailstats.php : this file will collect data each minute (data taken from mail.log) and write summary onto an RRD file
- mailstats.README : basis on how to install it (very simple). This could be either enhanced
- show_mailstats.php : this is the file where Graphs are generated via functions
I hope you will be able to include my small contribution for a next release.
If you need additional information, feel free to ask.
Developed by Jacques Schell (www.schell-consult.ch)