Hello,

This is what I want to achieve, and hopefully I can explain it clearly:

  1. I have a robocopy script to make a back up of a local folder to a cloud service every night at mid-night. The robocopy log file will be saved in C:\Robolog\log.txt
  2. I add "Folder" sensor and set to notify me if the "newest file" in the Robolog folder is "older" than 1 day.
  3. I add the "File Content" sensor, to search for any pre-defined erroneous word(s)/phrase(s), one simple such as "error" in the log file. If it does, notify me

My question is, how could I set up the "File Content" sensor (in #3 above) to run only after/if the "Folder" sensor (in #2 above) triggers ?

Thank you in advance


Article Comments

If the folder sensor is the the required state you can pause / un-pause the sensor via an API call which is defined in a HTTP notification. Please take a closer look on our API documentation.


Apr, 2020 - Permalink

Hi there, Not sure if I understand what you suggest. The sensor is only pause and un-pause. I did not see the option to "run after"... Could you please elaborate the suggestion? Thanks


Apr, 2020 - Permalink

There is no such a option, you will need to work with limits and if necessary with an additional sensor (which checks the state and triggers the API call accordingly).


Apr, 2020 - Permalink

Hello there, I understood the logic now. We are all non-coder but we are trying to achieve the following procedure:

By default, we will have
- "Folder" sensor is "Pause"
- "File" sensor is "Pause"
- UPS-APC "input" sensor is running


1/ If the UPS-APC input sensor sends an error message, trigger the Folder Sensor to run
2/ If the Folder sensor is up, trigger the File sensor to run
3/ Once the UPS-APC sensor is back to normal, pause the Folder sensor and pause the file sensor


Do you think it is do-able and where we could find the information for this? Thank you very much


Apr, 2020 - Permalink

Yes, you can do this in this way. You can find the information in "Setup > PRTG API > Object Manipulation". With this information, you can create the API call. This API call can be implemented in the notification template where you enabled the option "HTTP".


Apr, 2020 - Permalink

Thank you for your info. But in the Setup, I cannot find the option "PRTG API" like you mentioned. We have the latest version of the PRTG though Am I missing anything? Thank you


Apr, 2020 - Permalink

Hi James,

You need enter the API in the desired Notification Template under Execute HTTP Action.


Kind regards,
Marijan Horsky, Team Tech Support


Apr, 2020 - Permalink