Hi So, here is a million doller question. Being a Unix and Linux Admin we all use cront jobs to automate our tasks. But what if we need to monitor the cronjob itself. Oh!!! boy that can be a pain.
Few Techniques:
1. Redirect the output of the cronjob to a log file.
2. Using MAILTO option to get a e-mail notification for success or failure of a cronjob.
But in case of large set up it seems to be a no value idea
. let take an example of a set and than decide what should be the best option:
1. LAMP technology.
2. 75 VPS with LAMP.
3. ALL VPS has PHP scripts in cron to wget a PHP file from the local website.
4. Almost 10 Cronjobs running per VPS.
5. Frequency of cronjobs are 1 min. So, each Cronjob execute 24*60 = 1440 times.
Now both of the above idea would be ideal with this senario. Because going to 75 invidual VPSs and look for the log file will pain to the core.
MAILTO option seems to be promising but getting 1440*10*75 ,ail in a day will become an another mailbomb.
So, My question is how we can monitor these cronjob. is there any tools available which checks these cronjobs and redirect the result to a particular web page. Life would be easier if we have any sort this. One page all the information.
Secondly can we use this MAILTO option to create something like this for us. Like using MAILTO option send the mails to a specific e-mail address which belongs to some ticketing sstem or some other type of unit which generates a report on HTML page or PHP page.
Friends i am not sure how meaningful this will be for you guys but it is actually a pain for me these days.
Any sort of help or comment be will a great help.