Skip to content

Collects Cisco NetFlow flows and transforms them into JSON for ntopng to consume via ZMQ

License

Notifications You must be signed in to change notification settings

themainframe/node-netflow-ntopng

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-netflow-ntopng

A NodeJS proxy that takes Cisco NetFlow flow descriptor data and converts it into the strange JSON-over-ZMQ format that is expected by ntopng without the requirement for the (paid) nprobe tool.

You can use this in concert with the Traffic Flow tooling built into MikroTik RouterOS to collect statistics on traffic flows within your network. Just add a Traffic Flow target and point it to the port node-netflow-ntopng is listening on (see Configuration below).

Configuration

Pretty hacky at the minute, sorry. Either edit the script or use the following environment variables:

  • NETFLOW_NTOPNG_ZMQ - The ZMQ URL to bind to and listen for ntopng to subscribe to flow information. tcp://0.0.0.0:5556 by default.
  • NETFLOW_NTOPNG_NF_PORT - The port number on which to bind and listen for Netflow traffic. 3000 by default.

Caveats

This will perform fairly terribly compared to nprobe. I haven't performed any benchmarks but NodeJS is single-threaded. If you need performance, buy nprobe. There we go, it now has a reason to exist other than to remove functionality from ntopng and make it billable. Huzzah.

About

Collects Cisco NetFlow flows and transforms them into JSON for ntopng to consume via ZMQ

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published