Mayur

The ntopng gui is lua based, but the most of the scripts are customized for the 
gui.

see inline

On 15 May 2014, at 00:23, Mayur PC <[email protected]> wrote:

> Hi,
> 
> Im trying to use the LUA scripts in ntopng to retrieve monitoring info. I use 
> curl commands to get information. 
> e.g.:  curl --cookie "user=admin; password=admin" 
> "http://3.3.3.8:3000/lua/get_flows_data.lua?host=1.1.1.1";
> 
> It works fine for few scripts but the flow_stats & flowstats throws an error. 
> I would like to get the top flows in the server along with their bandwidth 
> utilization and port details but I cant seem to get the flows_stats.lua 
> script working. Here is the curl command im trying
> 
> curl --cookie "user=admin; password=admin" 
> "http://3.3.3.8:3000/lua/flows_stats.lua”
 Try this

curl --cookie "user=admin; password=admin" 
"http://localhost:3000/lua/get_flows_data.lua”

> 
> but it throws an error with the full script. Am I fetching the info right? 


In order to fetch your custom information, i suggest you to create a new lua 
script.

Ntopng comes with some examples of the main lua functions, please try to 
execute the following script:

        http://localhost:3000/lua/examples/interface.lua

        http://localhost:3000/lua/examples/ntop.lua

        http://localhost:3000/lua/examples/debug.lua

Use these scprit how a quick start guide to create a new scritp.

> 
> Thanks & Regards
> Mayur
> 
Regards,
Filippo

>  
> _______________________________________________
> Ntop mailing list
> [email protected]
> http://listgateway.unipi.it/mailman/listinfo/ntop

_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop

Reply via email to