Page 1 of 1

Unable to set STEP interval when exporting rrd using API

Posted: Thu Sep 12, 2019 3:35 am
by mejokj
Hello,

I am trying to export rrd data using Nagios xi API for the last 1 month with 15 min step interval. It's exporting successful but the time intervel is different. But when I fetch 1-day
    data it is working fine.
    The below is my command used

    curl -XGET "http://192.168.0.119/nagiosxi/api/v1/ob ... =localhost"

    Below is the result metadata it shows different step interval.

    ++++++++++++++++++
    "meta": {
    "start": "1565596800",
    "step": "7200",
    "end": "1565596800",
    "rows": "374",
    "columns": "4",
    "legend": {
    "entry": [
    "rta",
    "pl",
    "rtmax",
    "rtmin"
    ++++++++++++++++++

    Kindly check and help me to fix this issue

    Re: Unable to set STEP interval when exporting rrd using API

    Posted: Thu Sep 12, 2019 7:36 am
    by scottwilkerson
    Here is a thread that describes what is going on
    https://support.nagios.com/forum/viewto ... 16#p260641

    It can also get limited to the maxrows default of rrd xport
    https://linux.die.net/man/1/rrdxport

    Unfortunately I can't give a quick fix for this but there is a feature request to add the maxrows as an option to override this

    Re: Unable to set STEP interval when exporting rrd using API

    Posted: Sun Sep 15, 2019 4:21 am
    by mejokj
    Hello,
    can you give API command to export the last month data with 10 min step interval?

    Re: Unable to set STEP interval when exporting rrd using API

    Posted: Mon Sep 16, 2019 6:55 am
    by scottwilkerson
    mejokj wrote:Hello,
    can you give API command to export the last month data with 10 min step interval?
    The minimum step for anything older than 10 days is 30 minutes