nDPId/examples/c-collectd
Toni Uhlig 19036951c7 bump libnDPI to 1216ec6a2719408a487f696f5b601bdb9eec727d
* incorporated upstream API changes related to detection protocol bitmasks
 * added missing flow detection categories

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
2025-09-09 12:05:26 +02:00
..
www/dpi Improved collectd example. 2024-01-05 11:26:53 +01:00
c-collectd.c bump libnDPI to 1216ec6a2719408a487f696f5b601bdb9eec727d 2025-09-09 12:05:26 +02:00
plugin_nDPIsrvd.conf c-collectd: fixed incorrect PUTVAL 2022-08-15 16:42:59 +02:00
README.md nDPIsrvd-collectd: RRD Graph generation script and a basic static HTML5 website for viewing the generated image files. 2022-09-12 13:23:50 +02:00
rrdgraph.sh Fixed invalid flow risk aggregation in collectd/influxd examples. 2024-01-06 19:32:47 +01:00

HowTo use this

This HowTo assumes that the examples were sucessfully compiled and installed within the prefix /usr on your target machine.

  1. Make sure nDPId and Collectd is running.
  2. Edit collectd.conf usually in /etc.
  3. Add the lines in plugin_nDPIsrvd.conf to your collectd.conf. You may adapt this file depending what command line arguments you'd supplied to nDPId.
  4. Reload your Collectd instance.
  5. Optional: Install a http server of your choice. Place the files in /usr/share/nDPId/nDPIsrvd-collectd/www somewhere in your www root.
  6. Optional: Add rrdgraph.sh as 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 run rrdgraph.sh once per hour. You can adjust this until it fit your needs.