wbenny / synology-nas-monitoring

MIT License
96 stars 17 forks source link

telegraf not booting up #3

Open ISeeTWizard opened 2 years ago

ISeeTWizard commented 2 years ago

Hi I tired your config but the telegraf container doesn't boot up

Here is the message from the log: 2022-04-19T11:12:36Z E! [telegraf] Error running agent: could not initialize input inputs.snmp: initializing field sysName: translating: MIB search path: /root/.snmp/mibs:/usr/share/snmp/mibs:/usr/share/snmp/mibs/iana:/usr/share/snmp/mibs/ietf Cannot find module (SNMPv2-MIB): At line 1 in (none)

So I mapped my mibs folder to /usr/share/snmp/mibs and now the container is booting up.

Is that normal?

Inch-high commented 2 years ago

Getting the same issue too, it seems it isn't mapping the /mibs folder properly.

jasonla commented 2 years ago

Change the telegraf container volume mapping described in the Readme:

Readme says:

Folder docker/telegraf/mibs -> /mibs (as read-only)

It should be:

Folder docker/telegraf/mibs -> /usr/share/snmp/mibs (as read-only)

DrKabum commented 7 months ago

This fixed the issue for me ☝️