1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
|
$Id: README,v 1.7 2003/06/11 23:30:18 joeym Exp joeym $
1.04: only update is the change to the BSD license to make
php4_rrdtool includable in Debian/Linux distributions.
------------------------------------
UPDATES for php4:
This version of the module will only build for php4/zend. It will
not build for php3. Get php3_rrdtool from the rrdtool distribution
if you need the rrd_* functions in php3.
The module now contains two ways to install. The first is as
a self-contained extension (much like the php3_rrdtool module),
and the second is as a php4 embedded extension. See the INSTALL
file for instructions on how to install in both ways.
Also fixed some of the scripts in the 'examples' directory.
A few of them were checking the return value for -1 on some
of the rrd_* function calls. Most calls will return 0 or 1 to
indicate failure or success, not -1. Sorry about that.
------------------------------------
PHP bindings for RRD Tool.
Contained herein are bindings to allow you to interface
php scripts with RRD tool directly via RRD tool's 'librrd' library,
thus avoiding the need to use system() calls to the rrdtool binary.
RRD Tool is an AMAZING package of tools to faciliate
the easy storage, retrieval, and graphing of statistics (usually
but not limited to bit/byte counts from routers, switches, and
hubs). It was written by the author of MRTG, Tobias Oetiker
(oetiker@ee.ethz.ch). The primary web site for RRD Tool is:
http://www.caida.org/Tools/RRDtool
Reason I wrote this: Wanted to use PHP to create fairly real-time /
dynamic web pages w/ RRD tool, but the only way was to use system()
and popen() with PHP, since there was no direct interface to RRD
Tool from PHP. The fork()ing would have been slow and tedious
so that was pretty much out of the question. I could have used the
Perl library (RRDs) to interface ePerl, or mod_perl, or even
'rrdcgi', but I didn't really want to. I wanted to use PHP and
there was nothing to change my mind.
You are free to redistribute the source provided my name is
kept at the top of the source files as credit for the original
author. I make no warranties to the usability of this software,
nor I am responsible if your machine explodes (although it
shouldn't).
BUGS:
There might be some. Let me know: joeym@joeym.net.
Patches to fix bugs you find are more welcome than simple
reports of bugs (I don't have a lot of time to maintain
this code).
You must include OS, apache version, and method of use
(embedded or self-contained extension) in bug reports. This
info is important. Also, give as much detail and examples
as possible so I can figure out what is wrong =)
THANKS:
I'd like to thank Jeroen Roodnat for generously helping
debug the PHP4/Zend version of this module.
Thanks to Alex Lam for helping with a better rrd_fetch()
example =)
Thanks also to Michael Hanney, for providing a couple of
updated patches for config.m4 for php4.0.6.
Thanks to Chris R. Roosen for helping fix the rrd_fetch()
bugs in php4-rrdtool 1.01.
Thanks to Pete Lancashire for helping with testing.
Thanks to Konrad Riedel for providing a quick fix to
allow compilation with php-4.1.0.
Joe Miller, <joeym@joeym.net>
2/12/2000 (updated: 12/22/2001)
|