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

what to do with .mib files? #15

Open
Sunnygogogo opened this issue Mar 21, 2018 · 3 comments
Open

what to do with .mib files? #15

Sunnygogogo opened this issue Mar 21, 2018 · 3 comments

Comments

@Sunnygogogo
Copy link

I am wandering if you know the answer to this. UBNT have some .mib files. Do I need to save these the /usr/share/snmp/mibs folder for this to work?

@WaterByWind
Copy link
Owner

For UAPs yes, you will need the UBNT MIB files. Those should indeed be placed in one of the MIBs folders used on your platform such as /usr/share/snmp/mibs

@japurillo
Copy link

Hi,

After a few hair pulling hours of trying to get this thing to work I am still getting:

Oct 18 14:27:40 solarPi telegraf[14770]: 2018-10-18T06:27:40Z E! Error in plugin [inputs.snmp]: initializing table : translating: exit status 2: MIB search path: /etc/telegraf/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp Oct 18 14:27:40 solarPi telegraf[14770]: Cannot find module (IF-MIB): At line 1 in (none) Oct 18 14:27:40 solarPi telegraf[14770]: IF-MIB::ifTable: Unknown Object Identifier

Now I have created the files and saved them as such

`root@solarPi:/usr/share/snmp# snmptranslate -Dinit_mib .1.3 2>&1 |grep MIBDIR
init_mib: Seen MIBDIRS: Looking in '/root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp' for mib dirs ...

root@solarPi:/usr/share/snmp/mibs# ls
FROGFOOT-RESOURCES-MIB NET-SNMP-EXAMPLES-MIB.txt NET-SNMP-VACM-MIB.txt UCD-DLMOD-MIB.txt
GNOME-SMI.txt NET-SNMP-EXTEND-MIB.txt RFC-1215.txt UCD-IPFILTER-MIB.txt
IANA-ADDRESS-FAMILY-NUMBERS-MIB.txt NET-SNMP-MIB.txt SNMP-TLS-TM-MIB.txt UCD-IPFWACC-MIB.txt
IANA-LANGUAGE-MIB.txt NET-SNMP-MONITOR-MIB.txt SNMP-TSM-MIB.txt UCD-SNMP-MIB-OLD.txt
IANA-RTPROTO-MIB.txt NET-SNMP-PASS-MIB.txt UBNT-MIB UCD-SNMP-MIB.txt
IANAifType-MIB.txt NET-SNMP-PERIODIC-NOTIFY-MIB.txt UBNT-Unifi-MIB miblist.txt
LM-SENSORS-MIB.txt NET-SNMP-SYSTEM-MIB.txt UCD-DEMO-MIB.txt
NET-SNMP-AGENT-MIB.txt NET-SNMP-TC.txt UCD-DISKIO-MIB.txt
`

Even then, I am still getting the same issues.

@kkruzich
Copy link

kkruzich commented Dec 3, 2018

Check permissions. These need to be readable by user 'telegraf'

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

No branches or pull requests

4 participants