I have logwatch configured with cron to e-mail me a daily report from my ubuntu server. Occasionally, something happens like the power goes out (which is what just happened actually) or the system gets turned off. After turning the system back on, I don't get my daily report, and then sometimes one to a few days later the daily reports start getting sent again.
At this time of writing I haven't received a logwatch report from my Ubuntu server in five days which is the longest time period this has ever gone on for me. So basically, I'm wondering what could I check for problems and what commands could I execute to fix these problems get my daily logwatch reports being e-mailed to me again?
Thanks in advance for your time in helping solve my problem and answer my questions.
- I ran ls -lut /etc/cron.daily and realized my cron scripts haven't been run since may 30th. So cron has stopped working. How can I get it working it again?
- Checking the syslog also reveals cron hasn't run since May 30th.
- Running sudo service cron restart got cron working again (I can verify by looking at my hourly scripts being run hourly). Additionally, I ran the logwatch script inside /etc/cron.daily/ so I know the script is working. So I'm hoping that tomorrow around 6:30 AM that cron runs my daily logwatch script.
- And ... Success! I'm going to summarize what I did and accept it as a best answer.