Best way to monitor a folder on an SMB network share?

Hello

I can't find a way to easily monitor a folder on a mounted smb network share. For reasons not in the scope of this post it's not an option to install sophos on the actual file server.

The host that would monitor the specific folder on this share is a macOS system.

  • I guess the main question is if there's any option in endpoint to add a specific folder on a network share that it constantly keeps an eye on and scans every 10th minute or something?
  • If not, are there any apple script or bash capabilities in endpoint for mac so that I can script it?
  • Or any automator add-ons?

If all above is answered with no, how have others dealt with this? Feels like something that should be an option.

One "solution" I can think of is to create a script that runs a s a LaunchAgent on the host. This scripts runs an 'ls -alR $targetFolder' every 10th minute and hopefully that would trigger a scan if analyze network traffic is on? Have not tested this, just a theory...

Ideas? Suggestions?

Parents Reply Children
No Data