On 09/19/2013 07:05 AM, Peter Peltonen wrote:

Hi,

On Thu, Sep 19, 2013 at 4:26 PM, Eric Shubert <[email protected]
<mailto:[email protected]>> wrote:

    On 09/19/2013 06:13 AM, Peter Peltonen wrote:


        Hi,

        If I modify these entries in /etc/crontab:

        0-59/5 * * * * root env LANG=C /usr/bin/mrtg
        /usr/share/toaster/mrtg/__qmailmrtg.cfg 2>&1 > /dev/null

        58 * * * * root /usr/share/toaster/isoqlog/__bin/cron.sh 2>&1 >
        /dev/null

        to run only once a day, how will this impact the stats shown in
        /admin-toaster/ ?

        Regards,
        Peter


    I don't know, but I would guess that the stats simply wouldn't be
    updated. I don't believe it would be of any consequence to the core
    operation of QMT (iow, it wouldn't impact users at all, except maybe
    to improve performance).


What I was trying to ask is if the stats will be updated daily still
even if I run the cron job once a day? Or is for some reason (because of
log rotation or some calculations) it necessary to analyze the logs ever
hour?

Best,
Peter

Again, I don't know off hand, but I expect the answer is yes (stats would be updated appropriately), but I'm not certain of this. Thinking about it though, I doubt anything would be missed. isoqlog would need to process more than the current log, in the event that logs were rotated since the last time it was run, which I expect happens fairly regularly. I don't know how smart isoqlog is at selecting the logs to process. This might explain why isoqlog is causing large overhead on your system, especially if you've increased the stock log retention values.

--
-Eric 'shubes'


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to