hi folks
um es kurz und knapp machen.
das mail versenden mit logrotate funktioniert nur ist die mail leer, weder ein anhang noch text ist in der mail.
die mail enthalt als betreff die logdatei aber ansonsten ist die mail leer
eine suche hier im board und bei google hat nicht viel ausgespuckt.
einen kleinen tip wonach ich suchen muss ?
thnx
logrotate verschickt leere mail
-
- Posts: 30
- Joined: 2003-08-08 22:46
- Location: Hannover
-
- Posts: 30
- Joined: 2003-05-16 16:55
- Location: Mönchengladbach
Re: logrotate verschickt leere mail
Hi,
das steht hier
Hier ein kleiner Auszug:
Hoffe, ich konnte dir hiermit helfen
Gruß
mav1000
das steht hier
Hier ein kleiner Auszug:
Code: Select all
-m, --mail <command>
Tells logrotate which command to use when mailing logs. This
command should accept two arguments: 1) the subject of the mes-
sage, and 2) the recipient. The command must then read a message
on standard input and mail it to the recipient. The default mail
command is /bin/mail -s.
Gruß
mav1000
-
- Posts: 30
- Joined: 2003-08-08 22:46
- Location: Hannover
Re: logrotate verschickt leere mail
danke für die tip......hab mal in die bücher geschaut und folgendes gefunden.
mpack -s "*.log" /var/log/*.log.*.gz user@mail
so wie ich das verstehe hat logrotate probleme mit dem versenden von gepackten logfiles
und das mpack das mit obiger zeile erledigt nach dem die logs rotiert wurden.
mpack -s "*.log" /var/log/*.log.*.gz user@mail
so wie ich das verstehe hat logrotate probleme mit dem versenden von gepackten logfiles
und das mpack das mit obiger zeile erledigt nach dem die logs rotiert wurden.
-
- Posts: 30
- Joined: 2003-05-16 16:55
- Location: Mönchengladbach
Re: logrotate verschickt leere mail
Hi,
sowie ich das verstehe, hat der kein Problem damit, sondern das Log wird ungepackt verschickt.
Gruß
mav1000
sowie ich das verstehe, hat der kein Problem damit, sondern das Log wird ungepackt verschickt.
Code: Select all
and the old logs files are
mailed (uncompressed) to www@my.org
mav1000