# Folder monitoring in Dynatrace

**URL:** <https://community.dynatrace.com/t/folder-monitoring-in-dynatrace/34037>\
**Category:** Dynatrace Tips\
**Tags:** oneagent, extensions\
**Created:** [February 7, 2022, 8:47am UTC](https://community.dynatrace.com/t/folder-monitoring-in-dynatrace/34037 "2022-02-07T08:47:57Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajdeepan03](https://avatars.discourse-cdn.com/v4/letter/r/bbce88/32.png) [@rajdeepan03](https://community.dynatrace.com/u/rajdeepan03)\
**Post date:** [February 7, 2022, 8:47am UTC](https://community.dynatrace.com/t/folder-monitoring-in-dynatrace/34037/1 "2022-02-07T08:47:57Z")

</div>

Hi,

is there any way to perform the folder monitoring using Dynatrace OneAgent and what are the different ways of achieving it?

Thanks,

Deepan

---

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [February 7, 2022, 10:29am UTC](https://community.dynatrace.com/t/folder-monitoring-in-dynatrace/34037/2 "2022-02-07T10:29:36Z")

</div>

What we did is we have scheduled a cron job on OS every 1 hour to submit a metric via REST API or OA ingest interface with “1” or “0” values if a folder/file we wanted to be is there.

See details:

> **[Extend metric observability](https://docs.dynatrace.com/docs/ingest-from/extend-dynatrace/extend-metrics)**
>
> Learn how to extend metric observability in Dynatrace.

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [February 7, 2022, 10:38am UTC](https://community.dynatrace.com/t/folder-monitoring-in-dynatrace/34037/3 "2022-02-07T10:38:34Z")

</div>

Depending on what you need, there is an option to use a oneagent extension for monitoring files.&nbsp; We use an extension that checks:

- number of files matching one of configured file wildcard patterns
- file modification time for files matching wildcard patterns

And the extension creates a Dynatrace problem opening event when the number of files is higher than expected or a file has not been modified in a defined period.

If you are interested, please tag me in this thread and I’ll be happy to provide it.

---

<div class="post-metadata">

**Author:** ![rajdeepan03](https://avatars.discourse-cdn.com/v4/letter/r/bbce88/32.png) [@rajdeepan03](https://community.dynatrace.com/u/rajdeepan03)\
**Post date:** [February 7, 2022, 4:36pm UTC](https://community.dynatrace.com/t/folder-monitoring-in-dynatrace/34037/4 "2022-02-07T16:36:52Z")

</div>

Hi Julius\_Loman,

Thank you for the response, this would really help and kindly provide me the one agent extension for the same.

Regards,

Deepan

---

<div class="post-metadata">

**Author:** ![Radoslaw\_Szulgo](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radoslaw_szulgo/32/1977_2.png) [@Radoslaw\_Szulgo](https://community.dynatrace.com/u/Radoslaw_Szulgo)\
**Post date:** [February 7, 2022, 4:54pm UTC](https://community.dynatrace.com/t/folder-monitoring-in-dynatrace/34037/5 "2022-02-07T16:54:18Z")

</div>

I’d appreciate that as well 🙂

---

<div class="post-metadata">

**Author:** ![rajdeepan03](https://avatars.discourse-cdn.com/v4/letter/r/bbce88/32.png) [@rajdeepan03](https://community.dynatrace.com/u/rajdeepan03)\
**Post date:** [February 8, 2022, 6:22pm UTC](https://community.dynatrace.com/t/folder-monitoring-in-dynatrace/34037/6 "2022-02-08T18:22:55Z")

</div>

[@Julius\_Loman](https://community.dynatrace.com/user/3364)

Could you please help me with the extension for the folder monitoring.

Thanks,

Deepan

---

<div class="post-metadata">

**Author:** ![DanielS](https://avatars.discourse-cdn.com/v4/letter/d/3ab097/32.png) [@DanielS](https://community.dynatrace.com/u/DanielS)\
**Post date:** [February 8, 2022, 6:51pm UTC](https://community.dynatrace.com/t/folder-monitoring-in-dynatrace/34037/7 "2022-02-08T18:51:28Z")

</div>

[@Julius\_Loman](https://community.dynatrace.com/user/3364)thank you. Love to know more information on this. Thanks.

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [February 8, 2022, 10:40pm UTC](https://community.dynatrace.com/t/folder-monitoring-in-dynatrace/34037/8 "2022-02-08T22:40:59Z")

</div>

Hey&nbsp;[@DanielS](https://community.dynatrace.com/user/35788)&nbsp;/&nbsp;[@Radoslaw\_Szulgo](https://community.dynatrace.com/user/25371)&nbsp; /&nbsp;[@rajdeepan03](https://community.dynatrace.com/user/39509)

you can find the extension including code here:

> **[GitHub - Alanata-a-s/Dynatrace-OneAgent-File-Change-Extension: Simple Extension to monitor file changes](https://github.com/Alanata-a-s/Dynatrace-OneAgent-File-Change-Extension)**
>
> Simple Extension to monitor file changes

To use it, just download the file named custom.python.filechange.zip from the release and upload it in your Dynatrace environment and deploy it to OneAgents where required.

I think it’s quite straightforward to configure, but nevertheless here is a screenshot of the configuration:

 ![Julius_Loman_1-1644359941318.png](https://global.discourse-cdn.com/dynatrace/original/2X/1/15e8cf84f206b7630453dd6c81ccc434f8d90230.png)

You can add any number of wildcard patterns and you can also modify the problem even text and title message and use placeholders.

This is an example of problem created when old files are found:

 ![Julius_Loman_0-1644359821237.png](https://global.discourse-cdn.com/dynatrace/original/3X/9/2/92902bca237447eb5ca86ea851d4ec1cf8070847.png)

Hope this helps someone&nbsp;:grinning\_face:

---

<div class="post-metadata">

**Author:** ![rajdeepan03](https://avatars.discourse-cdn.com/v4/letter/r/bbce88/32.png) [@rajdeepan03](https://community.dynatrace.com/u/rajdeepan03)\
**Post date:** [February 9, 2022, 4:25pm UTC](https://community.dynatrace.com/t/folder-monitoring-in-dynatrace/34037/9 "2022-02-09T16:25:24Z")

</div>

Hi&nbsp;[@Julius\_Loman](https://community.dynatrace.com/user/3364),

Thank you very much and It worked.

 ![rajdeepan03_0-1644423822258.png](https://global.discourse-cdn.com/dynatrace/original/3X/8/4/84998527298e74c232429e16287c0dd34c44ecfe.png)

Regards,

Deepan

---

<div class="post-metadata">

**Author:** ![Mahdi2023](https://avatars.discourse-cdn.com/v4/letter/m/c37758/32.png) [@Mahdi2023](https://community.dynatrace.com/u/Mahdi2023)\
**Post date:** [May 12, 2023, 3:20pm UTC](https://community.dynatrace.com/t/folder-monitoring-in-dynatrace/34037/10 "2023-05-12T15:20:53Z")

</div>

Hello Deepan,

An idiot question from my part

how can I specify that the plugin should run on specific host, and how to show the result on a specific dashboard

thanks in advance for your help

Regards

Mahdi

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [May 12, 2023, 3:28pm UTC](https://community.dynatrace.com/t/folder-monitoring-in-dynatrace/34037/11 "2023-05-12T15:28:57Z")

</div>

Activate the latest version from the in-product hub. It auto distributes itself to hosts based on tags/host groups/management zones and such. It also has a wizard look instead of the previous format.

---

<div class="post-metadata">

**Author:** ![Mahdi2023](https://avatars.discourse-cdn.com/v4/letter/m/c37758/32.png) [@Mahdi2023](https://community.dynatrace.com/u/Mahdi2023)\
**Post date:** [May 14, 2023, 8:33pm UTC](https://community.dynatrace.com/t/folder-monitoring-in-dynatrace/34037/12 "2023-05-14T20:33:16Z")

</div>

Hello dear mike,

I tried it, but I had an error in each time, I used it on an amazon Linux instance, I gave all the necessary rights on the folder, but no changes always the same error : as shown bellow&nbsp;

 ![Capture d’écran 2023-05-14 à 22.32.07.png](https://global.discourse-cdn.com/dynatrace/original/3X/7/c/7c23e94a9021a05973247cb9d5be9350d358461c.png)

 ![Capture d’écran 2023-05-14 à 22.29.39.png](https://global.discourse-cdn.com/dynatrace/original/3X/5/b/5b88c6f0b3eabab0ef243486e7b6ec0e127891bb.png)

---

<div class="post-metadata">

**Author:** ![florent\_duchate](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/florent_duchate/32/12258_2.png) [@florent\_duchate](https://community.dynatrace.com/u/florent_duchate)\
**Post date:** [May 15, 2023, 8:37am UTC](https://community.dynatrace.com/t/folder-monitoring-in-dynatrace/34037/13 "2023-05-15T08:37:08Z")

</div>

Could you create a support ticket please?

Many thanks

---

<div class="post-metadata">

**Author:** ![Mahdi2023](https://avatars.discourse-cdn.com/v4/letter/m/c37758/32.png) [@Mahdi2023](https://community.dynatrace.com/u/Mahdi2023)\
**Post date:** [May 15, 2023, 9:07am UTC](https://community.dynatrace.com/t/folder-monitoring-in-dynatrace/34037/14 "2023-05-15T09:07:29Z")

</div>

hello,&nbsp;  
Sure, here it is :&nbsp;

> **[Home | Dynatrace Support Portal](https://support.dynatrace.com/)**

regards

---

<div class="post-metadata">

**Author:** ![Mahdi2023](https://avatars.discourse-cdn.com/v4/letter/m/c37758/32.png) [@Mahdi2023](https://community.dynatrace.com/u/Mahdi2023)\
**Post date:** [May 15, 2023, 9:51am UTC](https://community.dynatrace.com/t/folder-monitoring-in-dynatrace/34037/15 "2023-05-15T09:51:37Z")

</div>

In order to resolve the error problem, I just installed the&nbsp;package (libxcrypt-compat) in linux

as I have an error :&nbsp;while loading shared libraries: libcrypt.so.1: cannot open shared object.

---

<div class="post-metadata">

**Author:** ![MarwanC](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/marwanc/32/34480_2.png) [@MarwanC](https://community.dynatrace.com/u/MarwanC)\
**Post date:** [November 30, 2023, 8:58pm UTC](https://community.dynatrace.com/t/folder-monitoring-in-dynatrace/34037/16 "2023-11-30T20:58:46Z")

</div>

Thank you for the info about this extension. We running the latest version of DT

I appreciate if someone can elaborate ■■■ to install this extension please and make available to a group of servers only

“To use it, just download the file named custom.python.filechange.zip from the release and upload it in your Dynatrace environment and deploy it to OneAgents where required.”

Thank Julius\_Loman for your reply.

Kind Regards

Marwan…

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [November 30, 2023, 10:20pm UTC](https://community.dynatrace.com/t/folder-monitoring-in-dynatrace/34037/17 "2023-11-30T22:20:15Z")

</div>

The file system monitor extension in the in-product hub can maybe resolve the use case without manually distributing anything. You can find the instructions on how to use it by searching for the extension in your tenant.
