Exporting .rrd graphs?
Exporting .rrd graphs?
Is it possible to export the graphs generated as an image to an external destination? I'd like to look into using the generated graph data to a customer portal.
Re: Exporting .rrd graphs?
True exporting would require a custom script. If you have Enterprise, you could schedule a report of the graph to email to their portal - this would require a script on their end to get the graph into their frontend.
You could also use the direct url for the graph in question. This would require:
1. The url - right click on the graph in question and open in a new tab and then view the image. This is the base url for the image.
2. Create a *read-only* XI user with only rights to the services in question.
3. Go to Admin --> Manage Components --> Backend API. Select your newly created read-only user and copy the string "username=<user>&ticket=<ticket#>" from the end of one of the fields.
4. Append the backend ticket url to the image url. For example:
5. Embed the new url from step 4 in the clients app.
Couple of notes:
Ticket IDs will allow them to log into your XI server, so make sure the rights are minimal (READ-ONLY).
If they cannot route to your xi server, the URL solution will not work for you.
You could also use the direct url for the graph in question. This would require:
1. The url - right click on the graph in question and open in a new tab and then view the image. This is the base url for the image.
2. Create a *read-only* XI user with only rights to the services in question.
3. Go to Admin --> Manage Components --> Backend API. Select your newly created read-only user and copy the string "username=<user>&ticket=<ticket#>" from the end of one of the fields.
4. Append the backend ticket url to the image url. For example:
Code: Select all
https://x.xx.x.x/nagiosxi/includes/components/perfdata/graphApi.php?host=x.x.x.x&service=Networking_for_VMHost&source=1&view=1&start=&end=&rand=1381269385&username=<user>&ticket=<ticket#>Couple of notes:
Ticket IDs will allow them to log into your XI server, so make sure the rights are minimal (READ-ONLY).
If they cannot route to your xi server, the URL solution will not work for you.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.