I need to be able use Powershell to send an API command to PRTG to set a sensor to a state of down if a SharePoint mapped WebDAV drive is no longer accessible.
The approach I am taking is to detect if a file on that drive exists and if it does not then send a command to PRTG to set a sensor to a state of down.
The trouble with this particular issue is that the presence of the WebDAV drive has to be in the user's context so the command must be sent from a script run by the user (which is always logged on), which would check every 5 minutes or so for example.
Is this possible with API and if not do you know of another way to do this?
Add comment