# Using proprietary MIB files with the SNMP traps extension

**URL:** <https://community.dynatrace.com/t/using-proprietary-mib-files-with-the-snmp-traps-extension/38401>\
**Category:** Extensions\
**Tags:** snmp, snmp-trap, extensions\
**Created:** [February 10, 2023, 10:49pm UTC](https://community.dynatrace.com/t/using-proprietary-mib-files-with-the-snmp-traps-extension/38401 "2023-02-10T22:49:13Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [February 10, 2023, 10:49pm UTC](https://community.dynatrace.com/t/using-proprietary-mib-files-with-the-snmp-traps-extension/38401/1 "2023-02-10T22:49:13Z")

</div>

If you develop your v2 extension, you can include proprietary MIB files, according to [SNMP data source reference — Dynatrace Docs](https://www.dynatrace.com/support/help/extend-dynatrace/extensions20/data-sources/snmp-extensions/snmp-schema-reference)

But, if you use the SNMP traps, you will get the traps into the logs, and there will be no way of getting the more friendly OID names.

Now, the same link above specifies that there are directories that have those MIB files, as can be seen below.

The question is if we can put our proprietary MIB files there, and if they will be appeaar in Logs with a more familiar OID name?

 ![AntonioSousa_0-1676069234677.png](https://global.discourse-cdn.com/dynatrace/original/3X/b/f/bf063c36b155bba89aaa391ed0b9d06abd833707.png)

---

<div class="post-metadata">

**Author:** ![krzysztof\_suchc](https://avatars.discourse-cdn.com/v4/letter/k/9e8a1a/32.png) [@krzysztof\_suchc](https://community.dynatrace.com/u/krzysztof_suchc)\
**Post date:** [February 21, 2023, 1:46pm UTC](https://community.dynatrace.com/t/using-proprietary-mib-files-with-the-snmp-traps-extension/38401/2 "2023-02-21T13:46:29Z")

</div>

Custom MIBs can be added by creating a custom extension. Link to the documentation&nbsp;[https://www.dynatrace.com/support/help/extend-dynatrace/extensions20/data-sources/snmp-extensions/snmp-schema-reference#add-your-own-mib-file](https://nam02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.dynatrace.com%2Fsupport%2Fhelp%2Fextend-dynatrace%2Fextensions20%2Fdata-sources%2Fsnmp-extensions%2Fsnmp-schema-reference%23add-your-own-mib-file&data=05%7C01%7CKrzysztof.Suchcicki%40dynatrace.com%7Cfb493770da9b4f3ce1a908db140da13b%7C70ebe3a35b30435d9d677716d74ca190%7C1%7C0%7C638125820987808722%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=NeRlyBK5LfXFu4r9Sctxje5CXHlquPTTExFXVUOjPTk%3D&reserved=0). **Unfortunately, we recently found a bug and it will not work as designed**. The team is working to solve it. **Temporary workaround** : the MIB files can be dropped into the default folder with MIB files.

1. **Linux:** &nbsp;/opt/dynatrace/remotepluginmodule/agent/res/mib-files/
2. **Windows:** &nbsp;C:\%PROGRAMFILES%\dynatrace\remotepluginmodule\agent\res\mib-files

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [March 29, 2023, 10:14pm UTC](https://community.dynatrace.com/t/using-proprietary-mib-files-with-the-snmp-traps-extension/38401/3 "2023-03-29T22:14:29Z")

</div>

[@krzysztof\_suchc](https://community.dynatrace.com/user/36814)

Seems like the MIB files don’t survive an AG update. Can you confirm?

---

<div class="post-metadata">

**Author:** ![krzysztof\_suchc](https://avatars.discourse-cdn.com/v4/letter/k/9e8a1a/32.png) [@krzysztof\_suchc](https://community.dynatrace.com/u/krzysztof_suchc)\
**Post date:** [March 30, 2023, 9:39am UTC](https://community.dynatrace.com/t/using-proprietary-mib-files-with-the-snmp-traps-extension/38401/4 "2023-03-30T09:39:57Z")

</div>

That is true, but from AG v265 there will be a permanent folder for custom MIB files. The documentation will be updated, but I believe the final paths will be:  
Linux: /var/lib/dynatrace/remotepluginmodule/agent/conf/userdata/mib-files-custom  
Windows:&nbsp;C:\ProgramData\dynatrace\remotepluginmodule\agent\conf\userdata\mib-files-custom

---

<div class="post-metadata">

**Author:** ![jegron](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jegron/32/12797_2.png) [@jegron](https://community.dynatrace.com/u/jegron)\
**Post date:** [June 23, 2023, 6:00am UTC](https://community.dynatrace.com/t/using-proprietary-mib-files-with-the-snmp-traps-extension/38401/5 "2023-06-23T06:00:46Z")

</div>

Hi&nbsp;[@krzysztof\_suchc](https://community.dynatrace.com/user/36814)&nbsp;! Do we need to restart something on the AG. Seems permanent MIB Files is not immediately taken into account.

---

<div class="post-metadata">

**Author:** ![LukaszMal](https://avatars.discourse-cdn.com/v4/letter/l/977dab/32.png) [@LukaszMal](https://community.dynatrace.com/u/LukaszMal)\
**Post date:** [June 29, 2023, 7:07am UTC](https://community.dynatrace.com/t/using-proprietary-mib-files-with-the-snmp-traps-extension/38401/6 "2023-06-29T07:07:25Z")

</div>

@Hi&nbsp;[@jegron](https://community.dynatrace.com/user/47129)&nbsp;if you manually put MIB files into a directory with the default package it will be overwritten by the default package in the next update. AG restart is required to load new MIB files, because modules are being loaded when the DataSource process starts. The proper way to add MIB files is to the custom extension zip package. They will be deployed and no further AG restarts are needed because a new process starts when the custom extension is assigned to an AG

---

<div class="post-metadata">

**Author:** ![jegron](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jegron/32/12797_2.png) [@jegron](https://community.dynatrace.com/u/jegron)\
**Post date:** [June 29, 2023, 7:20am UTC](https://community.dynatrace.com/t/using-proprietary-mib-files-with-the-snmp-traps-extension/38401/7 "2023-06-29T07:20:59Z")

</div>

Hi&nbsp;[@LukaszMal](https://community.dynatrace.com/user/64387)&nbsp;!

I need to add custom mibs to interpret traps. So I added it to :

_/var/lib/dynatrace/remotepluginmodule/agent/conf/userdata/mib-files-custom_

But Dynatrace SaaS does not take it into account despite services restart. It works after several days.&nbsp;Is there a cache mechanism somewhere?

---

<div class="post-metadata">

**Author:** ![LukaszMal](https://avatars.discourse-cdn.com/v4/letter/l/977dab/32.png) [@LukaszMal](https://community.dynatrace.com/u/LukaszMal)\
**Post date:** [June 29, 2023, 8:06am UTC](https://community.dynatrace.com/t/using-proprietary-mib-files-with-the-snmp-traps-extension/38401/8 "2023-06-29T08:06:51Z")

</div>

Hi&nbsp;[@jegron](https://community.dynatrace.com/user/47129)

There is no cache mechanism, it should work after one AG restart

---

<div class="post-metadata">

**Author:** ![jegron](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jegron/32/12797_2.png) [@jegron](https://community.dynatrace.com/u/jegron)\
**Post date:** [June 29, 2023, 8:12am UTC](https://community.dynatrace.com/t/using-proprietary-mib-files-with-the-snmp-traps-extension/38401/9 "2023-06-29T08:12:29Z")

</div>

Ok, so I will open a case and provide log files for analysis 🙂

Thanks for your quick answers.

---

<div class="post-metadata">

**Author:** ![SURIYIO](https://avatars.discourse-cdn.com/v4/letter/s/85f322/32.png) [@SURIYIO](https://community.dynatrace.com/u/SURIYIO)\
**Post date:** [October 16, 2024, 5:58am UTC](https://community.dynatrace.com/t/using-proprietary-mib-files-with-the-snmp-traps-extension/38401/10 "2024-10-16T05:58:22Z")

</div>

How can I check if the upload of a custom MIB file is complete? I’ve looked in the Dynatrace community and Dynatrace documentation, but no one has provided a method for “How to check”
