[Logwatch-Devel] Fwd: Logwatch Service for php error logs

Kirk Bauer kirk at kaybee.org
Tue Sep 5 11:39:07 MST 2006

Looks useful to me.

---------- Forwarded message ----------
From: Jeremias Reith <jr at terragate.net>
Date: Sep 5, 2006 1:51 AM
Subject: Logwatch Service for php error logs
To: logwatch-patches at logwatch.org

Hello Kirk,

I have written a service for php error logs, which can be activated
in the php.ini (error_log = /var/log/... and log_errors=on)

I decided to include a timestamp with a RMS which allows a quick
categorization of messages (all time warnings which seems to be
normal and a real error which happend in a short period of time)

The script can be downloaded here:


Thanks for logwatch


A report looks like this (range 2 days):

  Fatal errors:

19 times:
[03-Sep-2006 16:18:27 +/-15 minute(s)]  Uncaught exception
'RuntimeException' with message 'DirectoryIterator::__construct
(file:///var/www/webdisks/jr///favicon.ico) [<a
construct'>function.DirectoryIterator---construct</a>]: failed to
open dir: Datei oder Verzeichnis nicht gefunden' in /var/www/webapps/

17 times:
[03-Sep-2006 12:22:23 +/-16 minute(s)]  Maximum execution time of 30
seconds exceeded in /var/www/webapps/horde/htdocs/lib/Horde/Util.php
on line 665


72 times:
[03-Sep-2006 22:11:00 +/-1 day(s)]  Use of undefined constant
mosConfig_live_site - assumed 'mosConfig_live_site' in /var/www/
warmish_community_from_tomekki/index.php on line 12

Kirk Bauer <kirk at kaybee.org>
http://linux.kaybee.org | www.autorpm.org | www.logwatch.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2415 bytes
Desc: not available
Url : http://www2.list.logwatch.org:8080/pipermail/logwatch-devel/attachments/20060905/b6856b6f/attachment.bin 

More information about the Logwatch-Devel mailing list