Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    May 2008
    Posts
    1,203

    Default Script to check cron jobs

    We allow our users to run their custom cron jobs on our shared server not more than 5 times a day. It is difficult for us to check each users cron jobs manually since there are hundreds of domains are hosted.

    I was just wondering if there is any script available that can notify admin directly how many times users are running their cron jobs a day?

    Thanks!

  2. #2
    Member
    Join Date
    Aug 2009
    Location
    Houston, Tx
    Posts
    275

    Default Scripts to check Crong Jobs

    Hello,

    I do apologize for your issue, however I can say that we dont have a script that would do that by default. I am not saying it is not possible, we just do not have a scripts that would do that out of the box. Please let me know if you have any other questions.

    Thank you,
    Matthew Curry

  3. #3
    BANNED
    Join Date
    Jun 2005
    Location
    Wild Wild West
    Posts
    2,025

    Default

    Quote Originally Posted by thewebhosting View Post
    We allow our users to run their custom cron jobs on our shared server not more than 5 times a day. It is difficult for us to check each users cron jobs manually since there are hundreds of domains are hosted.

    I was just wondering if there is any script available that can notify admin directly how many times users are running their cron jobs a day?

    Thanks!
    You just acknowledged that you can't routinely check user cron scripts for something as simple as their time settings let alone something more complex such as what they are actually running and just as a note to you, cronjob access is the same thing as allowing full unrestricted SSH access!

    If you do not follow my less than subtle point, you have a lot more to worry about than just the "time" settings of your user's cronjobs and even with the capacity to monitor things closely (which you clearly don't have setup), I still would not recommend allowing users access to setup their own cronjobs just because of the enormous security issues involved!

    Now regarding your specific question ....

    Setting up a cronjob to monitor the cronjob settings is a piece of cake and generally only takes me about 5 minutes to write from scratch to run basic checks against the crontab time settings for all users. All you really need to do is read all the crontab user files and run a quick check of the time settings for each line and disable or override the settings of those that don't meet programmed limit guidelines ---- simple grep and sed replaces will work!

Similar Threads & Tags
Similar threads

  1. check what Cron jobs have been added on the server?
    By meeti in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 02-21-2008, 06:20 AM
  2. Cron jobs
    By Mini in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-17-2006, 05:57 PM
  3. cron jobs - how to run a simple php script
    By adentone in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 09-19-2005, 06:26 AM
  4. check active cron jobs
    By jasons in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 11-02-2004, 08:47 AM
  5. cPanel cron jobs or cron.daily , cron.hourly , etc.?
    By spaceman in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 01-01-2004, 07:16 PM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube