WaterByWind / grafana-dashboards

Grafana Dashboards
MIT License
293 stars 53 forks source link

what to do with .mib files? #15

Open Sunnygogogo opened 6 years ago

Sunnygogogo commented 6 years ago

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 commented 6 years ago

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 commented 5 years ago

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 commented 5 years ago

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