Forum Discussion
Alex I do something similar. I wrote a powershell script that performs the check for me. Now you have two ways to do this.
One is to run the powershell script on the server(s) in question via scheduled task and have it write to the event log if the file is not there. Logic Monitor will pick this up and report it. This works pretty good if you are only needing to do this a small number of servers.
The second is to have your powershell accept the server name on a command line and return some value if the server does not contain the file in question. Then create a datasource based on the powershell script and have it pass the Host name to the script and error if the return value is x. This works well if you have lots of systems you want to check. The downside is I am not sure you can schedule it to run exactly at 10:00 in this method. You easily can have it run one a day though.
Related Content
- 2 months ago
- 2 years ago
- 12 months ago