nrpe-check. send alarm if folder is modified
问题 This below works fine for me. I wonder if someone could help me so that i can use it as a nrpe_check. If the directory modifies send out a alarm. Not sure how it works with nrpe. Looks like this script need's to be running all the time to fetch changes. So i have to start this script at first. Then another script for checking? Thanks in advance! ### SET FOLDER TO WATCH + FILES TO WATCH + SUBFOLDERS YES/NO $filewatcher = New-Object System.IO.FileSystemWatcher #Mention the folder to monitor