PDA

View Full Version : Ou trouver Les MIB


managios
05-21-2008, 05:32 PM
Bonjour,
j'ai une question a propos des MIBs

Dans ce tuto : http://wiki.oreon-project.org/index.php/GestionDesTrapsSnmp

Il parle de copier les MIBs.

Seulement voila, où sont les MIBs des distribs linux ?

EDIT : ah oui c aveut dire quoi charger les MIB a traduire et surtout comment faire ?

Merci

Bonne journée

Ludo31
05-21-2008, 06:36 PM
Bonjour,

Pour te répondre simplement :
- les mibs linux se trouve dans /usr/share/snmp/mibs/ (pour une debian)
- tu trouveras des mibs sur internet en allant sur www.mibsearch.com
- et il y a d'autre mib propriétaire au constructeur que tu trouveras sur leur site ou fournit dans le cd avec le matériel (bien souvent ce seront celle la qu'il te faudra pour pouvoir connaitre les oid des traps envoyés par le matériel;))

- pour ce qui est de charger les mibs il faut que tu ailles dans configuration/services tu as à gauche une partie sur les mibs tu vas sur charger mib et ensuite tu suis les instructions:p

managios
05-21-2008, 06:56 PM
Ok merci enfaite dans le tuto charger les mib c'est ce qu'il y'a en dessous ...

Je croyais que c'était une autre manip

EJ verrais ca demain au taff

merci bcp :)

fouinix
06-09-2008, 05:34 PM
Bonjour,
Sur un équipement anti spam j'ai la possibilité de telecharger les mib. Le fichier telechargé correspond à un zip contenant 3 fichiers texte.
Par contre je n'arrive pas à les importer, ni même en changeant l'extension :
***** Processing MIB file *****

snmptranslate version: NET-SNMP version: 5.2.3
severity: Normal

File to load is: /tmp/BORDERWARE-FW-MIB.mib
File to APPEND TO: /tmp/BORDERWARE-FW-MIB.mib.conf

MIBS environment var: /tmp/BORDERWARE-FW-MIB.mib
mib name: BORDERWARE-FW-MIB


Processing MIB: BORDERWARE-FW-MIB
skipping a TRAP-TYPE / NOTIFICATION-TYPE line - probably an import line.
#
Line: 94
NOTIFICATION-TYPE: alAlarm
Variables: alLastChange alName alRemoteIpAddr alDestPort
Enterprise: bwAlarm
Looking up via snmptranslate: BORDERWARE-FW-MIB::alAlarm
No log handling enabled - turning on stderr logging
Cannot find module (BORDERWARE-MIB): At line 16 in /tmp/BORDERWARE-FW-MIB.mib
Did not find 'bwProducts' in module #-1 (/tmp/BORDERWARE-FW-MIB.mib)
Unlinked OID in BORDERWARE-FW-MIB: bwFirewall ::= { bwProducts 1 }
Undefined identifier: bwProducts near line 18 of /tmp/BORDERWARE-FW-MIB.mib
Cannot adopt OID in BORDERWARE-FW-MIB: bwAlarm ::= { bwFirewall 100 }
Cannot adopt OID in BORDERWARE-FW-MIB: bwFirewallConformance ::= { bwFirewall 3 }
Cannot adopt OID in BORDERWARE-FW-MIB: bwFirewallGroups ::= { bwFirewallConformance 2 }
Cannot adopt OID in BORDERWARE-FW-MIB: bwFirewallCompliances ::= { bwFirewallConformance 1 }
Cannot adopt OID in BORDERWARE-FW-MIB: bwFirewallCompliance ::= { bwFirewallCompliances 1 }
Cannot adopt OID in BORDERWARE-FW-MIB: bwFirewall ::= { bwProducts 1 }
Cannot adopt OID in BORDERWARE-FW-MIB: bwAlarmGroup ::= { bwFirewallGroups 1 }
Cannot adopt OID in BORDERWARE-FW-MIB: alAlarm ::= { bwAlarm 50 }
Cannot adopt OID in BORDERWARE-FW-MIB: alDestPort ::= { bwAlarm 15 }
Cannot adopt OID in BORDERWARE-FW-MIB: alRemoteIpAddr ::= { bwAlarm 10 }
Cannot adopt OID in BORDERWARE-FW-MIB: alName ::= { bwAlarm 9 }
Cannot adopt OID in BORDERWARE-FW-MIB: alLastChange ::= { bwAlarm 4 }
Cannot adopt OID in BORDERWARE-FW-MIB: alTriggerAlarm ::= { bwAlarm 1 }
Unknown object identifier: BORDERWARE-FW-MIB::alAlarm
OID:


Done

Total translations: 1
Successful translations: 0
Failed translations: 1
Je précise que j'ai pu les importer dans Oidview.

surcouf
06-12-2008, 06:44 PM
Bonjour,
Sur un équipement anti spam j'ai la possibilité de telecharger les mib. Le fichier telechargé correspond à un zip contenant 3 fichiers texte.
Par contre je n'arrive pas à les importer, ni même en changeant l'extension :

Je précise que j'ai pu les importer dans Oidview.

Ce qui ne prouve rien.
Il ne suffit pas que le fichier décrivant BORDERWARE-MIB soit bien présent dans les chemins d'accès aux MIB mais que le nom de cellec-i soit ajouté à la liste des MIB prises en charge par Net-SNMP.
Dans un fichier snmp.conf[1], cela donnerait :

mibs +BORDERWARE-MIB +BORDERWARE-FW-MIB

[1]: http://net-snmp.sourceforge.net/docs/man/snmp.conf.html#lbAH