Statistics update "cycle" custom values are reset to default upon Tweak Settings save

Rooter

Well-Known Member
Apr 23, 2003
146
1
243
Houston, Texas, U.S.A.
cPanel Access Level
Root Administrator
I posted a bug report for this issue earlier last month, but I hope that by creating a thread for it more attention will be drawn to the matter. (I searched thoroughly on the forums and could not find the same nor a similar issue.)

Every time the Tweak Settings page is Saved it resets the "cycle" value used
for statistics / stats processing frequency / interval so that any custom values setup via WHM's Statistics Software Configuration will be erased and reset to the default of "1"
(processed every 1 day vs "0.5" for every 12 hours).

Output after Saving on the Tweak Settings page:

Settings have been tweaked
Main >> Security >> Tweak Security
Your changes have been saved.
Updating your system to reflect any changes ...
Updating "cycle" from "0.25" to "1".
"cycle" was updated.
Done.
Restarting cPanel daemons ... Done


I confirm the bug still exists on at least the following OS and cPanel/WHM build combinations.

WHM 10.8.0 cPanel 10.8.2-C460
CentOS 4.3 i686 - WHM X v3.1.0

WHM 10.8.0 cPanel 10.8.2-C460
RedHat Enterprise 4 i686 - WHM X v3.1.0

WHM 10.8.0 cPanel 10.8.2-C460
RedHat Enterprise 3 i686 - WHM X v3.1.0


Please see the following Bugzilla report, Bug 4377, to show your support by voting (please?) and for further updates. :)
http://bugzilla.cpanel.net/show_bug.cgi?id=4377
 

lloyd_tennison

Well-Known Member
Mar 12, 2004
697
1
168
Maybe it has something to do with the statitistics software being hours, not days. You certainly would not want to run it every .25 hours.

Code:
Generate statistics every [fill in the blank]  hours.
is what the box says.
 

Rooter

Well-Known Member
Apr 23, 2003
146
1
243
Houston, Texas, U.S.A.
cPanel Access Level
Root Administrator
Re: Statistics update "cycle" custom values are reset to default upon Tweak Settings

lloyd_tennison said:
Maybe it has something to do with the statistics software being hours, not days. You certainly would not want to run it every .25 hours.

Code:
Generate statistics every [fill in the blank]  hours.
is what the box says.
In this case, a value of "1" equals a stats processing interval of every 24 hours. My value of "0.25" equates to running stats every 6 hours. :)
 

lloyd_tennison

Well-Known Member
Mar 12, 2004
697
1
168
Um, if it is not working for you why are you saying that? If I put a "4" in there it runs every four hours. If I put a "3" in there in runs every three hours.

No where in cpanellogd does it talk about "days." It talks about "hours."

Maybe you should try putting a six in it (for six hours) and see if it works. I will bet it does.

Mine has been running at "3" hours for well over a year.
 

cpanelinfoseeker

Well-Known Member
Oct 25, 2002
323
3
168
NE Illinois
cPanel Access Level
Root Administrator
Any time you save the "Tweak Settings" page, the value for "Number of days between processing log files and bandwidth usage (default 1, decimal values are ok):" is reset to "1" which is one day.

The value in "Statistics Software Configuration" is reset to the corresponding number of hours which is 24 for one day.

What I do is after saving anything in "Tweak Settings" is to go to "Statistics Software Configuration" and reset my hours there. This has been my solution for about 4-6 months now, but it would be nice to have this fixed so it maintains the displayed value, and not reset it to 1 day everytime anything is edited in the "Tweak Settings" page, but I can see some other changes happening more urgently than this.

Ron
 

Rooter

Well-Known Member
Apr 23, 2003
146
1
243
Houston, Texas, U.S.A.
cPanel Access Level
Root Administrator
Re: Statistics update "cycle" custom values are reset to default upon Tweak Settings

lloyd_tennison said:
Um, if it is not working for you why are you saying that? If I put a "4" in there it runs every four hours. If I put a "3" in there in runs every three hours.

No where in cpanellogd does it talk about "days." It talks about "hours."

Maybe you should try putting a six in it (for six hours) and see if it works. I will bet it does.

Mine has been running at "3" hours for well over a year.
The issues is not a problem of entering in a custom value on the Statistics Software Configuration page, but rather having the custom value reset every time the Tweak Settings page is saved or updated.

I enter in a value of 6 (hours) which is then saved in cPanel configuration as "0.25"; what I was referring to was the actual configuration (decimal) value that cPanel saves the custom interval as.

As cpanelinfoseeker stated, it is not a very urgent issue, but it has been quite some time since the bug was introduced and a permanent fix would be greatly appreciated. A genuine fix to the problem would save precious time for those that have tens or hundreds of servers to manage (i.e. save time when the Tweak Settings page is updated and a custom stats processing interval is used).
 

Mal

Member
Sep 4, 2004
9
0
151
Am glad I found this thread, I've had my option set to 0.5 for years and today needed to change it to 0.25 but the field no longer accepts decimals.

It didn't occur to me to look in the "Statistics Software Configuration" page. Anyway, am grateful this has been fixed (not the bug but knowing the other option)... otherwise my website would have been down within hours!