Revision: | 1.1 |
Committed: | Sat Mar 9 19:53:24 2002 UTC (22 years, 9 months ago) by tdb |
Branch: | MAIN |
CVS Tags: | HEAD |
Log Message: | Graphing of most of the i-scream data. This is intended as an alternative to the current MySQL/DBReporter style of daily graph generation. This is split into two sections: watch.pl connects to the i-scream client interface, parses all the data and stores it in rrdtool database files. This is still very incomplete and somewhat messy code :) graph.pl generates graphs from the rrdtool database files created by the previous script. It drops these images into a directory structure for viewing over the web. The php pages provide an easy way to view these graphs during development, but it is expected in the long term to integrate this into the i-scream reports pages. Finally XMLParser.pm is a wrapper to the XML parsing to create i-scream style XMLPacket hashes :) |
# | User | Rev | Content |
---|---|---|---|
1 | tdb | 1.1 | graphing of i-scream data using rrdtool. |
2 | |||
3 | tdb, 09/03/2002. | ||
4 | |||
5 | XML parsing is done using the following; | ||
6 | |||
7 | XML::Parser | ||
8 | http://wwwx.netheaven.com/~coopercc/xmlparser/ | ||
9 | |||
10 | Expat | ||
11 | http://expat.sourceforge.net/ | ||
12 | |||
13 | Both of those need to be installed first. | ||
14 | |||
15 | Finally, rrdtool is needed for graphing. It can be found here; | ||
16 | |||
17 | RRDTool | ||
18 | http://rrdtool.eu.org/ | ||
19 | |||
20 | With that lot installed, start watch.pl; | ||
21 | |||
22 | ./watch.pl iscreamserver.domain.com 4510 | ||
23 | |||
24 | This will generate the rrdtool databases from the live data the i-scream server provides. | ||
25 | |||
26 | ./graph.pl | ||
27 | |||
28 | This will generate the graphs. This is best run on a cron job. | ||
29 | |||
30 | Finally, index.php will make a dynamic page based on the data graph.pl generates. |