Skip to content
This repository has been archived by the owner on Apr 16, 2021. It is now read-only.

netsniff-ng: log and print statistics #363

Closed
GoogleCodeExporter opened this issue Mar 24, 2015 · 6 comments
Closed

netsniff-ng: log and print statistics #363

GoogleCodeExporter opened this issue Mar 24, 2015 · 6 comments

Comments

@GoogleCodeExporter
Copy link

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 code.google.com by jonsch...@gmail.com on 10 Jul 2013 at 4:38

@GoogleCodeExporter
Copy link
Author

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.

Thanks,
Doug

Original comment by doug.bu...@gmail.com on 10 Jul 2013 at 4:42

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

@GoogleCodeExporter
Copy link
Author

Done. Patches attached.

Tasks:
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. 

Thanks
Jon

Original comment by jonsch...@gmail.com on 24 Jul 2013 at 10:29

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

Attachments:

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

sostat Patch Results:

Screenshots:
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 jonsch...@gmail.com on 25 Jul 2013 at 5:18

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

Attachments:

@GoogleCodeExporter
Copy link
Author

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

Original comment by doug.bu...@gmail.com on 25 Jul 2013 at 9:56

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

@GoogleCodeExporter
Copy link
Author

Published:
http://securityonion.blogspot.com/2013/08/new-securityonion-packages.html

Original comment by doug.bu...@gmail.com on 14 Aug 2013 at 11:36

  • Changed state: Verified
  • Added labels: ****
  • Removed labels: ****

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant