mirror of
				https://github.com/optim-enterprises-bv/nDPId.git
				synced 2025-10-30 09:52:22 +00:00 
			
		
		
		
	 2103ee0811
			
		
	
	2103ee0811
	
	
	
		
			
			* Still not perfect, but the code before was not even able to deal with JSON arrays. Use common "speaking" function names for all functions in nDPIsrvd.h * Provide a more or less generic and easy extendable JSON walk function. * Modified C examples to align with the changed C API. * c-collectd: Reduced lot's of code duplication by providing mapping tables. * nDPId: IAT array requires one slot less (first packet has always an IAT of 0). Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
HowTo use this
This HowTo assumes that the examples were sucessfully compiled and installed within the prefix /usr on your target machine.
- Make sure nDPId and Collectd is running.
- Edit collectd.confusually in/etc.
- Add the lines in plugin_nDPIsrvd.confto yourcollectd.conf. You may adapt this file depending what command line arguments you'd supplied tonDPId.
- Reload your Collectd instance.
- Optional: Install a http server of your choice.
Place the files in /usr/share/nDPId/nDPIsrvd-collectd/wwwsomewhere in your www root.
- Optional: Add rrdgraph.shas cron job e.g.0 * * * * /usr/share/nDPId/nDPIsrvd-collectd/rrdgraph.sh [path-to-the-collectd-rrd-directory] [path-to-your-dpi-wwwroot]. This will runrrdgraph.shonce per hour. You can adjust this until it fit your needs.