netsniff-ng: log and print statistics #363

GoogleCodeExporter opened this Issue Mar 24, 2015 · 6 comments


None yet
1 participant
I think it would nice to have netsniff-ng stats logged to 
/var/log/nsm/$netsniff-file and also viewable from the sostat script. 

By stats I mean the number of packets that passed and failed to pass the filter 
(dropped by kernel).

If interested, I can handle this and send the patches. Let me know.

P.S. Who adds the enhancement type? I don't see an option to do that when I 
create a new issue. 

Original issue reported on by on 10 Jul 2013 at 4:38

Hi Jon,

If you'd like this integrated, please send patches.

I disabled enhancements in the Issue Tracker because I was receiving more 
enhancement requests than I could ever implement.


Original comment by on 10 Jul 2013 at 4:42

  • Added labels: ****
  • Removed labels: ****
Done. Patches attached.

a.) Netsniff-NG requires --verbose to print interval statistics - Added
b.) awk script in sostat to interpret the netsniff-ng stat format i.e. 
.(+processed/-loss). - Added

Sostat now prints packet loss statistics if and only if there is in fact loss 
i.e. loss > 0. 


Original comment by on 24 Jul 2013 at 10:29

  • Added labels: ****
  • Removed labels: ****


[deleted comment]
sostat Patch Results:

1.) Single interface with netsniff-ng loss
2.) Multiple interfaces with netsniff-ng loss
3.) Multiple interfaces with no netsniff-ng loss

Original comment by on 25 Jul 2013 at 5:18

  • Added labels: ****
  • Removed labels: ****


Looks good, thanks!  Will be a few weeks before I have time to update our 

Original comment by on 25 Jul 2013 at 9:56

  • Added labels: ****
  • Removed labels: ****

Original comment by on 14 Aug 2013 at 11:36

  • Changed state: Verified
  • Added labels: ****
  • Removed labels: ****
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment