[case 46672] Stats Deleted after each upcp run

hbouma

Well-Known Member
Jun 8, 2002
61
1
308
Okay, so now that I've finally started upgrading 11.28, I see one of the hall of fame bugs is still in cPanel even though I reported this years ago back in the early cPanel 10 days if not before then.

Basically, upcp wipes out the daily usage reports when its ran. All the days stats get set back to zero. This is a particular problem because cPanel often sets up the upcp cron job to be ran at just before midnight. The stats then get deleted at the end of every day leaving you with no history of what took place on the server that day. This can be good when you see you missed a high load day on the server and you want to try and find out what happened.

I'm also surprised that this bug has lasted for years given that you can end up with servers with no history of usage reports. This is right up there with the DNS Only build being broken for a year. It must have the survivor immunity totem or something.

So my feature request is to stop having upcp wipe out the daily usage reports.

Hal
 

Infopro

Well-Known Member
May 20, 2003
17,075
524
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
In Raw Access logs section of cPanel there are options to archive logs.

Archive logs in your home directory at the end of each stats run[ [every 24 hour(s)~]]
Remove the previous month's archived logs from your home directory at the end of each month
 

hbouma

Well-Known Member
Jun 8, 2002
61
1
308
I'm not talking about Apache log files - where do I mention website log files? and besides, running upcp wouldn't cause those stats to get removed - cpanellogd would when it does its log rotation.

I'm talking about is what is now called the daily process log in WHM that shows how much CPU/Memory/MySQL sites have used during the day. Running upcp always wipes the metrics out for the current day. When cPanel sets up the cron job to run upcp at say 11:45 PM, you'll be left with no metrics history on the server as each day's totals are wiped out by the daily cron job.

Hal
 

cPanelCory

Release Manager - EasyApache
Staff member
Jan 18, 2008
79
10
133
Houston
cPanel Access Level
Root Administrator
Hello,

I have been able to confirm in 11.28 the behaviour you are seeing and I've opened an internal case on it for the developers to take a look at.

Thank you for reporting it.