ntop / nProbe

Open source components and extensions for nProbe
http://ntop.org
GNU General Public License v2.0
1.64k stars 44 forks source link

Config file does not work with --kentik-host option #71

Closed DanEllis197 closed 8 years ago

DanEllis197 commented 8 years ago

nprobes –kentik-host -S 1:128 -i bond0 Works nprobe –kentik-host -S 1:128 -i bond0 Works nprobe /etc/nprobe/nprobe-bond0.conf Does NOT Work

nprobe-bond0.conf contains: --kentik-host= -S=1:128 -i=bond0

ValentinaViscarelli commented 8 years ago

@DanEllis197 Could you please report the output of "nprobe /etc/nprobe/nprobe-bond0.conf" command? Thanks

DanEllis197 commented 8 years ago

2 outputs. First is with the config file. It appears to be completely ignoring the --kentik-host option, obvious by it not sending our receiver and asking for a license. Second shows what it typically is when working properly.

root@shell01:/home/dan/nprobe# cat test.conf nprobe-bond0.conf contains: --kentik-host= -S=1:128 -i=eth1 root@shell01:/home/dan/nprobe# ./nprobes /home/dan/nprobe/test.conf 09/Jun/2016 19:56:22 [nprobe.c:3376] ERROR: Invalid nProbe license (/etc/nprobe.license) [Missing license file] 09/Jun/2016 19:56:22 [nprobe.c:3383] ERROR: *** 09/Jun/2016 19:56:22 [nprobe.c:3384] ERROR: \ 09/Jun/2016 19:56:22 [nprobe.c:3385] ERROR: \ Switching to DEMO MODE (missing valid license) 09/Jun/2016 19:56:22 [nprobe.c:3386] ERROR: \ 09/Jun/2016 19:56:22 [nprobe.c:3387] ERROR: \ Purchase your nProbe license at 09/Jun/2016 19:56:22 [nprobe.c:3388] ERROR: \ https://shop.ntop.org/ 09/Jun/2016 19:56:22 [nprobe.c:3389] ERROR: \ 09/Jun/2016 19:56:22 [nprobe.c:3390] ERROR: * 09/Jun/2016 19:56:22 [nprobe.c:7219] ERROR: ***** 09/Jun/2016 19:56:22 [nprobe.c:7220] ERROR: * NOTE: This is a DEMO version limited to 25000 flows export. * 09/Jun/2016 19:56:22 [nprobe.c:7221] ERROR: *** 09/Jun/2016 19:56:22 [nprobe.c:4843] WARNING: The output interfaceId is set to 0: did you forget to use -Q perhaps ? 09/Jun/2016 19:56:22 [nprobe.c:4846] WARNING: The input interfaceId is set to 0: did you forget to use -u perhaps ? 09/Jun/2016 19:56:22 [nprobe.c:4946] Welcome to nProbe Pro v.7.3.160609 ($Revision: 5255 $) for x86_64-unknown-linux-gnu 09/Jun/2016 19:56:22 [nprobe.c:4956] Running on Debian GNU/Linux 8.2 (jessie) 09/Jun/2016 19:56:22 [nprobe.c:4967] [LICENSE] nProbe SystemId: BB0658667104A1D2 09/Jun/2016 19:56:22 [nprobe.c:7237] Welcome to nProbe v.7.3.160609 for x86_64-unknown-linux-gnu 09/Jun/2016 19:56:22 [plugin.c:1030] 0 plugin(s) enabled 09/Jun/2016 19:56:22 [nprobe.c:6802] Non IPv4/v6 traffic is discarded according to the template 09/Jun/2016 19:56:22 [nprobe.c:5461] Using packet capture length 128 09/Jun/2016 19:56:22 [nprobe.c:7410] IPv6 traffic will NOT be exported/accounted by this probe 09/Jun/2016 19:56:22 [nprobe.c:7411] due to configuration options (e.g. use NetFlow v9) 09/Jun/2016 19:56:22 [nprobe.c:7456] Flows ASs will not be computed (missing GeoIP support) 09/Jun/2016 19:56:22 [nprobe.c:7559] Capturing packets from interface eth1 [snaplen: 128 bytes] 09/Jun/2016 19:56:22 [util.c:3129] nProbe changed user to 'nobody' 09/Jun/2016 19:56:22 [nprobe.c:7782] nProbe started successfully ^C09/Jun/2016 19:56:24 [nprobe.c:491] Received shutdown request... [signal: 2] 09/Jun/2016 19:56:24 [engine.c:2822] About to flush hash (threadId 0) 09/Jun/2016 19:56:24 [engine.c:2824] Completed hash walk (thread 0) 09/Jun/2016 19:56:26 [nprobe.c:2698] Processed packets: 61 (max bucket search: 0) 09/Jun/2016 19:56:26 [nprobe.c:2681] Fragment queue length: 0 09/Jun/2016 19:56:26 [nprobe.c:2707] Flow export stats: [0 bytes/0 pkts][0 flows/0 pkts sent] 09/Jun/2016 19:56:26 [nprobe.c:2717] Flow drop stats: [3580 bytes/13 pkts][0 flows] 09/Jun/2016 19:56:26 [nprobe.c:2722] Total flow stats: [3580 bytes/13 pkts][0 flows/0 pkts sent]

