Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Step in RRDs does not match check interval #797

Open
1 of 2 tasks
cgagnaire opened this issue Jun 27, 2023 · 2 comments
Open
1 of 2 tasks

Step in RRDs does not match check interval #797

cgagnaire opened this issue Jun 27, 2023 · 2 comments

Comments

@cgagnaire
Copy link
Contributor

BUG REPORT INFORMATION

Prerequisites

Versions

For the RPM based systems

centreon-broker-storage-22.10.0-16.el8.x86_64
centreon-broker-cbd-22.10.0-16.el8.x86_64
centreon-broker-22.10.0-16.el8.x86_64
centreon-broker-cbmod-22.10.0-16.el8.x86_64
centreon-broker-core-22.10.0-16.el8.x86_64
centreon-engine-22.10.0-16.el8.x86_64
centreon-engine-daemon-22.10.0-16.el8.x86_64
centreon-engine-extcommands-22.10.0-16.el8.x86_64

Operating System

Oracle Linux 8

How the the component has been installed and versions

  • From sources, from packages
  • components versions

Description

It looks like RRDs are not created with the right step.
When I push new conf, after the first check that retrieve metrics, the RRDs are created with a 5min step eventhough the check is not configured to be executed every 5min.
On the other hand, when I rebuild the graph, the step correspond with the check interval.

Steps to Reproduce

  1. Create a check with a 1min interval,
  2. Dump the RRD file (rrdtool dump /var/lib/centreon/metrics/.rrd .xml),
  3. Rebuild the RRD (through UI),
  4. Dump the RRD file.

Describe the received result

First case : the pdp_per_row of the first rra header will be 300 (5min)
<pdp_per_row>300</pdp_per_row> <!-- 300 seconds -->

After rebuild : pdp_per_row is 60 (1min)
<pdp_per_row>60</pdp_per_row> <!-- 60 seconds -->

Describe the expected result

A pdp_per_row corresponding to the check interval at RRD creation.

Additional relevant information (e.g. frequency, ...)

After saying all this, it looks like it is working correctly sometimes :)
But I can't say why... after a reload or a restart, I don't know...

@cgagnaire
Copy link
Contributor Author

I had a case where I push several services with different check interval.
3 with a 1min interval, 4 with a 5min interval.
One graph respect the 1min step, the others are 5min.

@bouda1
Copy link
Collaborator

bouda1 commented Sep 12, 2023

Hi @cgagnaire

We have worked on this issue recently. I hope the fix will be available very soon.
Cheers.

kduret added a commit that referenced this issue Jun 24, 2024
kduret added a commit that referenced this issue Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants