Report: Availability - csv

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
Nuggel1234
Posts: 23
Joined: Mon May 28, 2018 2:39 am

Report: Availability - csv

Post by Nuggel1234 »

Hello,

is there a possibilty to change the name of the availability csv export to a "timestamp" oder something like that?
Or maybe to let a file growth?

For example: I want a avail. report for the whole year. Can I get a csv with data from january and february and so on, instead of the actual data?

I'm looking for a possibility to customize the csv.

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

Re: Report: Availability - csv

Post by ssax »

I apologize, I'm having trouble understanding what specifically you're trying to do.
Can I get a csv with data from january and february and so on, instead of the actual data?
Are you saying instead of the actual data (like the Event Log report) you are looking for the Availability data from that report in CSV format?

Customize the CSV how specifically? You could query the XI API endpoints and then process that into a CSV, see the Help menu item in the XI web interface for working examples:

https://YOURXISERVER/nagiosxi/help/api- ... ailability

Another option is the JSON Query endpoints:

https://YOURXISERVER/nagios/jsonquery.html
Nuggel1234
Posts: 23
Joined: Mon May 28, 2018 2:39 am

Re: Report: Availability - csv

Post by Nuggel1234 »

No need to apologize, maybe I explained it wrong.

First question / painpoint:
Wenn we schedule a report, we get a csv with the follwing name 164478843-availibility_report.csv
Where does that nameing come from and is it possible to customize it? for example use of the actual date, instead of a (from my point of view) random number. For example %date% %hostgroup%.csv

That would help us a lot

Second question / painpoint:
The other thing is to get a csv from data today. If the same schedule runs tomorrow, we need the data from yesterday and the actual data, so the csv will growth with time.

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

Re: Report: Availability - csv

Post by ssax »

Thank you for clarifying, it definitely helped! :D

1. Unfortunately, the report name is not currently modifiable as it is hardcoded in the source code.

I have submit a feature-request to development on your behalf:

Code: Select all

XI - Sending Reports - Add options such as host/service/hostgroup/servicegroup that were selected to the attachment name
Please keep in mind that the decision to implement the enhancement is at the discretion of our development team


2. For this one, do you have Today selected in the Period dropdown when running the report?

Are you trying to aggregate multiple "today" CSVs together?

Or are you wanting the Period to increase as time progresses?
Locked