I need help finding a piece of software, or at least a type of software.

I have an application server that runs MANY programs on MANY ports, my use case involves multiple DB servers, email, multiple web servers etc - but a bigger problem is that a solution I came up with for one aspect of the application involves dynamically creating, using, and then deleting vhosts for Apache on a specific port range.

I need a way to actively monitor ALL my ports, to see the software that is using the port, and the traffic currently going over it (a bit like netdata if possible, but broken down by ports).

I have been looking for almost 2 days for this, the best option I have found is Nmap, but it only runs scans, so I would have to schedule scans, aggregate the data, and produce my own views since every front end I can find for it (browser based) is buggy as all hell. More surprisingly, it seems CRAZY to me that there isn't simple piece of software that can just show me a current readout of my ports and what they're doing to troubleshoot my application stack! I can't be the only one with this need...

To give an example; logio.org is an active log viewing software, it lets me monitor and view log updates in real time. This lets me run portions of my application, then see the access and error logs as they happen. I could really use something like that for ports - but I absolutely can't find it

So I have come to ask the server peeps - how can I accomplish this? Is their a software that does this or will I have to write this most painfully obvious tool myself?

migrated from serverfault.com Nov 8 at 17:28

This question came from our site for system and network administrators.

  • This is not a request for a recommendation - it is a request for a specific solution. I am NOT asking what is better, what do you like - etc. I have outlined VERY specific criteria and there is a correct answer or there isn't (the question is carefully crafted). The steps taken are explained - the research outlined - ALL aspects of the S.E. terms on the matter are satisfied. I have answered well outlined requests like this on Stack Overflow before as they ARE appropriate for that, and this, Stack Exchange. Please correct this error or I'm not helping you with your software anymore ;p – MJHd Nov 8 at 16:49
  • This is a request for an opinion: “Enterprise Monitoring Solution” with the lightest agent?" If I say Nagios is the lightest, that's an opinion. If I say "yes, it can monitor all ports actively" - that is not an opinion, it is a fact – MJHd Nov 8 at 16:57
  • Yet this is not booted for opinion?? I take the time to make sure I ask the question effectively and stay within the terms and get flagged but this gets answers and upvotes?? security.stackexchange.com/questions/197169/… – MJHd Nov 8 at 17:44
up vote 0 down vote accepted

Take a look at nethogs. It may not do everything you ask for, in particular it does not log anything, it only aggregates data and it shows the results realtime, but if you leave it running in a screen session and configure screen to log the output to a file, I think the solution could fill nearly all the gaps.

There's also iftop that specifically aggregates data by IP port, but I've never used it, so I'm not sure about what it can do. It surely can run in a screen session though.

Darkstat is yet another tool I haven't tried myself, but that seems to suit your needs.

  • Yeah - nethogs is what I was looking at prior, I guess it really is the only option here - I wish I didn't have to force my other dev's to SSH in just to make sure the server they expect to be running on port (n) is up and running... – MJHd Nov 9 at 17:38

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.