cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Folder Monitoring In Dynatrace

rajdeepan03
Contributor

Hi, Is there any way to perform the folder monitoring using Dynatrace one agent and what are the different ways of achieving it.

 

Thanks,

Deepan

8 REPLIES 8

Radoslaw_Szulgo
Dynatrace Guru
Dynatrace Guru

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:

https://www.dynatrace.com/support/help/how-to-use-dynatrace/metrics/metric-ingestion/ingestion-metho...

Senior Product Manager,
Dynatrace Managed expert

Julius_Loman
DynaMight Guru
DynaMight Guru

Depending on what you need, there is an option to use a oneagent extension for monitoring files.  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.

Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

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

@Julius_Loman

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

 

 Thanks,

 Deepan

I'd appreciate that as well 🙂

Senior Product Manager,
Dynatrace Managed expert

@Julius_Lomanthank you. Love to know more information on this. Thanks.

The true delight is in the finding out rather than in the knowing.

Julius_Loman
DynaMight Guru
DynaMight Guru

Hey @DanielS / @Radoslaw_Szulgo  / @rajdeepan03 

you can find the extension including code here:
https://github.com/TEMPEST-a-s/Dynatrace-OneAgent-File-Change-Extension 

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

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

 

Hope this helps someone 😀 




Certified Dynatrace Master | Alanata a.s., Slovakia, Dynatrace Master Partner

Hi @Julius_Loman

 

Thank you very much and It worked.

rajdeepan03_0-1644423822258.png

 

Regards,

Deepan