Results 1 to 4 of 4

Thread: [SOLVED] Zimbra 4.5.6 on Ubuntu 6.06 LTS - Logger problem

  1. #1
    Join Date
    Aug 2007
    Posts
    11
    Rep Power
    8

    Default [SOLVED] Zimbra 4.5.6 on Ubuntu 6.06 LTS - Logger problem

    Hi

    I have a problem with logging on my zimbra install. I have looked through a lot of threads in these forums and I'm not experiencing any of the errors detailed in related threads that I can find.

    cat /tmp/logprocess.out
    Pruning service/server entries older then 2007-08-21 16:00:02
    raidar maps to raidar.seabed.no
    Processing mta entries from 0
    Found 0 messages
    Deleting processed postfix logs from raw_logs...Done
    Processing clamd entries from 0
    Found 0 entries
    Deleting processed clamd logs from raw_logs...Done
    Processing amavis entries from 31415
    Found 4 entries
    Saving ID 31455
    Deleting processed amavis logs from raw_logs...Done
    Processing sendmail entries from 0
    Found 0 entries
    Deleting processed sendmail logs from raw_logs...Done
    Processing zimbramon entries from 31292
    Found 3 entries
    Saving ID 31488
    Deleting processed zimbramon logs from raw_logs...Done
    Aggregating hour mta from 2007-08-21 15:00:00 to 2007-08-21 16:00:00
    Aggregating day mta from 2007-08-20 00:00:00 to 2007-08-21 00:00:00
    Aggregating hour amavis from 2007-08-21 15:00:00 to 2007-08-21 16:00:00
    Aggregating day amavis from 2007-08-20 00:00:00 to 2007-08-21 00:00:00
    Aggregating hour disk from 2007-08-21 15:00:00 to 2007-08-21 16:00:00
    Aggregating day disk from 2007-08-20 00:00:00 to 2007-08-21 00:00:00
    Retaining 31 days worth of raw logs based on zimbraLogRawLifetime config.
    Retaining 730 days worth of summary logs based on zimbraLogSummaryLifetime config.
    Pruning raw mta logs from 2007-07-21 00:00:00
    Pruning raw amavis logs from 2007-07-21 00:00:00
    Pruning raw disk logs from 2007-07-21 00:00:00
    Pruning summary mta logs from 2005-08-21 00:00:00
    Pruning summary amavis logs from 2005-08-21 00:00:00
    Pruning summary disk logs from 2005-08-21 00:00:00
    Pruning other raw logs from 2007-07-21 00:00:00

    For some reason it never finds any mail messages when it parses the logs. I have sent a bunch of test mails between accounts on the server and also mails to outside account (I haven't received any external mail as I have no MX record pointing to this server yet). Postfix does log to /var/log/zimbra.log for all mails sent.

    Using zmmsgtrace also never finds anything, but I guess that is a related problem.

    The logger service seems to run fine otherwise. Can it be a problem with that it doesn't parse the file correctly for the postfix entries? it seems to find the zimbramon entries just fine.

    Let me know if I should provide more info

    thanks,
    Hogne

    Edit:

    Figured out the problem.

    The following thread clued me in to have a look in the DB
    http://www.zimbra.com/forums/adminis...-question.html

    I had the same problem with postfix_qid being NULL and I noticed in my log entries the postfix ID was 13 digits.

    After changing the following in /opt/zimbra/libexec/zmlogger everything works fine:

    Code:
    $qid = $1 if ($app =~ /^postfix/ && $msg =~ /^(\S{8,12}): /);
    To:

    Code:
    $qid = $1 if ($app =~ /^postfix/ && $msg =~ /^(\S{8,13}): /);
    It might be an idea to change this regexp into something more robust which can handle the apparent variances in Postfix ID length.
    Last edited by hogne; 09-03-2007 at 11:37 PM.

  2. #2
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    21

    Default

    Quote Originally Posted by hogne View Post
    Hi

    I have a problem with logging on my zimbra install. I have looked through a lot of threads in these forums and I'm not experiencing any of the errors detailed in related threads that I can find.

    cat /tmp/logprocess.out
    Pruning service/server entries older then 2007-08-21 16:00:02
    raidar maps to raidar.seabed.no
    Processing mta entries from 0
    Found 0 messages
    Deleting processed postfix logs from raw_logs...Done
    Processing clamd entries from 0
    Found 0 entries
    Deleting processed clamd logs from raw_logs...Done
    Processing amavis entries from 31415
    Found 4 entries
    Saving ID 31455
    Deleting processed amavis logs from raw_logs...Done
    Processing sendmail entries from 0
    Found 0 entries
    Deleting processed sendmail logs from raw_logs...Done
    Processing zimbramon entries from 31292
    Found 3 entries
    Saving ID 31488
    Deleting processed zimbramon logs from raw_logs...Done
    Aggregating hour mta from 2007-08-21 15:00:00 to 2007-08-21 16:00:00
    Aggregating day mta from 2007-08-20 00:00:00 to 2007-08-21 00:00:00
    Aggregating hour amavis from 2007-08-21 15:00:00 to 2007-08-21 16:00:00
    Aggregating day amavis from 2007-08-20 00:00:00 to 2007-08-21 00:00:00
    Aggregating hour disk from 2007-08-21 15:00:00 to 2007-08-21 16:00:00
    Aggregating day disk from 2007-08-20 00:00:00 to 2007-08-21 00:00:00
    Retaining 31 days worth of raw logs based on zimbraLogRawLifetime config.
    Retaining 730 days worth of summary logs based on zimbraLogSummaryLifetime config.
    Pruning raw mta logs from 2007-07-21 00:00:00
    Pruning raw amavis logs from 2007-07-21 00:00:00
    Pruning raw disk logs from 2007-07-21 00:00:00
    Pruning summary mta logs from 2005-08-21 00:00:00
    Pruning summary amavis logs from 2005-08-21 00:00:00
    Pruning summary disk logs from 2005-08-21 00:00:00
    Pruning other raw logs from 2007-07-21 00:00:00

    For some reason it never finds any mail messages when it parses the logs. I have sent a bunch of test mails between accounts on the server and also mails to outside account (I haven't received any external mail as I have no MX record pointing to this server yet). Postfix does log to /var/log/zimbra.log for all mails sent.

    Using zmmsgtrace also never finds anything, but I guess that is a related problem.

    The logger service seems to run fine otherwise. Can it be a problem with that it doesn't parse the file correctly for the postfix entries? it seems to find the zimbramon entries just fine.

    Let me know if I should provide more info

    thanks,
    Hogne

    Edit:

    Figured out the problem.

    The following thread clued me in to have a look in the DB
    http://www.zimbra.com/forums/adminis...-question.html

    I had the same problem with postfix_qid being NULL and I noticed in my log entries the postfix ID was 13 digits.

    After changing the following in /opt/zimbra/libexec/zmlogger everything works fine:

    Code:
    $qid = $1 if ($app =~ /^postfix/ && $msg =~ /^(\S{8,12}): /);
    To:

    Code:
    $qid = $1 if ($app =~ /^postfix/ && $msg =~ /^(\S{8,13}): /);
    It might be an idea to change this regexp into something more robust which can handle the apparent variances in Postfix ID length.
    File an enhancement on that.

  3. #3
    Join Date
    Jun 2007
    Location
    Philippines
    Posts
    193
    Rep Power
    8

    Default

    Im not sure if I got the correct information: But is this the qid:

    mail postfix/smtp[15412]: A2F95945C7: to=<

    If this is the qid, in my case I got 10?

    Thanks in advance.

  4. #4
    Join Date
    Aug 2007
    Posts
    11
    Rep Power
    8

    Default

    I did some further investigations on this here:

    http://www.zimbra.com/forums/install...stfix_qid.html

    Sorry for the double posting, but this thread got corrupted for a while because of my noscript add-on messing up when I submitted an edit to the first post in this thread, so I made a new one.

Similar Threads

  1. [SOLVED] Clamav problem ? What's happening ?
    By aNt1X in forum Installation
    Replies: 23
    Last Post: 02-14-2008, 05:43 AM
  2. dspam logrotate errors
    By michaeln in forum Users
    Replies: 7
    Last Post: 02-19-2007, 12:45 PM
  3. Getting problems in FC4 while instalation
    By kitty_bhoo in forum Installation
    Replies: 13
    Last Post: 09-12-2006, 11:34 PM
  4. Zimbra server crashed
    By goetzi in forum Administrators
    Replies: 6
    Last Post: 03-25-2006, 01:00 PM
  5. Monitoring : Data not yet avalaible
    By s3nz3x in forum Installation
    Replies: 7
    Last Post: 11-30-2005, 07:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •