habe diese Frage auch schon im Zabbix Forum gestellt, aber vll. ist hier ja jemand der mir helfen kann.
Folgendes Problem habe ich bei der Benutzung von snmp:
Ich möchte das Skript SNMPWALK2ZABBIX von Sean Bradley verwenden, das sieht eigentlich richtig easy aus.
https://github.com/Sean-Bradley/SNMPWALK2ZABBIX
Aber wenn ich versuche, den Befehl auszuführen:
Code: Alles auswählen
snmpwalk -v 2c -c public 10.0.1.253 1.3.6.1.4
Code: Alles auswählen
MIB-Suchpfad: /home/david/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf:/home/david/.snmp/mibs:/usr/local/share/snmp/mibs:/home/david/.snmp/mibs
Das Modul (MYMIB-MIB) kann nicht gefunden werden: In Zeile 1 in (none)
https://wiki.debian.org/SNMP
Meine MIB-Dateien liegen jetzt in /home/david/.snmp/mibs, /usr/share/snmp/mibs und /usr/local/share/snmp/mibs
Aber immer noch derselbe Fehler!
Ich habe bereits auch snmp-mibs-downloader installiert, ohne Erfolg
Meine snmp.conf sieht so aus:
Code: Alles auswählen
# As the snmp packages come without MIB files due to license reasons, loading
# of MIBs is disabled by default. If you added the MIBs you can reenable
# loading them by commenting out the following line.
#mibs :
#mibs +ALL
# If you want to globally change where snmp libraries, commands and daemons
# look for MIBS, change the line below. Note you can set this for individual
# tools with the -M option or MIBDIRS environment variable.
#
# mibdirs /usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf
mibdirs +/home/david/.snmp/mibs
mibdirs +/usr/local/share/snmp/mibs
Code: Alles auswählen
snmpwalk -v 2c -c public -m MYMIB:MYOTHERMIB 10.0.1.253 1.3.6.1.4
Habe ich etwas übersehen?
Ich habe nun keine Ideen mehr.
PS: meine mib-Dateien enden immer auf .mib, ist das ein Problem? Habe jetzt schon öfters .txt gesehen, meine aber gelesen zu haben dass die Endung keine Rolle spielt!?
Danke!