Solved

How to check for Network interface collision using Nagios

Posted on 2009-07-02
3
1,058 Views
Last Modified: 2012-06-27
Hey

I was hoping someone knows how to do this :)

We have a few production servers that is currently monitored by Nagios. But we ran into an situation where some clients had issues, after allot of searching and trouble shooting we found that the one connecting servers (Ubuntu 6 server) had collisions on its main Network Interfaces (ifconfig lists collisions at:12925212) , all the other servers collisions were sitting at 0. We believe the connection issue is due to the collisions on the network interface (My Manager is investigating how to fix it :P ).

But now I have the task to find away to monitor the network interfaces for collisions and if there is, an alert or notification needs to be sent.

Thus is there away to use Nagios to monitor a Linux Based machines Network Interface for Collisions specifically.

Thx
0
Comment
Question by:Rigged
  • 2
3 Comments
 
LVL 57

Accepted Solution

by:
giltjr earned 500 total points
ID: 24762450
I would have to check which one it is, but I am 99.9999% sure that there is a SNMP MIB that show collisions.

However, collisions can be normal. If you are connected to a hub (not a switch, but a old fashion hub) or you are connected to a switch and for some reason must operate in half duplex, then collisions are normal.  

However, if you are connected to a switch and can operate in full duplex, you should not see any collisions.  So, if you are connected to a switch, I would verify that the NIC and the switch port are both configured as either full duplex (preferred) or as duplex auto.  They both must be configured the same.

Auto duplex sometimes does not work, that is why I prefer to hard code for full duplex.  Some newer gigabit NIC's and switches do not  allow hard coding of full duplex.
0
 
LVL 1

Author Comment

by:Rigged
ID: 24770619
Cool thanks, I will check if I can find a SNMP check that can do that.

But in answer to your question about the duplexing. We did have an issue on the switch about 3 weeks ago that it put all the Servers connected to it onto Half-Duplex. We then ran ethtool on the servers for the affected NIC's and switched of the NIC's auto and forced it onto Full. The switch is a cisco switch and we didn't change the duplexing or the auto settings on it, mainly because we don't know how to. I will google quickly to see how to cahnge the Cisco switch interface duplexing settings.

Do you maybe know what the results could be for forcing the servers NIC's to a forced full duplex state while the switch is still on Auto, could it also cause connectivity issues or other network issues?
0
 
LVL 57

Assisted Solution

by:giltjr
giltjr earned 500 total points
ID: 24772746
Which Cisc switch is it?

All the ones I have used from the cli you can:

     enable
     config t
     int xx#/#
     duplex full

Where xx is the type of interface fa for fast ethernet and gi for gigabit Ethernet.  Yes, if one side is forced to a specific duplex and the other side is auto you could end up with a mis-match in duplex.  This is because the side that is forced will not do the duplex negotiation and so the auto side will default, and typically the default is half.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
Fine Tune your automatic Updates for Ubuntu / Debian
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question