# Synthetic SFTP monitor (2.4.0)

**URL:** <https://community.dynatrace.com/t/synthetic-sftp-monitor-2-4-0/56717>\
**Category:** Extensions\
**Tags:** extensions, sftp\
**Created:** [August 13, 2026, 2:34pm UTC](https://community.dynatrace.com/t/synthetic-sftp-monitor-2-4-0/56717 "2026-08-13T14:34:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JPRio1](https://avatars.discourse-cdn.com/v4/letter/j/d9b06d/32.png) [@JPRio1](https://community.dynatrace.com/u/JPRio1)\
**Post date:** [August 13, 2026, 2:34pm UTC](https://community.dynatrace.com/t/synthetic-sftp-monitor-2-4-0/56717/1 "2026-08-13T14:34:56Z")

</div>

Hello, I’m using the extension Synthetic SFTP monitor (2.4.0) to detect if a file is not processed by a client (older than 10mn). Apparently this is not working for me.&nbsp;&nbsp;  
I rode the code of the extension and saw (if I’m not mistaken) that the file age is tested only if the file suffix is provided :

```python
if (configuration.test.process_file_suffix
                        and configuration.test.process_file_age
                        and process_file.filename == str(configuration.upload.local_path.replace('\\', '/').split('/')[-1] + configuration.test.process_file_suffix)):
                        self.logger.debug(f"{process_file.filename} ends in `{configuration.test.process_file_suffix}`.")
                        within_limit = self.is_file_within_age_limit(process_file, processing_time, configuration.test.process_file_age)

```

In my case, there is no suffix when the file is handled by the consumer. I think that’s why the detection is not working for me. Is it necessary to leave this condition ?  
BR,  
JP

---

<div class="post-metadata">

**Author:** ![sujit\_k\_singh](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@sujit\_k\_singh](https://community.dynatrace.com/u/sujit_k_singh)\
**Post date:** [August 13, 2026, 11:27pm UTC](https://community.dynatrace.com/t/synthetic-sftp-monitor-2-4-0/56717/2 "2026-08-13T23:27:03Z")

</div>

Hi&nbsp;[@JPRio1](https://community.dynatrace.com/user/69657)

Spot on analysis! That truthy check on process\_file\_suffix is definitely skipping the age calculation if you leave the suffix blank.&nbsp;It shouldn’t be required—the extension should ideally support checking the age of the base file without needing a suffix added by the consumer.&nbsp;As a workaround if you can edit the script, you could update the condition to something like:

suffix = configuration.test.process\_file\_suffix or “”  
expected\_name = str(configuration.upload.local\_path.replace(‘\\’, ‘/’).split(‘/’)[-1]) + suffix

if configuration.test.process\_file\_age and process\_file.filename == expected\_name:  
# age check logic

---

<div class="post-metadata">

**Author:** ![JPRio1](https://avatars.discourse-cdn.com/v4/letter/j/d9b06d/32.png) [@JPRio1](https://community.dynatrace.com/u/JPRio1)\
**Post date:** [August 14, 2026, 5:34am UTC](https://community.dynatrace.com/t/synthetic-sftp-monitor-2-4-0/56717/3 "2026-08-14T05:34:08Z")

</div>

Thanks&nbsp;[@sujit\_k\_singh](https://community.dynatrace.com/user/67382)&nbsp;. That could be a work around. But I have many active gates, and also it would be erased at each extension update. I would prefer a fix…
