Couple of things for anyone ready to play with rrdtool and lua:
1. Get lua 5.1. Lua 5.2 will not work with RRDtool since some calls have been replaced from main
library, example: lua_call
2. You can use the distribution packages or compile your own. Make sure if you compile
and build LUA yourself you will enable dynamic shared libraries for LUA. Default
LUA is building the only a static lib
3. luajit is not compatible with rrdtool's configure script. It will not correctly detect nor will
it work.
Now, this will come as a problem if one is trying to use RRDtool + openresty. Would be good to see some integration between the
two, probable the simplest way will be RRDtool will support luajit. Its configure script expect lua 5.x :(