hmm a bit of a problem i might have
Any idea why it doesn't send data with email? To test it, i set 1 so if the arrays are OK, i get 3 emails, each email contains data about raid array (--detail /dev/md0 and so on...). Now the thing is, if i run this script manually, i receive 3 emails with raid data about each array! But if the cronjob does it, it sends 3 emails with subject as it should be but without any content!
cron looks like:
Code:
0,10,20,30,40,50 * * * * /usr/local/bin/check_raid.sh &> /dev/null
tested also with:
Code:
0,10,20,30,40,50 * * * * (/usr/local/bin/check_raid.sh | mail -s "test" alert@domain.tld)
as 4th email, i get:
Code:
Null message body; hope that's ok
Null message body; hope that's ok
Null message body; hope that's ok
I don't get it! mdadm --detail command isn't run with cronjob cause?
I set the ownership to root, script is 755, no errors..
edit: i put the file in /usr/local/bin, could that be a problem? Don't see how since i can run it manually from there without any problems and getting emails with data..
Recent comments
1 day 6 hours ago
1 day 6 hours ago
1 day 11 hours ago
1 day 18 hours ago
1 day 19 hours ago
1 day 20 hours ago
2 days 59 min ago
2 days 7 hours ago
2 days 11 hours ago
2 days 13 hours ago