1
0
Fork 0
mirror of https://github.com/pavel-odintsov/fastnetmon synced 2024-05-13 11:36:04 +02:00

Fixed lua manual

This commit is contained in:
Pavel Odintsov 2017-12-03 21:56:36 +00:00 committed by GitHub
parent 647778f009
commit 5fe0479464
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,23 +1,10 @@
### We have LUA support for processing NetFlow flows
It supported only for NetFlow v5 and sFLOW at this moment.
It's not compiled by default and you need build it explicitly.
Install dependency list (Debian 8 and Ubuntu 14.04 has it):
```bash
apt-get install -y libluajit-5.1-dev luajit lua-json
```
Build it:
```
cmake -DENABLE_LUA_SUPPORT=ON ..
make
```
It supported only for NetFlow v5 and sFLOW at this moment and enabled by default.
Please be aware! In Ubuntu 14.04 lua-json 1.3.1 is [buggy](https://bugs.launchpad.net/ubuntu/+source/lua-json/+bug/1443288) and should be upgraded to 1.3.2.
Fast and dirty fix for lua-json for Ubuntu 14.04:
Fast fix for lua-json for Ubuntu 14.04:
```bash
wget https://raw.githubusercontent.com/harningt/luajson/1.3.3/lua/json/decode/util.lua -O/usr/share/lua/5.1/json/decode/util.lua