Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update check_netint.pl #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fmeynadier
Copy link

Hello,

I recently switched some of my debian systems to jessie, and check_netint.pl started not to work because all interface names where the same, with manufacturer names instead of unique interface names.

I found info here : http://serverfault.com/questions/713660/snmp-getting-the-short-interface-name-instead-of-long-ifdescr-again

It seems that the relevant info is in OID 1.3.6.1.2.1.31.1.1.1.1 instead of 1.3.6.1.2.1.2.2.1.2

Apparently there has been some confusion between ifName and ifDescr in the past : things worked before because ifDescr did, in fact, contain the name. Now debian 8 exhibits the correct behavior (see http://cric.grenoble.cnrs.fr/Administrateurs/Outils/MIBS/?oid=1.3.6.1.2.1.31.1.1.1.1 vs http://cric.grenoble.cnrs.fr/Administrateurs/Outils/MIBS/?oid=1.3.6.1.2.1.2.2.1.2)

This PR proposes to make the switch in order to recover the expected behavior. I tested it on my system.

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

Successfully merging this pull request may close these issues.

1 participant