01 Jul 2019 10:26 AM
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.
Solved! Go to Solution.
01 Jul 2019 11:22 AM
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