Help with root crons and maybe more issues

lonsg

Member
May 31, 2017
6
1
3
earth
cPanel Access Level
Root Administrator
so I've moved to a new hosting provider and I'm seeing a lot of crons that I didn't have on my old one. On CENTOS 6.9 x86_64 kvm – server cPanel & WHM 64.0 (build 24)
There are certain times where my server just locks up and cant access anything because cpu is hitting 20 out of 2 cpus and memory nearing 60% needing to use swap. Checking top command it is usually php-cgi and mysqld doing most of the damage and every now and again rpm.

Code:
0 6 * * * /usr/local/cpanel/scripts/exim_tidydb > /dev/null 2>&1
30 5 * * * /usr/local/cpanel/scripts/optimize_eximstats > /dev/null 2>&1
39 5 * * * /usr/local/cpanel/whostmgr/docroot/cgi/cpaddons_report.pl --notify
10 0 * * * /usr/local/cpanel/scripts/upcp --cron
0 1 * * * /usr/local/cpanel/scripts/cpbackup
0 2 * * * /usr/local/cpanel/bin/backup
35 * * * * /usr/bin/test -x /usr/local/cpanel/bin/tail-check && /usr/local/cpanel/bin/tail-check
45 */4 * * * /usr/bin/test -x /usr/local/cpanel/scripts/update_mailman_cache && /usr/local/cpanel/scripts/update_mailman_cache
30 */4 * * * /usr/bin/test -x /usr/local/cpanel/scripts/update_db_cache && /usr/local/cpanel/scripts/update_db_cache
30 */2 * * * /usr/local/cpanel/bin/mysqluserstore >/dev/null 2>&1
15 */2 * * * /usr/local/cpanel/bin/dbindex >/dev/null 2>&1
15 */6 * * * /usr/local/cpanel/scripts/autorepair recoverymgmt >/dev/null 2>&1
*/5 * * * * /usr/local/cpanel/scripts/dcpumon-wrapper >/dev/null 2>&1
2,17,32,47 * * * * /usr/local/cpanel/whostmgr/bin/dnsqueue > /dev/null 2>&1
09,39 * * * * /usr/local/cpanel/scripts/clean_user_php_sessions > /dev/null 2>&1
But my question is which ones are essential here. I don't require backups of my files I don't want any updates I don't use server email. I just have a wordpress website installed. which do I remove. Sorry but I really am a n00b :)

Forgot the add funny thing is whenever I turn on cloudflare I'm under attack mode (ddos protection) cpu usage usually drops down quite rapidly. So I really don't know if it has anything to do with crons or that someone is just curling my site or ddos. Im just confused. but still pretty sure there must be a few crons there that is not needed.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
Hello,

Those are standard cron jobs included with cPanel. I don't recommend removing any of them. For instance, if you wanted to disable backups, you'd do so via "WHM >> Backup Configuration" and the backup script running as part of the cron job would detect that backups are disabled and not generate them (same with cPanel updates, you'd use "WHM >> Update Preferences"). The following thread is useful if you'd like to troubleshoot the server load:

Troubleshooting high server loads on Linux servers

Thank you.
 

lonsg

Member
May 31, 2017
6
1
3
earth
cPanel Access Level
Root Administrator
Hello,

Those are standard cron jobs included with cPanel. I don't recommend removing any of them. For instance, if you wanted to disable backups, you'd do so via "WHM >> Backup Configuration" and the backup script running as part of the cron job would detect that backups are disabled and not generate them (same with cPanel updates, you'd use "WHM >> Update Preferences"). The following thread is useful if you'd like to troubleshoot the server load:

Troubleshooting high server loads on Linux servers

Thank you.
I already removed the eximstats ones as I disabled eximstats from whm I don't need it since it is for emails. I have also stopped updates from whm but don't know which crons to remove to stop it completely and lastly I don't need backups so I see a couple there but which are safe to remove is all I am asking. I previously didn't have this much crons and everything was running perfectly fine.
 

lonsg

Member
May 31, 2017
6
1
3
earth
cPanel Access Level
Root Administrator
All of them are essential, IMHO.


It only takes one out of date wordpress site or even just an addon installed on it, to cause lots of issues like you describe having.
I don't have many addons just total cache and yoast seo. Really I just want to understand what each of these crons do so I can remove ones that I feel like I don't need. Thanks
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
Hello,

I don't suspect any of the cron jobs are leading to load issues based on the information you have provided. Cron jobs don't necessarily indicate whether a specific feature is enabled. For instance, the existence of the "upcp" cron job doesn't mean backups are enabled, as there's functionality built within the script that determines if cPanel should automatically update based on the update preferences you have configured.

Thank you.
 

lonsg

Member
May 31, 2017
6
1
3
earth
cPanel Access Level
Root Administrator
Hello,

I don't suspect any of the cron jobs are leading to load issues based on the information you have provided. Cron jobs don't necessarily indicate whether a specific feature is enabled. For instance, the existence of the "upcp" cron job doesn't mean backups are enabled, as there's functionality built within the script that determines if cPanel should automatically update based on the update preferences you have configured.

Thank you.
I have set from whm to never update. However my question is what are these and all cant be vital for the system to run since I only had 4 in my previous setup and everything was working fine.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
Hello,

It's likely the previous server was missing some important cron jobs. The cron jobs listed in your earlier response are standard cron jobs included by default. The cron jobs are not required for your services to run, but they are vital if you want to ensure all cPanel & WHM features work smoothly.

Thank you.
 

lonsg

Member
May 31, 2017
6
1
3
earth
cPanel Access Level
Root Administrator
Hello,

It's likely the previous server was missing some important cron jobs. The cron jobs listed in your earlier response are standard cron jobs included by default. The cron jobs are not required for your services to run, but they are vital if you want to ensure all cPanel & WHM features work smoothly.

Thank you.
yup thats what I mean I don't require updates so it is not vital I don't mind not having the latest update or security patch.

so please someone tell me just what do I do if I don't want cpanel updates or backups or mail can I remove the following?

39 5 * * * /usr/local/cpanel/whostmgr/docroot/cgi/cpaddons_report.pl --notify
10 0 * * * /usr/local/cpanel/scripts/upcp --cron
0 1 * * * /usr/local/cpanel/scripts/cpbackup
0 2 * * * /usr/local/cpanel/bin/backup
35 * * * * /usr/bin/test -x /usr/local/cpanel/bin/tail-check && /usr/local/cpanel/bin/tail-check
45 */4 * * * /usr/bin/test -x /usr/local/cpanel/scripts/update_mailman_cache && /usr/local/cpanel/scripts/update_mailman_cache

This one I already removed and keeps coming back even though I have eximstats disabled from whm.
0 6 * * * /usr/local/cpanel/scripts/exim_tidydb > /dev/null 2>&1
 

Infopro

Well-Known Member
May 20, 2003
17,075
524
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
I don't require updates
Yes you do. I hate to disagree with you, but you do. Always. It's the only way you'll keep your site, your server and all your work, safe.

can I remove the following?
Short answer, probably.
More: why concern yourself with these, ignore them and let them do what they do.

Back up the file, edit file to remove them and wait to see what breaks. If you need to know if you need them or not that's one way to find out. ;)