Bug 135418 - Can not disable NETFLOW plugin debug in net/ntop 3.3.9_1
Summary: Can not disable NETFLOW plugin debug in net/ntop 3.3.9_1
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Wesley Shields
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-09 16:40 UTC by Anthony Maszeroski
Modified: 2009-06-23 00:00 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anthony Maszeroski 2009-06-09 16:40:03 UTC
Disabling netflow plugin debug in the web admin gui has no effect. Debug messages are sent to syslog regardless:

Jun  9 10:08:17 anthony ntop[48662]:   >>>> NETFLOW: handleGenericFlow() called
Jun  9 10:08:17 anthony ntop[48662]:   DEBUG: <source_IP>:53035 -> <destination_ip>:80 [last=1986646253][first=1986634280][last-first=12]

The resulting message volume is huge.

Fix: 

-#define DEBUG_FLOWS
+/* #define DEBUG_FLOWS */

 #define CONST_NETFLOW_STATISTICS_HTML       "statistics.html"--amjRoZibVOiClKkK8HnRqzSrqgxdrGdPYE0vvKbT44vPtwCY
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- netflowPlugin.c     2009-06-09 10:40:27.000000000 -0400
+++ netflowPlugin.c.orig        2009-06-09 10:40:37.000000000 -0400
@@ -28,7 +28,7 @@
 static void* netflowUtilsLoop(void* _deviceId);
 #endif
How-To-Repeat: In the ntop web gui, click on:

Plugins->NetFlow->View/Configure

Click "Edit NetFlow Device"

In the "Debug" section, select the "Off" radio button, click "Set Debug"

Restart ntop, tail -f /var/log/messages
Comment 1 Wesley Shields freebsd_committer freebsd_triage 2009-06-09 20:21:13 UTC
Responsible Changed
From-To: freebsd-ports-bugs->wxs

I'll take it.
Comment 2 dfilter service freebsd_committer freebsd_triage 2009-06-22 23:59:17 UTC
wxs         2009-06-22 22:59:08 UTC

  FreeBSD ports repository

  Modified files:
    net/ntop             Makefile 
  Added files:
    net/ntop/files       patch-plugins_netflowPlugin.c 
  Log:
  - Turn off a debug knob which was left on.
  
  PR:             ports/135418
  Submitted by:   Anthony Maszeroski <maszeroskia3@scranton.edu>
  
  Revision  Changes    Path
  1.75      +1 -1      ports/net/ntop/Makefile
  1.1       +11 -0     ports/net/ntop/files/patch-plugins_netflowPlugin.c (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Wesley Shields freebsd_committer freebsd_triage 2009-06-22 23:59:30 UTC
State Changed
From-To: open->closed

Fixed, sorry.