Mirko,
That answers the 'pretty formatting' part, but the meat of the sandwich
is collecting the stats. I'm afraid that "Virus stats are collected
through clamav, bad_sender/rcpt are chkuser GREPs, and so on" leaves us
hanging. :(
The data collection code is what I'm most interested in. Are the stats
gathered continually and stored, or are they gathered dynamically on
demand? This is the code I'm most interested in. The $spamdyke part is
particularly mysterious. If it's a bit disjointed that's ok. I'm sure
that we can work with it.
Thanks again.
Mirko Buffoni wrote:
> Sergio, Eric,
>
> It's nothing really worth worldwide attention. It's a simple php
> script that collects data from various sources and aggregates them.
> Here is the relevant part:
>
> $res = sprintf( "Antispam Statistics for: ".date('d/m/Y',
> time()-86400).
> "\n\n".
> " Good : % 6d = %6.2f %%\n".
> " Unsure : % 6d = %6.2f %%\n".
> " Virus : % 6d = %6.2f %%\n".
> "BAD Sender: % 6d = %6.2f %%\n".
> "BAD Rcpt : % 6d = %6.2f %%\n".
> "Pure SPAM : % 6d = %6.2f %%\n".
> " SPAMMER : % 6d = %6.2f %%\n%s".
> "------------------------------\n".
> " Total : % 6d = 100.00 %%\n\n",
> $pure_good, 100.0 * $pure_good / $total_mails,
> $unsure, 100.0 * $unsure / $total_mails,
> $virus, 100.0 * $virus / $total_mails,
> $pure_spam, 100.0 * $pure_spam / $total_mails,
> $bad_sender, 100.0 * $bad_sender / $total_mails,
> $bad_rcpt, 100.0 * $bad_rcpt / $total_mails,
> $intrusion, 100.0 * $intrusion / $total_mails,
> $spamdyke,
> $total_mails );
>
> It's not based on any other statistics script, as it need to serve only
> my own purposes. Virus stats are collected through clamav, bad_sender/rcpt
> are chkuser GREPs, and so on.
>
> Mirko
>
> At 16:10 02/09/2009 -0700, you wrote:
>> Sergio Minini (NETKEY) wrote:
>>> Mirko Buffoni escribió:
>>>> <div class="moz-text-flowed" style="font-family: -moz-fixed">Goods
>>>> average between 500 and 2000 daily. Figures are however
>>>> pretty standard. Spamdyke filters out about 60k attempts daily.
>>>> Here are yesterday stats:
>>>>
>>>> Good : 1025 = 0.68 %
>>>> Unsure : 183 = 0.12 %
>>>> Virus : 62 = 0.04 %
>>>> BAD Sender: 5114 = 3.40 %
>>>> BAD Rcpt : 212 = 0.14 %
>>>> Pure SPAM : 45997 = 30.56 %
>>>> SPAMMER : 97940 = 65.06 %
>>>> |
>>>> \.............BLACKLISTED_KEYWORD : 29608 = 30.23 %
>>>> \..............DENIED_EARLYTALKER : 3 = 0.00 %
>>>> \...............DENIED_IP_IN_RDNS : 30447 = 31.09 %
>>>> \................DENIED_RBL_MATCH : 23268 = 23.76 %
>>>> \.............DENIED_SENDER_NO_MX : 13070 = 13.34 %
>>>> \......DENIED_TOO_MANY_RECIPIENTS : 1 = 0.00 %
>>>> \....DENIED_UNQUALIFIED_RECIPIENT : 1 = 0.00 %
>>>> \.........................TIMEOUT : 1542 = 1.57 %
>>>>
>>>> ------------------------------
>>>> Total : 150533 = 100.00 %
>>> Mirko, nice layout of stats.
>>> Could you please share the script you are using to get them?
>>> Thanks!
>>> -Sergio
>> Ditto! Somebody did a nice job!
>> (I wonder if this is this based on the spamdyke-stats.pl script that
>> Felix Buenemann did last October)
>>
>> Pleeeze Mirko? I'd like to include in with the qmailtoaster-plus scripts.
>>
>> --
>> -Eric 'shubes'
>>
>> _______________________________________________
>> spamdyke-users mailing list
>> [email protected]
>> http://www.spamdyke.org/mailman/listinfo/spamdyke-users
--
-Eric 'shubes'
_______________________________________________
spamdyke-users mailing list
[email protected]
http://www.spamdyke.org/mailman/listinfo/spamdyke-users