diff --git a/doc/rrdpython.pod b/doc/rrdpython.pod
index a158577f7f983dd474e3bf3b569a03fc3ce4eeb9..f041b0b59b0eed011bb592a1c6d48f3de0cf9879 100644 (file)
--- a/doc/rrdpython.pod
+++ b/doc/rrdpython.pod
=head1 SYNOPSIS
import rrdtool
- rrdtool.create('/tmp/test.rrd', 'DS:foo:GUAGE:20:0:U')
+ rrdtool.create('/tmp/test.rrd', 'DS:foo:GAUGE:20:0:U')
=head1 DESCRIPTION
=head1 EXAMPLE
+ import sys
+ sys.path.append('/path/to/rrdtool/lib/python2.3/site-packages/')
import rrdtool, tempfile
DAY = 86400
YEAR = 365 * DAY
fd,path = tempfile.mkstemp('.png')
- rrdtool.graph(path,
+ rrdtool.graph(path,
'--imgformat', 'PNG',
'--width', '540',
'--height', '100',
print info['last_update']
print info['ds']['downloads']['minimal_heartbeat']
+If you use the B<site-python-install> make target you can drop to first sys.path.append
+line since the rrdtool module will be available everywhere.
+
+If rrdtool runs into trouble, it will throw an exception which you might want to catch.
+
=head1 SEE ALSO
rrdcreate, rrdupdate, rrdgraph, rrddump, rrdfetch, rrdtune, rrdlast,