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

Ability to monitor a location\file

rob_gallop
Newcomer

We have a requirement to monitor an internal Location\File and alert if the file doesn't exist.

This would then enable the Financial Support team to see when file copies have failed.


1 REPLY 1

wolfgang_beer
Dynatrace Leader
Dynatrace Leader

The most simplistic solution here would be to create a very simple OneAgent extension in Python that only checks for the existence of that file in the regular schedule of a minute. If the file does not exist, raise a custom trigger event of any severity level (AVAILABILITY, ERROR, SLOWDOWN, RESOURCE) which triggers a problem on the Dynatrace side.

See my simple example on GitHub that checks for a running process with a given name and raises an availability event.

https://github.com/wolfgangB33r/SimpleProcessAvailabilityPlugin

You can easily modify the condition to check for file existence instead.

Best greetings,

Wolfgang


Featured Posts