We have 200 sensors that are monitoring folders for file count on an FTP server.
If the file count is not 0 then a script is executed as a notification event with a bunch of placeholder command line parameters.
This script has a sophisticated logic to deal with the files in the directories. Sometimes the business logic does not allow to clear a folder in one run of the script, so we set up PRTG to keep calling the same script as escalation event.
This pretty much does the job.
How ever, Sometimes the folder is not cleared due to various errors (file name mask, schema changes etc)
It would be nice if for example an %ESCALATIONCOUNT placeholder would exist that we can pass down the script and have it just move the files out from the FTP folder, if say after 10 repeated escalations/executions, if it could not process the files correctly.
Generally speaking, it would be advantageous to be able to handle an error Differently, if the problem is not resolved after a predetermined number of escalations. Maybe a different pool of people at level 3 support can be involved by sending them an email.
Please let me know if the escalation count can be extracted from PRTG or you can think of a workaround.