LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-13-2007, 07:20 AM   #1
jakobverner
LQ Newbie
 
Registered: Sep 2007
Location: Denmark
Distribution: Ubuntu
Posts: 10

Rep: Reputation: 0
Question A service-monitor that works with sniffing?


I need a service-monitor-application that works by sniffing the traffic between a user and a server that offers a service.

The point is to detect a specific request to the server from the user, and then detect the related response from the server to the user. By this i should be possible to register the response-time of the server, without forcing unnecessary test-traffic on the server.

Do anyone know an application there would be able to do this?
 
Old 09-16-2007, 10:12 AM   #2
raskin
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: approximately NixOS (http://nixos.org)
Posts: 1,900

Rep: Reputation: 69
Is the traffic TCP or UDP? Anyway, try any general packet sniffer, I use Wireshark and it is enough for your task (as you describe it). It will give you list of packets; you can first have only packets which go to the IP address of the server and have correct port number. If the protocol is known to Wireshark you can filter on its field, else "data contains .. " can help you further filtering. Then I hope it is reasonable to assume that you are in the place you need - you can now add filter on client port also and have the traffic of this conversation for inspection.
 
Old 09-21-2007, 05:44 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
offhand i'm not aware of anythign tailor made for this purpose... well actually I do if you have $60,000 to spare... http://f5.com but in the GPL world, you can probably just use something like ngrep. this will let you watch packets and grep against the payload for whatever. i guess you could run two instances, each watching traffic in different directions for different strings and write th data to a log file for interpretation or such?
 
Old 09-23-2007, 05:36 AM   #4
jakobverner
LQ Newbie
 
Registered: Sep 2007
Location: Denmark
Distribution: Ubuntu
Posts: 10

Original Poster
Rep: Reputation: 0
ngep could seem like a part of the solution to my problem. It seems like I would have to do some work to make it a solution to my challenge, but it might be possible.

The collected data would also have to be updated to a database in order to generate day/week/month statistics on the provided service.
Any ideas for a solution to this?

I think that Wireshark could be a help, but not a part of the solution since I need data-collection and not data-analysis.

The question is still open but for now thanks for your replies...
 
Old 09-23-2007, 06:30 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well it depends how you want to control this database... if you just want to store the events to a table rather than a file, then it's easy to pipe data from ngreap into the mysql or postgresql client... a slightly slicker developement would probably be to log the data to syslog and then use a decent syslog engine like syslog-ng to take care of putting the data into a database. what you then do with that data is your own business...
 
Old 09-23-2007, 06:32 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
thinking about it now, instead of ngrep, you might prefer to look at the string module for iptables which will also give you the ability to notice strings of data as the fly through the box. just use the LOG target and instantly they're off to syslog, where, as above, you can push them wherever you want. http://www.securityfocus.com/infocus/1531
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Mysql database monitoring service in the works LXer Syndicated Linux News 0 10-02-2006 05:33 AM
reboot works but service network restart does not spikeroo Linux - Networking 4 12-15-2005 04:41 PM
MON Service Monitor with Webmin jrmontg Linux - Software 1 11-20-2005 09:19 AM
Linux desktop that works with Novel directory service csm0004 Linux - Newbie 3 05-25-2004 11:01 AM
Samba/SMB service works, Win2k doesn't? scorpatron Linux - Networking 2 11-10-2003 07:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration