X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcollectd-lua.pod;h=eccd71fb1f076acfde4c58bf6c0790702e0e83e4;hb=d931e9e904f61e28013c01ee6903985d3c9f0ba8;hp=7a25655088283188e2dc4cce260ac91018c91467;hpb=88001af68cb86d0d95fa143b031359b10eddbe1f;p=collectd.git diff --git a/src/collectd-lua.pod b/src/collectd-lua.pod index 7a256550..eccd71fb 100644 --- a/src/collectd-lua.pod +++ b/src/collectd-lua.pod @@ -72,8 +72,8 @@ These are used to collect the actual data. It is called once per interval (see the B configuration option of collectd). Usually it will call B to dispatch the values to collectd which will pass them on to all registered B. If this function -does not return 0 the plugin will be skipped for an increasing -amount of time until it returns normally again. +does not return 0, interval between its calls will grow until function returns +0 again. See the B configuration option of collectd. =item write functions @@ -90,12 +90,14 @@ The following functions are provided to Lua modules: =item register_read(callback) +Function to register read callbacks. The callback will be called without arguments. If this callback function does not return 0 the next call will be delayed by an increasing interval. -=item register_write +=item register_write(callback) +Function to register write callbacks. The callback function will be called with one argument passed, which will be a table of values. If this callback function does not return 0 next call will be delayed by @@ -136,8 +138,8 @@ A very simple write function might look like: To register those functions with collectd: - collectd.register_read(read) - collectd.register_write(write) + collectd.register_read(read) -- pass function as variable + collectd.register_write("write") -- pass by global-scope function name =back @@ -150,12 +152,12 @@ L, =head1 AUTHOR The C has been written by -Julien Ammous Ej.ammousatEgmail.comE, +Julien Ammous Ej.ammousEatEgmail.comE, Florian Forster EoctoEatEcollectd.orgE and -Ruben Kerkhof ErubenatErubenkerkhof.com and +Ruben Kerkhof ErubenEatErubenkerkhof.comE. This manpage has been written by Ruben Kerkhof -ErubenatErubenkerkhof.com. +ErubenEatErubenkerkhof.comE. It is based on the L manual page by Florian Forster EoctoEatEcollectd.orgE and Sebastian Harl EshEatEtokkee.orgE.