Cacti: When using consolidation functions, retrieving the first step can cause errors

Created on 4 Sep 2019  路  6Comments  路  Source: Cacti/cacti

Describe the bug
Cacti only output the MAX value on all graphs.

For example, the default "Interface Traffic" graph template will show the "MAX" value by "Line",
and show "AVERAGE" value by "Area". But My Cacti will draw them with same value.

To Reproduce
Steps to reproduce the behavior:

  1. All the graphs show the MAX value only, and the RRD commands is not correct:

Here is the graph template content:
Screenshot from 2019-09-04 15-29-50

It's RRD command output:
Screenshot from 2019-09-04 15-13-56

Expected behavior
Screenshot from 2019-09-04 14-52-17
(From another Cacti server)

Desktop (please complete the following information):

  • OS: Ubuntu 18.04
  • Browser: Chrome
  • Version: 76

Additional context
I have another Cacti 1.2.6 server, and it works well.

bug resolved

All 6 comments

Can you copy/paste the text version of your outputs? They will be useful during diagnosis.

I can confirm this. Have to review the code to see what happened.

Okay, I recall this now. It was done due to an RRDtool quirk around the first RRA around the fact that the max and average would both be the same. Boy wish I had kept better notes on this. It did not show up sooner due to the coding error that was resolved recently that allowed it to go unchecked. Let me see if I can do better math. Maybe I'll just revert the change. More to follow.

The source commit was here. https://github.com/Cacti/cacti/commit/cd14f260dde6499bec829753a026a1e1f37a67a5#diff-e93c440af885a2ac30d2e08c774a3934 It had to do with Aggregate. I have to re-review the reason for the change.

I'm going to close this now. Let me know if you are satisfied with the fix.

I just test this fix on my two cacti servers. And both of them work perfectly. Thank you.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aminli picture aminli  路  6Comments

interduo picture interduo  路  6Comments

interduo picture interduo  路  8Comments

christh0mas picture christh0mas  路  3Comments

darius1706 picture darius1706  路  5Comments