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

If file not present then need to raise problem (alert)

vibhash_mishra1
Newcomer

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?

2 REPLIES 2

ChadTurner
Leader

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/

-Chad

wolfgang_beer
Dynatrace Champion
Dynatrace Champion

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