hello everyone,
i am currently using logwatch to monitor different logfiles. Actually i
am trying to deal with a postfix logfile, but in vain. Logwatch does not
seem to get any line in input for treatment. I try to do the following for
debugging, but i get nothing in return:
in the file ../scripts/services/postfix i did
while (defined($ThisLine = <STDIN>)) {
print "\n$ThisLine"; ##line added for debugging
if (
( $ThisLine =~ m/^$re_MsgID: client=([^ ]*\[[^ ]*\])\s*$/ ) or
( $ThisLine =~ m/^$re_MsgID: message-id/ ) or
............................
............
but i get nothing in return,except that.
--------------------- postfix Begin ------------------------
---------------------- postfix End -------------------------
In my maillog, im sure i put the correct path to my logfile:
LogFile = /var/log/maya/postfix.log
It seems that the STDIN is empty, though for other services, such as qpopper
or httpd, i get the usual stats from logwatch.
I think iv missed something in logwatch functionning. Can anyone help me
please??
Thank you very much for any help.
_________________________________________________________________
http://liveearth.msn.com
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]