trilljester
MIS
I recently had a mini-scare at work here where some of my cron jobs were not executing due to password expiration rules. I was asked if there would be a way to monitor that the cron for various accounts are actually working. I have been thinking of ways to do this and thought I'd ask the experts here for any suggestions.
My idea:
-- Add a line to the crontab that would echo the account name into a flag file in a directory. I would set this up for every account I want to monitor.
-- Write a script that checks the flag file directory and the "age" of each of the flag files (or if they even exist). If the age is over a day or so old or the file doesn't exist then alert me via email.
What do you guys think?
My idea:
-- Add a line to the crontab that would echo the account name into a flag file in a directory. I would set this up for every account I want to monitor.
-- Write a script that checks the flag file directory and the "age" of each of the flag files (or if they even exist). If the age is over a day or so old or the file doesn't exist then alert me via email.
What do you guys think?