Quote:
Originally Posted by mcesari that looks good so you will probably get a report now.
you could try running zmdailyreport -t and a date like 20070101, but since your raw_logs were messed up it might not have any data. |
Hi
i also have every day an empty daily mail report. Tried it with repairing the database with no effect.
It seems, that he didnt create /tmp/logprocess.out. Logger ist running. System is 5.0.0.GA. Tried it with zmdailyreport, zmdailyreport -t and zmdailyreport -m
Table raw_logs seems to be ok. select * from raw_logs looks good
//Edit
Hmm....after a while, he created the logprocess file with these error
Quote:
DBD::mysql::st execute failed: Table './zimbra_logger/service_status' is marked as crashed and should be repaired at /opt/zimbra/lib
exec/zmlogprocess line 1132.
DBD::mysql::st execute failed: Table './zimbra_logger/service_status' is marked as crashed and should be repaired at /opt/zimbra/lib
exec/zmlogprocess line 1132.
Can't call method "fetchall_arrayref" on an undefined value at /opt/zimbra/libexec/zmlogprocess line 82.
Pruning service/server entries older then 2008-01-03 11:40:03
Error executing delete from service_status where time <= '2008-01-03 11:40:03' with
Table './zimbra_logger/service_status' is marked as crashed and should be repaired
Table './zimbra_logger/service_status' is marked as crashed and should be repaired at /opt/zimbra/libexec/zmlogprocess line 1133.
Error executing select distinct loghostname, server from service_status with
Table './zimbra_logger/service_status' is marked as crashed and should be repaired
Table './zimbra_logger/service_status' is marked as crashed and should be repaired at /opt/zimbra/libexec/zmlogprocess line 1133.
|
i repaired the table with no effect
Quote:
mysql> repair table service_status;
+------------------------------+--------+----------+-------------------------------------------------------+
| Table | Op | Msg_type | Msg_text |
+------------------------------+--------+----------+-------------------------------------------------------+
| zimbra_logger.service_status | repair | warning | Duplicate key for record at 292 against record at 144 |
| zimbra_logger.service_status | repair | warning | Number of rows changed from 1484 to 7 |
| zimbra_logger.service_status | repair | status | OK |
+------------------------------+--------+----------+-------------------------------------------------------+
3 rows in set (0.00 sec)
mysql> exit
Bye
zimbra@server:~$ /opt/zimbra/libexec/zmdailyreport
Generating report
From 2008-01-02 00:00:00 to 2008-01-03 00:00:00
No messages found
zimbra@server:~$ /opt/zimbra/libexec/zmdailyreport -t 20070101,20070201
Generating report
From 2007-01-01 00:00:00 to 2007-02-01 00:00:00
|