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

IF-MIB:: missing in Docker Telegraf Container #208

Closed
townet01 opened this issue Mar 24, 2018 · 5 comments
Closed

IF-MIB:: missing in Docker Telegraf Container #208

townet01 opened this issue Mar 24, 2018 · 5 comments
Labels

Comments

@townet01
Copy link

Hello,
i have installed Telegraf container v 1.5.3, but with this configuration doesn't work:

# Inet interface [[inputs.snmp.table]] oid = "IF-MIB::ifTable" [[inputs.snmp.table.field]] is_tag = true oid = "IF-MIB::ifDescr"

is resulting in this error:

! Error in plugin [inputs.snmp]: initializing table : translating: exit status 2: MIB search path: /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 Cannot find module (IF-MIB): At line 0 in (none) IF-MIB::ifTable: Unknown Object Identifier

I have tried with 1.5 and 1.4, is the same thing.

Regards
E.

@xstrex
Copy link

xstrex commented Apr 17, 2018

I ran into this problem, and came up with a work-around..

Here's the modified parts of the Dockerfile:

RUN echo "deb http://ftp.us.debian.org/debian stretch main non-free" >> /etc/apt/sources.list

RUN DEBIAN_FRONTEND=noninteractive apt-get update && \
    DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends iputils-ping snmp procps snmp-mibs-downloader && \
    rm -rf /var/lib/apt/lists/*

It basically adds a deb source, then downloads the snmp-mibs-downloader (which grabs all the standard mibs, including IF-MIB). I think this was not included because the downloader is marked as non-free. Hope this helps!

@Touchedegris
Copy link

Hi,
Any chance this change makes it in the official package?
Thanks!

@xstrex
Copy link

xstrex commented Sep 11, 2018

Doubtful, especially considering the package is considered “non-free”. But feel free to submit a feature request!

Cheers!

@MyaLongmire
Copy link
Contributor

Have you tried the steps in the issues?

@powersj
Copy link
Contributor

powersj commented Oct 14, 2021

Hi,

I believe the preferred behavior is for folks to install any additional software they need. Trying to build an image that has absolutely everything for all plugins would be enormous and challenging as-is. I'm going to go ahead and close this for now.

Thanks again!

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

No branches or pull requests

6 participants