Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-15-2006, 02:59 AM
Junior Member
 
Posts: 9
Default MTA logging question

I've noticed an issue while looking through the logging scripts (am another person that doesn't get all the graphs), zmlogprocess never parses any MTA entries out of my raw_logs table because all the postfix/* entries in there have a postfix_qid of null.

Does this sound right, what postfix entries should have a postfix_qid?

Thanks in advance,
Jon.
Reply With Quote
  #2 (permalink)  
Old 02-15-2006, 03:26 AM
Junior Member
 
Posts: 9
Default Also disk logging

FYI - Just noticed that disk_status isn't getting populated either. The info isn't getting parsed out of raw_logs correctly because zmdisklog isn't setting the hostname...

Regards,
Jon.
Reply With Quote
  #3 (permalink)  
Old 02-15-2006, 07:15 AM
Zimbra Employee
 
Posts: 2,103
Default hmm

Those don't sound right. I've made some changes to this stuff to fix the missing graph problem, but I've never seen the null qid. Is it possible that syslog is logging the IP, not the hostname, because it can't resolve the IP address?
Reply With Quote
  #4 (permalink)  
Old 02-16-2006, 01:02 AM
Junior Member
 
Posts: 9
Default

I don't believe so, here's an example line from /var/log/zimbra.log and the corresponding database entry -

Feb 16 08:44:13 epia postfix/cleanup[20593]: 6F9614528: message-id=<200602160844.k1G8i8xi008879@localhost.localdom ain>

| 3222 | 2006-02-16 08:44:13 | epia | postfix/cleanup | 20593 | 6F9614528: message-id=<200602160844.k1G8i8xi008879@localhost.localdom ain> | NULL |

I don't really know perl, but am I correct in thinking that zmlogger should be parsing the qid (6F9614528) out in the section below? If so, I'll take a closer look at the processing here..

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


Regards,
Jon.
Reply With Quote
  #5 (permalink)  
Old 02-16-2006, 06:27 AM
Zimbra Employee
 
Posts: 2,103
Default

interesting - your QID is 9 digits, I've never seen that. Quick fix is to change the {10,12} to {9,12} in that script.
Reply With Quote
  #6 (permalink)  
Old 02-16-2006, 11:45 AM
Junior Member
 
Posts: 9
Default

Yep, that's done the trick... Thanks!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.