URL: https://www.overclockers.at/linux/mdadm-sendet-keine-mails_235955/page_1 - zur Vollversion wechseln!
ich hab mir ein software raid5 aufgesetzt, und hätte gerne dass mir mdadm bei problemen automatisch per mail bericht erstattet.
ssmtp ist installiert und konfiguriert, testmail senden mit
geht einwandfrei.Code:ssmtp meine @email.adresse
in die shell eingebe, passiert gar nix, keine mail, kein output, ich muss das programm mit ctrl+c killen.Code:[root@localhost /]# mdadm --monitor -m meine @email.adresse /dev/md0 -t -oder- [root@localhost /]# mdadm --monitor --scan --test
ideas?Code:MAILADDR meine @email.adresse
Hast du auch ein /usr/sbin/sendmail am System, das ssmtp wrapped/aufruft? So macht mdadm im monitor-Mode das naemlich, wenn was gemailt werden soll.
Alternativ kannst du dir auch statt MAILADDR ein PROGRAM setzen, das dann z. B. ein Shellscript aufruft, das dir die gewuenschte Mail sendet.
Code:PROGRAM The program line gives the name of a program to be run when mdadm --monitor detects poten- tially interesting events on any of the arrays that it is monitoring. This program gets run with two or three arguments, they being the Event, the md device, and possibly the related component device. There should only be one program line and it should be give only one program.
sendmail ist installiert. schaut aus als müsste ich mir ein skript basteln...
edit: habe dieses skript genommen, funktioniert perfekt.
und ich bin gerade draufgekommen, dass alle emails angekommen und im spamordner gelandet sind. normalerweise macht mich thunderbird auch auf spammails aufmerksam, nur hier anscheinend ned. und wieso das programm die shell blockiert hat, weis ich auch nicht.
overclockers.at v4.thecommunity
© all rights reserved by overclockers.at 2000-2025