From: Ruben Kerkhof Date: Sun, 14 Aug 2016 11:42:41 +0000 (+0200) Subject: Lua plugin: add a manpage X-Git-Tag: collectd-5.6.0~33^2~8 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=ba420266281dac4ee5c1db44299db9594fb5b15a;p=collectd.git Lua plugin: add a manpage --- diff --git a/src/Makefile.am b/src/Makefile.am index 9a8e346d..60765818 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -1368,6 +1368,7 @@ dist_man_MANS = collectd.1 \ collectd-exec.5 \ collectdctl.1 \ collectd-java.5 \ + collectd-lua.5 \ collectdmon.1 \ collectd-nagios.1 \ collectd-perl.5 \ @@ -1383,6 +1384,7 @@ EXTRA_DIST = collectd.conf.pod \ collectd-exec.pod \ collectdctl.pod \ collectd-java.pod \ + collectd-lua.pod \ collectdmon.pod \ collectd-nagios.pod \ collectd-perl.pod \ diff --git a/src/collectd-lua.pod b/src/collectd-lua.pod new file mode 100644 index 00000000..62dd850e --- /dev/null +++ b/src/collectd-lua.pod @@ -0,0 +1,161 @@ +# Permission is hereby granted, free of charge, to any person obtaining a +# copy of this software and associated documentation files (the "Software"), +# to deal in the Software without restriction, including without limitation +# the rights to use, copy, modify, merge, publish, distribute, sublicense, +# and/or sell copies of the Software, and to permit persons to whom the +# Software is furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. + +=encoding UTF-8 + +=head1 NAME + +collectd-lua - Documentation of Collectd's C + +=head1 SYNOPSIS + + LoadPlugin lua + # ... + + BasePath "/path/to/your/lua/scripts" + Script "script1.lua" + Script "script2.lua" + + +=head1 DESCRIPTION + +The C embeds a Lua interpreter into Collectd and provides an +interface to Collectd's plugin system. This makes it possible to write plugins +for Collectd in Lua. This is a lot more efficient than executing a +Lua script every time you want to read a value with the C (see +L) and provides a lot more functionality, too. + +The minimum required Lua version is I<5.1>. + +=head1 CONFIGURATION + +=over 4 + +=item B I + +Loads the Lua plugin. + +=item B I + +The directory the C looks in to find script B