30 Jan 2021
01:08 AM
- last edited on
12 May 2021
06:35 AM
by
MaciejNeumann
On every Monday server(A) sends one file (YYYYMMDD__allocate_input.csv.gz.YYYYMMDD.xxxx) to other server (B). It will be placed in folder /xxxx/yyyy on server(B). We need to check this file presence around 1:30 AM on every Monday. If this file not present then need to raise problem (alert), Can anyone please guide me how to achieve this monitoring?
Solved! Go to Solution.
I don't think you will be able to do 100% of what you are looking to do but I'd recommend taking a look at the log monitoring possibilities, this is a great place to start.
https://www.dynatrace.com/support/help/how-to-use-dynatrace/log-monitoring/
You can do that absolutely by writing a very simple OneAgent plugin that checks for the file occurance and raises an event in case the file is not there. See my simple process availability plugin on how to raise an event in case a process is not running. it can be easily modified to check for the file existence instead of checking if a process runs.
https://github.com/wolfgangB33r/SimpleProcessAvailabilityPlugin/blob/master/av_plugin.py
Best greetings,
Wolfgang