Xymon Mailing List Archive search

reading rrd files for seperate customer "extranet"

3 messages in this thread

list Chris Wopat · Wed, 09 Aug 2006 09:10:14 -0500 ·
Hello,

Searching for the archives for this, I see some discussion on getting customer specific pages (Subject: "Alternate Pagesets"). Instead of this, I'm curious if anyone has written anything or any sample code to read directly from the RRD files to display in HTML.

I'm not too farmiliar with RRD, so that's why I'm asking here first. The idea is to put graphs that have data from hobbit's RRD files to our customer login page. We'd keep track of what directory belongs to which customer via a seperate SQL database with a simple customer-> dir mapping.

Anyone tried this? Or maybe even anyone know sample code to read RRD and graph them, preferably with something PHP driven? Or even possibly what the particular structure of hobbit's RRD's are so I can figure this out a bit more easily?

thanks
--Chris
list Craig Whilding · Wed, 9 Aug 2006 15:16:17 +0100 ·
If you're using hobbit 4.2RC then have a look at the metrics report
under reports, this generates graphs of a specific rrd between 2
periods. Maybe look at the code behind that?
There are utilities for generating html pages of rrd's in the old mrtg
format on the main rrd site.

Thanks,

Craig
quoted from Chris Wopat

-----Original Message-----
From: Chris Wopat [mailto:user-8ece45634613@xymon.invalid] Sent: 09 August 2006 15:10
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] reading rrd files for seperate customer "extranet"

Hello,

Searching for the archives for this, I see some discussion on getting customer specific pages (Subject: "Alternate Pagesets"). Instead of this, I'm curious if anyone has written anything or any sample code to read directly from the RRD files to display in HTML.

I'm not too farmiliar with RRD, so that's why I'm asking here first. The

idea is to put graphs that have data from hobbit's RRD files to our customer login page. We'd keep track of what directory belongs to which customer via a seperate SQL database with a simple customer-> dir
mapping.

Anyone tried this? Or maybe even anyone know sample code to read RRD and

graph them, preferably with something PHP driven? Or even possibly what the particular structure of hobbit's RRD's are so I can figure this out a bit more easily?

thanks
--Chris
list Mike Rowell · Wed, 9 Aug 2006 15:22:21 +0100 ·
Chris,

In a previous job I did this very thing.

The simplest solution I found was to run hobbit on a separate IP not
accessable to the general public, then on the customer extranet setup
the pages you need as a php script doing all the html and menus etc but
doing a readthru on the graphs you need.

I actually built the entire customer extranet around this solution and
it work very well, however you will need to make sure you obfuscate the
urls well enough so that the customers can see where the images are
originating.

Regards,

Mike Rowell
quoted from Chris Wopat

-----Original Message-----
From: Chris Wopat [mailto:user-8ece45634613@xymon.invalid] Sent: 09 August 2006 15:10
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] reading rrd files for seperate customer "extranet"

Hello,

Searching for the archives for this, I see some discussion on getting customer specific pages (Subject: "Alternate Pagesets"). Instead of this, I'm curious if anyone has written anything or any sample code to read directly from the RRD files to display in HTML.

I'm not too farmiliar with RRD, so that's why I'm asking here first. The

idea is to put graphs that have data from hobbit's RRD files to our customer login page. We'd keep track of what directory belongs to which customer via a seperate SQL database with a simple customer-> dir
mapping.

Anyone tried this? Or maybe even anyone know sample code to read RRD and

graph them, preferably with something PHP driven? Or even possibly what the particular structure of hobbit's RRD's are so I can figure this out a bit more easily?

thanks
--Chris


This email has been scanned for all viruses by the MessageLabs service.

This email has been scanned for all viruses by the MessageLabs service. ________________________________________________________________________