Unable to set STEP interval when exporting rrd using API

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mejokj
Posts: 353
Joined: Mon Jul 22, 2013 10:31 pm

Unable to set STEP interval when exporting rrd using API

Post 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
    scottwilkerson
    DevOps Engineer
    Posts: 19396
    Joined: Tue Nov 15, 2011 3:11 pm
    Location: Nagios Enterprises
    Contact:

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

    Post 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
    Former Nagios employee
    Creator:
    Human Design Website
    Get Your Human Design Chart
    mejokj
    Posts: 353
    Joined: Mon Jul 22, 2013 10:31 pm

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

    Post by mejokj »

    Hello,
    can you give API command to export the last month data with 10 min step interval?
    scottwilkerson
    DevOps Engineer
    Posts: 19396
    Joined: Tue Nov 15, 2011 3:11 pm
    Location: Nagios Enterprises
    Contact:

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

    Post 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
    Former Nagios employee
    Creator:
    Human Design Website
    Get Your Human Design Chart
    Locked