I have a folder with several different file extensions. Some give notification when specific extension is created. I also like to monitor other files, and have to give notification if they are older than 30 minutes. I cant really find out how to do that, the folder sensor give me some possibilities but not to set an extension.
File / folder monitoring in folder
Votes:
0
Best Answer
Votes:
1
Hi,
Actually, what you are asking for is probably possible with the SQLBackupDestinationCheck.vbs file from this article I wrote I while ago: PRTG KB - 79665-sql-database-backup-monitoring
This was also posted on my personal blog at SQL Database backup monitoring
To give you a brief overview what the script does already look at the quote form the article below. In any case, you might be able to slightly modify the script to better accommodate you needs - assuming it does not already fulfill your requirements. If you have further questions or need help - please reach out - but please clarify more specific what you exactly need and want to see.
SQLBackupDestinationCheck.vbs: This is a VBS script that will return XML content to PRTG in multiple channels while using one sensor.
It expects three parameters:
go through first level sub folders: 0 (no) or 1 (yes) file extension to obey - any other extension will be ignored - in most cases: "bak" Path - should mostly be an UNC path It will return those channels:
Total file count: count of all files with this extension in all folders checked Total folder count: count of all folders checked Oldest file found in days: oldest file - value gives back age in days Newest file found in days: newest file - value gives back age in days Lowest files in folder count found: lowest count of files that have been found in one folder Highest files in folder count found: max. files that have been found in one folder
Regards
Florian Rossmark
2 Replies
Votes:
0
Hello, thank you for your post.
Unfortunately it's not possible to filter the files by extension, you would require a custom sensor to achieve this.
You can find further details about the Custom Sensor's API here PRTG Manual: Custom Sensors.
Best Regards,
Created on Jun 3, 2016 11:02:45 AM by
Luciano Lingnau [Paessler]
Last change on Jul 24, 2018 7:49:44 AM by
Brandy Greger [Paessler Support]
Votes:
1
Hi,
Actually, what you are asking for is probably possible with the SQLBackupDestinationCheck.vbs file from this article I wrote I while ago: PRTG KB - 79665-sql-database-backup-monitoring
This was also posted on my personal blog at SQL Database backup monitoring
To give you a brief overview what the script does already look at the quote form the article below. In any case, you might be able to slightly modify the script to better accommodate you needs - assuming it does not already fulfill your requirements. If you have further questions or need help - please reach out - but please clarify more specific what you exactly need and want to see.
SQLBackupDestinationCheck.vbs: This is a VBS script that will return XML content to PRTG in multiple channels while using one sensor.
It expects three parameters:
go through first level sub folders: 0 (no) or 1 (yes) file extension to obey - any other extension will be ignored - in most cases: "bak" Path - should mostly be an UNC path It will return those channels:
Total file count: count of all files with this extension in all folders checked Total folder count: count of all folders checked Oldest file found in days: oldest file - value gives back age in days Newest file found in days: newest file - value gives back age in days Lowest files in folder count found: lowest count of files that have been found in one folder Highest files in folder count found: max. files that have been found in one folder
Regards
Florian Rossmark
Add comment