Enhancement #378
add more options to curves from RRDTool (was: graphs shows wrong values)
| Status: | New | Start: | ||
| Priority: | Normal | Due date: | ||
| Assigned to: | - | % Done: | 0% |
|
| Category: | Centreon - Graphs | |||
| Target version: | Centreon-2.3 | |||
| Resolution: |
Description
Hello,
as you can see on the attached graph and the corresponding values, the graph is off by +5 or so. If this should be by design or by misconfiguration, so please explain and document this behavior.
History
Updated by Nikolaus Filus 527 days ago
I now discovered the values on graph match the scaled raw rrd values (also attached). But this still doesn't explain why rrd values are so different than the raw sensor values stored in centstorage.
Updated by Nikolaus Filus 491 days ago
In bin/centstorage all rrd files are created like:
create temperature.rrd -s $interval \ DS:$metric_name:GAUGE:$interval:U:U RRA:AVERAGE:0.5:1:$my_len_storage_rrd RRA:AVERAGE:0.5:12:$my_len_storage_rrd
and in www/include/views/graphs/graphODS/generateImages/generateODSImageZoom.php the graphs are created by:
DEF:v".$cpt."=".$RRDdatabase_path.$key.".rrd:".substr($metrics[$key]metric,0 , 19).":AVERAGE
Now I would ask to append an optional ":step=XXX" parameter, so that the average function can be flattened. This is useful when a metric was created with a big interval, which was shortened later. Then the rrd data is still averaging over the old interval.
Updated by Nikolaus Filus 312 days ago
- Category deleted (
CentStorage) - Priority changed from High to Normal
- Target version changed from Centreon-2.1 to Centreon-2.2
Updated by Nikolaus Filus 160 days ago
I have to take a look at this again, but I would say "yes". I saw some re-calculation work done on the new centstorage, but for the perl version this should still apply ...
Updated by Julien Mathis 97 days ago
Hi Niko,
What I have to change on centstorage for fixing your problem ?
Regards
Updated by Nikolaus Filus 97 days ago
Hi Julien,
the original problem from then was:
I started to collect the values with interval of 5, then I changed to interval of 1. After this change the graphs were still graphed as an average over 5 minutes, although the newest data was already provided at a higher resolution.
- save rrds always at highest resolution as defined in nagios global (default:60s), then graph with check_interval resolution
- mark RRD for rebuild, when check interval changes (and notify user) [NOTE: due to bug #403 I lost all my data back then!]
- always append ":step=".$checkinterval parameter to the command line in image generation. Compare: http://oss.oetiker.ch/rrdtool/doc/rrdgraph_data.en.html
Which one (or all) to choose and implement is up to discussion.
In long term we need to introduce more RRA types then just AVG! See enhancement #1555 for a proposition.
Hope that helps to understand the problem.
Regards
Updated by Julien Mathis 97 days ago
I have developped for client needs a script who check id the RRDTool DB is well configured compared to nagios interval. If it's not the case, the RRD db will be rebuild.
Is it what you want ?