Exporting Capacity Planning Data

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
awilson
Posts: 224
Joined: Mon Mar 21, 2016 1:20 pm

Exporting Capacity Planning Data

Post by awilson »

HI. I saw an earlier question on this topic (https://support.nagios.com/forum/viewto ... y+planning.) The recommendation at that time was to highlight the displayed data tale and paste it into Excel.

We are looking to export the data directly. We have scripted performance data extracts using rrdtool, but it seems there must be a way that scales better. I've glanced at the source under /usr/local/nagiosxi/html/includes/components/capacityplanning and I'm wondering if there is a clear point where we can intercept the data for extract. Is that capability in your closed-source code or is the python code in the backend directory the best path to reach our goal? The capacity planning module is gathering the correct data, it makes more sense to leverage a working solution than to re-invent the wheel.

Thanks.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Exporting Capacity Planning Data

Post by ssax »

The closest you can get is with:

Code: Select all

http://YOURXISERVER/nagiosxi/includes/components/capacityplanning/cp-extrap.php?host=localhost&service=Current%20Load&track=load1&options[method]=Holt-Winters&options[period]=1%20year&cmd=extrapolate
http://YOURXISERVER/nagiosxi/includes/c ... b]HOSTNAME[/b]&service=SERVICEDESC&track=load1&options[method]=Holt-Winters&options[period]=PERIODFROMDROPDOWN&cmd=extrapolate

Accessing the capacity planning data via the API (and the ability to download via CSV) should be in the next minor version of XI (5.3.0), I'm unable to give an ETA though.
awilson
Posts: 224
Joined: Mon Mar 21, 2016 1:20 pm

Re: Exporting Capacity Planning Data

Post by awilson »

Thank you for the rapid reply.

Alan
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Exporting Capacity Planning Data

Post by ssax »

No problem, the API is still relatively new so it'll be nice once more advanced features such as this are added.

Let us know if you have any questions.
Locked