DanEllis197 commented 8 years ago

root@shell01:/home/dan/nprobe# ./nprobes --kentik-host -i eth1 -S 1:128 09/Jun/2016 20:00:38 [plugin.c:763] Unable to enable plugin SIP Plugin [/etc/nprobe.license.voip]: Missing license file 09/Jun/2016 20:00:38 [plugin.c:763] Unable to enable plugin RTP Plugin [/etc/nprobe.license.voip]: Missing license file 09/Jun/2016 20:00:38 [plugin.c:763] Unable to enable plugin SMTP Protocol [/etc/nprobe.license.email]: Missing license file 09/Jun/2016 20:00:38 [plugin.c:763] Unable to enable plugin Netflow-Lite Plugin [/etc/nprobe.license.nflite]: Missing license file 09/Jun/2016 20:00:38 [plugin.c:763] Unable to enable plugin Oracle Protocol [/etc/nprobe.license.oracle]: Missing license file 09/Jun/2016 20:00:38 [plugin.c:763] Unable to enable plugin GTPv0 Signaling Protocol [/etc/nprobe.license.gtpv0]: Missing license file 09/Jun/2016 20:00:38 [plugin.c:763] Unable to enable plugin GTPv1 Signaling Protocol [/etc/nprobe.license.gtpv1]: Missing license file 09/Jun/2016 20:00:38 [plugin.c:763] Unable to enable plugin GTPv2 Signaling Protocol [/etc/nprobe.license.gtpv2]: Missing license file 09/Jun/2016 20:00:38 [plugin.c:763] Unable to enable plugin Radius Protocol [/etc/nprobe.license.radius]: Missing license file 09/Jun/2016 20:00:38 [plugin.c:763] Unable to enable plugin DHCP Protocol [/etc/nprobe.license.dhcp]: Missing license file 09/Jun/2016 20:00:38 [plugin.c:763] Unable to enable plugin IMAP Protocol [/etc/nprobe.license.email]: Missing license file 09/Jun/2016 20:00:38 [plugin.c:763] Unable to enable plugin POP3 Protocol [/etc/nprobe.license.email]: Missing license file 09/Jun/2016 20:00:38 [plugin.c:763] Unable to enable plugin System process information [/etc/nprobe.license.process]: Missing license file 09/Jun/2016 20:00:38 [plugin.c:763] Unable to enable plugin Diameter Protocol [/etc/nprobe.license.diameter]: Missing license file 09/Jun/2016 20:00:38 [plugin.c:763] Unable to enable plugin S1AP Protocol [/etc/nprobe.license.S1AP]: Missing license file 09/Jun/2016 20:00:38 [plugin.c:763] Unable to enable plugin Export Plugin [/etc/nprobe.license.export]: Missing license file 09/Jun/2016 20:00:38 [nprobe.c:4843] WARNING: The output interfaceId is set to 0: did you forget to use -Q perhaps ? 09/Jun/2016 20:00:38 [nprobe.c:4846] WARNING: The input interfaceId is set to 0: did you forget to use -u perhaps ? 09/Jun/2016 20:00:38 [nprobe.c:4946] Welcome to nProbe v.7.3.160609 ($Revision: 5255 $) for x86_64-unknown-linux-gnu 09/Jun/2016 20:00:38 [nprobe.c:4956] Running on Debian GNU/Linux 8.2 (jessie) 09/Jun/2016 20:00:38 [nprobe.c:4967] [LICENSE] nProbe SystemId: BB0658667104A1D2 09/Jun/2016 20:00:38 [nprobe.c:7237] Welcome to nProbe v.7.3.160609 for x86_64-unknown-linux-gnu 09/Jun/2016 20:00:38 [nprobe.c:6381] Using NetFlow Packet Payload Len: 1472 09/Jun/2016 20:00:38 [plugin.c:1030] 0 plugin(s) enabled 09/Jun/2016 20:00:38 [nprobe.c:6782] Each flow is 106 bytes long 09/Jun/2016 20:00:38 [nprobe.c:6783] The # packets per flow has been set to 12 09/Jun/2016 20:00:38 [nprobe.c:5461] Using packet capture length 128 09/Jun/2016 20:00:38 [nprobe.c:7456] Flows ASs will not be computed (missing GeoIP support) 09/Jun/2016 20:00:38 [nprobe.c:7559] Capturing packets from interface eth1 [snaplen: 128 bytes] 09/Jun/2016 20:00:38 [util.c:3129] nProbe changed user to 'nobody' ^C09/Jun/2016 20:00:44 [nprobe.c:491] Received shutdown request... [signal: 2] 09/Jun/2016 20:00:44 [nprobe.c:7782] nProbe started successfully 09/Jun/2016 20:00:44 [engine.c:2822] About to flush hash (threadId 0) 09/Jun/2016 20:00:44 [engine.c:2824] Completed hash walk (thread 0) 09/Jun/2016 20:00:46 [nprobe.c:2698] Processed packets: 209 (max bucket search: 0) 09/Jun/2016 20:00:46 [nprobe.c:2681] Fragment queue length: 0 09/Jun/2016 20:00:46 [nprobe.c:2707] Flow export stats: [0 bytes/0 pkts][0 flows/0 pkts sent] 09/Jun/2016 20:00:46 [nprobe.c:2717] Flow drop stats: [6017 bytes/11 pkts][0 flows] 09/Jun/2016 20:00:46 [nprobe.c:2722] Total flow stats: [6017 bytes/11 pkts][0 flows/0 pkts sent] root@shell01:/home/dan/nprobe#

