Is there a good way to trigger this rather than run as a cron job or would I simply have to poll a tail of the log on a regular basis? If I have to poll it what do people think is an acceptable frequency? I could poll the datastores and if they become unavailable tail the log? Is there anything in ESXi like the FileSystemWatcher in .Net?
Sorry - new to scripting ESXi and haven't done any *nix shell scripting in a years.