python plugin: return error on config failure
[collectd.git] / src / collectd-python.pod
index 77f3497..0202b77 100644 (file)
@@ -658,6 +658,8 @@ Any Python module will start similar to:
 
 A very simple read function might look like:
 
+  import random
+
   def read(data=None):
     vl = collectd.Values(type='gauge')
     vl.plugin='python.spam'