lucaderi commented 8 years ago

Fixed and included in the next build (later today)

DanEllis197 commented 8 years ago

Appears to not be resolved using June 10th build. Tried --kentik-host, --kentik-host, --kentik-host=1, -kentik-host in config file and none work

root@shell01:/home/dan/nprobe# ./nprobes -v

Welcome to nProbe v.7.3.160610 (r5256) for x86_64-unknown-linux-gnu

Copyright 2002-16 ntop.org

Build OS: Debian GNU/Linux 8.2 (jessie) SystemID: BB0658667104A1D2 License: Invalid nProbe license (/etc/nprobe.license) [Missing license file]

nProbe is subject to the terms and conditions defined in the LICENSE and EULA files that are part of this package.

nProbe also contains third party code: Radix tree code - (C) The Regents of the University of Michigan ("The Regents") and Merit Network, Inc. sFlow collector - (C) InMon Inc. root@shell01:/home/dan/nprobe# more test.conf -S=1:128 -i=eth1 --kentik-host= root@shell01:/home/dan/nprobe# ./nprobes /home/dan/nprobe/test.conf 10/Jun/2016 19:53:03 [nprobe.c:3376] ERROR: Invalid nProbe license (/etc/nprobe.license) [Missing license file] 10/Jun/2016 19:53:03 [nprobe.c:3383] ERROR: *** 10/Jun/2016 19:53:03 [nprobe.c:3384] ERROR: \ 10/Jun/2016 19:53:03 [nprobe.c:3385] ERROR: \ Switching to DEMO MODE (missing valid license) 10/Jun/2016 19:53:03 [nprobe.c:3386] ERROR: \ 10/Jun/2016 19:53:03 [nprobe.c:3387] ERROR: \ Purchase your nProbe license at 10/Jun/2016 19:53:03 [nprobe.c:3388] ERROR: \ https://shop.ntop.org/ 10/Jun/2016 19:53:03 [nprobe.c:3389] ERROR: \ 10/Jun/2016 19:53:03 [nprobe.c:3390] ERROR: * 10/Jun/2016 19:53:03 [nprobe.c:7251] ERROR: ***** 10/Jun/2016 19:53:03 [nprobe.c:7252] ERROR: * NOTE: This is a DEMO version limited to 25000 flows export. * 10/Jun/2016 19:53:03 [nprobe.c:7253] ERROR: *** 10/Jun/2016 19:53:03 [nprobe.c:4843] WARNING: The output interfaceId is set to 0: did you forget to use -Q perhaps ? 10/Jun/2016 19:53:03 [nprobe.c:4846] WARNING: The input interfaceId is set to 0: did you forget to use -u perhaps ? 10/Jun/2016 19:53:03 [nprobe.c:4946] Welcome to nProbe Pro v.7.3.160610 ($Revision: 5256 $) for x86_64-unknown-linux-gnu 10/Jun/2016 19:53:03 [nprobe.c:4956] Running on Debian GNU/Linux 8.2 (jessie) 10/Jun/2016 19:53:03 [nprobe.c:4967] [LICENSE] nProbe SystemId: BB0658667104A1D2 10/Jun/2016 19:53:03 [nprobe.c:7269] Welcome to nProbe v.7.3.160610 for x86_64-unknown-linux-gnu 10/Jun/2016 19:53:03 [plugin.c:1030] 0 plugin(s) enabled 10/Jun/2016 19:53:03 [nprobe.c:6802] Non IPv4/v6 traffic is discarded according to the template 10/Jun/2016 19:53:03 [nprobe.c:7346] nProbe started in Kentik mode 10/Jun/2016 19:53:03 [nprobe.c:5461] Using packet capture length 128 10/Jun/2016 19:53:03 [nprobe.c:7445] IPv6 traffic will NOT be exported/accounted by this probe 10/Jun/2016 19:53:03 [nprobe.c:7446] due to configuration options (e.g. use NetFlow v9) 10/Jun/2016 19:53:03 [nprobe.c:7491] Flows ASs will not be computed (missing GeoIP support) 10/Jun/2016 19:53:03 [nprobe.c:7594] Capturing packets from interface eth1 [snaplen: 128 bytes] 10/Jun/2016 19:53:03 [util.c:3129] nProbe changed user to 'nobody' 10/Jun/2016 19:53:03 [nprobe.c:7817] nProbe started successfully ^C10/Jun/2016 19:53:04 [nprobe.c:491] Received shutdown request... [signal: 2] 10/Jun/2016 19:53:04 [engine.c:2839] About to flush hash (threadId 0) 10/Jun/2016 19:53:04 [engine.c:2841] Completed hash walk (thread 0) 10/Jun/2016 19:53:06 [nprobe.c:2698] Processed packets: 1 (max bucket search: 0) 10/Jun/2016 19:53:06 [nprobe.c:2681] Fragment queue length: 0 10/Jun/2016 19:53:06 [nprobe.c:2707] Flow export stats: [0 bytes/0 pkts][0 flows/0 pkts sent] 10/Jun/2016 19:53:06 [nprobe.c:2717] Flow drop stats: [600 bytes/1 pkts][0 flows] 10/Jun/2016 19:53:06 [nprobe.c:2722] Total flow stats: [600 bytes/1 pkts][0 flows/0 pkts sent]

DanEllis197 commented 8 years ago

New version posted, seems to have fixed it. Thanks.