Thanks Filippo. I have been using top_talkers to fetch top flow hosts and then using get_flow_data to fetch the associated flow parameters which seems to work in my case
*curl --cookie "user=admin; password=admin" "http://lcalhost:3000/lua/top_talkers.lua <http://lcalhost:3000/lua/top_talkers.lua>"* *curl --cookie "user=admin; password=admin" "http://lcalhost:3000/lua/get_flows_data.lua?host=3.3.3.18 <http://lcalhost:3000/lua/get_flows_data.lua?host=3.3.3.18>"* But I will try now to use the lua script to get the flow details and see how it goes. Thanks & Regards Mayur On Wed, May 14, 2014 at 11:46 PM, Filippo Fontanelli <[email protected]>wrote: > 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 > <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 > <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 > >
_______________________________________________ Ntop mailing list [email protected] http://listgateway.unipi.it/mailman/listinfo/ntop
