lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 21 February 2015 at 05:59, Stefan Parvu <sparvu@kronometrix.org> wrote:
Hi,

Anyone, any ideas if there is anything done in Lua which can read /proc from Linux or
sysctl interface from *BSD systems. Im interested to use Lua to fetch system statistics:

 * cpu, memory utilization
 * disk, nic utilization

and find out if I could port some of the Kronometrix perl data recorders to Lua. I want to
make the data recorder package even smaller but keep a scripting language rather than
use C.

http://www.kronometrix.org/recording/agents.html

Many thanks,

--
Stefan Parvu <sparvu@kronometrix.org>


There is a whole project "Heka" https://hekad.readthedocs.org/ that is for reading misc stats files, log outputs etc.

You can check out some of the example sources: https://github.com/mozilla-services/heka/tree/master/sandbox/lua/decoders