We help IT Professionals succeed at work.

Can I monitor specific TCP/UDP ports on a Linux server with SNMP?

Italia998
Italia998 asked
on
I am currently trying to teach myself Cacti/SNMP.

My question is, can I monitor specific tcp/udp ports on a Linux server via SNMP?

I have used snmpwalk to see all the MIB's, but I cannot tell which MIB would be for which port and further into that, which one would be the in/out traffic MIB.

Can someone give me the exact MIB/OID for say, tcp/udp port 80 on a CentOS server and explain how I could have determined that on my own?
Comment
Watch Question

BRONZE EXPERT

Commented:
Are you more concerned about the higher level network management or lower level implementation details?

Cacti/Nagios or any other of so many tools would monitor system for you.  It would sure do the applications you want or what you are referring to as ports.  So there is tremendous amount of theory behind SNMP and these tools can be installed on Linux that would use those protocols and would tell you at a higher level that an application just went down, etc.

Author

Commented:
I want to graph the in/out traffic to specific ports on the linux server itself.  We run different services on different ports, the traffic to those is what I am needing to graph.  So, hoping there is an nmp trap that watches specific ports on the linux servers.

Do the Cisco switches watch the specific service ports to linux servers?
BRONZE EXPERT

Commented:
That would be highly dependent upon configuration on the Cisco side but you should post that part of the question on Cisco zone.

Yes, with tools like Cacti / MRTG, etc, you should be able to graph.
Details about MRTG
http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch23_:_Advanced_MRTG_for_Linux

Author

Commented:
Well right now I am asking if I can do this on the Linux/Server side.

Thanks for the link, but I am asking about the SNMP oid's.  
Jayachandran PalanisamyTechnical Consultant - Linux
BRONZE EXPERT

Commented:
Hi,
Yes you can install MRTG on your linux box to monitor IN/OUT network. MRTG graph will be accessible through webinterface from remote machine.
http://innovationframes.com/phpbb/viewtopic.php?f=13&t=63

Regards,
Jay
Commented:
Simple answer: No. There are no objects for specific ports.  You need a higher level analyzer.
One option could be the use of netflow, if it is available in your network devices.

Cheers,

JL