The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cron Question - confused

Discussion in 'General Discussion' started by chae, Oct 11, 2004.

  1. chae

    chae Well-Known Member

    Joined:
    Apr 19, 2003
    Messages:
    145
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Auckland, New Zealand
    Hi Yah,

    Just started getting this through on logwatch

    --------------------- Cron Begin ------------------------

    Commands Run:
    Time(s)
    * *User mailman:
    * * * /usr/bin/python2 -S /usr/local/cpanel/3rdparty/mailman/cron/nightly_gzip: 1 Time(s)
    * * * personal crontab reloaded: 1 Time(s)
    * * * personal crontab replaced: 2 Time(s)
    * *User root:
    * * * /scripts/upcp: 1 Time(s)
    * * * /usr/bin/mrtg /etc/mrtg/mrtg.cfg: 49 Time(s)
    * * * /usr/local/bandmin/bandmin: 9 Time(s)
    * * * /usr/local/cpanel/bin/dcpumon >/dev/null 2>&1: 49 Time(s)
    * * * /usr/local/cpanel/whostmgr/bin/dnsqueue >*/dev/null 2>&1: 17 Time(s)
    * * * /usr/local/prm/prm -q >>*/dev/null 2>&1: 61 Time(s)
    * * * /usr/local/sbin/sim -q >>*/dev/null 2>&1: 123 Time(s)
    * * * personal crontab listed: 3 Time(s)
    * * * personal crontab reloaded: 1 Time(s)
    * * * personal crontab replaced: 1 Time(s)
    * * * run-parts /etc/cron.daily: 1 Time(s)
    * * * run-parts /etc/cron.hourly: 5 Time(s)

    Can someone tell me where to look for the personal crontabs?

    I've checked crontab -e and nothing out of the ordinary in there, I've also checked the /var/spool/cron for out of the place cron jobs.

    There's a cron in there (user/group root) with the following:

    2,58 * * * * /usr/local/bandmin/bandmin
    0 0 * * * /usr/local/bandmin/ipaddrmap
    30 1 * * * /scripts/upcp
    */15 * * * * /usr/local/cpanel/whostmgr/bin/dnsqueue > /dev/null 2>&1
    0 6 * * * /scripts/exim_tidydb > /dev/null 2>&1
    */5 * * * * /usr/local/cpanel/bin/dcpumon >/dev/null 2>&1

    Then the mailman (user/group root) cron is:

    MAILTO=postmaster
    # At 8AM every day, mail reminders to admins as to pending requests.
    # They are less likely to ignore these reminders if they're mailed
    # early in the morning, but of course, this is local time... ;)
    0 8 * * * /usr/bin/python2 -S /usr/local/cpanel/3rdparty/mailman/cron/checkdbs
    #
    # At 9AM, send notifications to disabled members that are due to be
    # reminded to re-enable their accounts.
    0 9 * * * /usr/bin/python2 -S /usr/local/cpanel/3rdparty/mailman/cron/disabled
    #
    # Noon, mail digests for lists that do periodic as well as threshhold delivery.
    0 12 * * * /usr/bin/python2 -S /usr/local/cpanel/3rdparty/mailman/cron/senddigests
    #
    # 5 AM on the first of each month, mail out password reminders.
    0 5 1 * * /usr/bin/python2 -S /usr/local/cpanel/3rdparty/mailman/cron/mailpasswds
    #
    # Every 5 mins, try to gate news to mail. You can comment this one out
    # if you don't want to allow gating, or don't have any going on right now,
    # or want to exclusively use a callback strategy instead of polling.
    #0,5,10,15,20,25,30,35,40,45,50,55 * * * * /usr/bin/python2 -S /usr/local/cpanel/3rdparty/mailman/cron/gate_news
    #
    # At 3:27am every night, regenerate the gzip'd archive file. Only
    # turn this on if the internal archiver is used and
    # GZIP_ARCHIVE_TXT_FILES is false in mm_cfg.py
    27 3 * * * /usr/bin/python2 -S /usr/local/cpanel/3rdparty/mailman/cron/nightly_gzip

    I've also checked the cron.d folder and there is nothing out of the ordinary either...
    The other thing we've noticed is the upcp daily email has stopped coming through and no we're not using mailscanner so the problem doesn't lie there with the exim config file.

    More concerned about the personal crontabs though

    Regards

    Chae

    PS I've only see one mention of personal crontab in this forum and that had to do with mailscanner I think
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    User crontabs are stored in /var/spool/cron/*

    You can edit them from root using:

    crontab -e -u username
     
  3. chae

    chae Well-Known Member

    Joined:
    Apr 19, 2003
    Messages:
    145
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Auckland, New Zealand
    Hi Chirpy,

    I know that :) Thank you but I have shown what was already in the mailman and the root crontabs and nothing out the ordinary. Logwatch from this morning shows...

    Commands Run:
    Time(s)
    * *User mailman:
    * * * /usr/bin/python2 -S /usr/local/cpanel/3rdparty/mailman/cron/checkdbs: 1 Time(s)
    * * * /usr/bin/python2 -S /usr/local/cpanel/3rdparty/mailman/cron/disabled: 1 Time(s)
    * * * /usr/bin/python2 -S /usr/local/cpanel/3rdparty/mailman/cron/nightly_gzip: 1 Time(s)
    * * * /usr/bin/python2 -S /usr/local/cpanel/3rdparty/mailman/cron/senddigests: 1 Time(s)
    * * * personal crontab reloaded: 1 Time(s)
    * * * personal crontab replaced: 2 Time(s)
    * *User root:
    * * * /scripts/exim_tidydb >*/dev/null 2>&1: 1 Time(s)
    * * * /scripts/upcp: 1 Time(s)
    * * * /usr/bin/mrtg /etc/mrtg/mrtg.cfg: 169 Time(s)
    * * * /usr/local/bandmin/bandmin: 29 Time(s)
    * * * /usr/local/cpanel/bin/dcpumon >/dev/null 2>&1: 169 Time(s)
    * * * /usr/local/cpanel/whostmgr/bin/dnsqueue >*/dev/null 2>&1: 57 Time(s)
    * * * /usr/local/prm/prm -q >>*/dev/null 2>&1: 211 Time(s)
    * * * /usr/local/sbin/sim -q >>*/dev/null 2>&1: 423 Time(s)
    * * * /usr/sbin/exim_tidydb -t 1d /var/spool/exim reject: 1 Time(s)
    * * * /usr/sbin/exim_tidydb -t 1d /var/spool/exim retry: 1 Time(s)
    * * * /usr/sbin/exim_tidydb -t 1d /var/spool/exim wait-remote_smtp: 1 Time(s)
    * * * personal crontab edited: 6 Time(s)
    * * * personal crontab listed: 3 Time(s)
    * * * personal crontab reloaded: 3 Time(s)
    * * * personal crontab replaced: 3 Time(s)
    * * * run-parts /etc/cron.daily: 1 Time(s)
    * * * run-parts /etc/cron.hourly: 15 Time(s)

    Excuse my ignorance here with logwatch but everytime I view crontab via shell with either crontab -e or crontab -e -u or through webmin does this register as a "personal crontab" entry with logwatch?

    If so then that'll explain the entries - if not I'm still none the wiser as to finding out what the personal crontabs are or what changes were done.

    Regards

    Chae
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Hi Chae,
    Yes :) All that logwatch is doing for you, is summarizing the contents of /var/log/cron which is continually updated with the actions performed on crontab entries for all users with a crontab: running them, editing them, deleting them, adding them, etc.
     
  5. chae

    chae Well-Known Member

    Joined:
    Apr 19, 2003
    Messages:
    145
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Auckland, New Zealand
    Hi Yah Chirpy,

    Yeah that's what I thought - the penny did eventually drop :D

    Was a wee bit worried in case someone was running their own cron jobs - hence the reason for being paranoid :eek:

    Thanks again
     
Loading...

Share This Page