Over Quota Emails

Print Friendly, PDF & Email

I fixed the quota scripts.

In /home/sysadmin/quota_near and quota_over I added a concatenation onto a log file, /var/log/quota_near.log and quota_over.log for the good/useful echo statements. And then I copied the scripts into /root/bin for use. I also took out a paragraph about FirstClass core from the quota_over email message.

Then in /etc/cron.daily I added symbolic links to these scripts.

Then I ran the quota_near script which sent emails to some people but a lot of the people didn’t have .forward files (group projects). You can see which people got emails by “grep “quota, sending” /var/log/quota_near.log”

Then I ran the quota_over script, but it gave errors about not being able to read the /root/quota-email-exceptions.

“grep: /root/quota-email-exceptions: No such file or directory

/root/bin/quota_over: line 47: [: =: unary operator expected”

So I tried to stop the script from continuing, because of these error messages. So I ran it again after looking for the quota-email-exceptions file, and not finding it. But it seems from the log file, to have executed all the way through both times. (bookies is the only difference between them because Michelle changed it in between running it the first and second times)

So….people who were over quota got two emails and people who are near got one. And everything should be good now! (I hope)

This entry was posted in Uncategorized and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *