Hi,

I would like to monitor with prtg two different files in two different locations. And set a trigger on date modified. Is this possible?

Thanks R.


Article Comments

Hi,
you might use the File Sensor for this purpose and then set limits on channel Last modified.
Best regards


Dec, 2013 - Permalink

Thanks,

Is it also possible to compare the last modified date on both files en set a trigger when difference is 15 seconds or more?

Thanks R.


Dec, 2013 - Permalink

This would basically be possible using the Sensor Factory Sensor but as the scans of the both sensors will most likely not happen at exactly the same time Factory Sensor might give you incorrect results. Apart from the Sensor Factory Sensor the only way would be writing an own script which checks the file ages and does the comparison. The script then could be run with the EXE/Script Advanced Sensor.


Dec, 2013 - Permalink

Thank you very much. What if I set the trigger to 15 minutes. Is it possible to create two different sensors. The first one monitors the files at location a the second one monitors the files at location b I then create a factory sensor with compares both sensors on date modified. What'll the status definition be?

Thanks, R


Dec, 2013 - Permalink

When you are monitoring for the newest file in the folder, you do not even need a trigger on source sensors. You might define a down condition like the following:

(Newest File Channel Sensor 1) + (Newest File Channel Sensor 2) > DESIRED VALUE 

This should create an error in the Sensor Factory Sensor as soon as the sum of the source channels gets bigger than the value provided.
As an alternative you might work with channel limits on the source sensors and set the Factory Sensor to error if one or more of the source channels is in error state.


Dec, 2013 - Permalink

I'll give it a try.

Thank you

R.


Dec, 2013 - Permalink