I have a web server that goes down occasionally. I'd like to have PRTG do an iisreset when this happens to bring it back. I'm trying to setup a notification for this. I've done the following:
1) Created a batch file that will be called by the notification. The batch file only has one line:
wsus02 -u <domain\administrator> -p <password> -i 0 c:\Windows\System32\iisreset.exe
This works when ran manually
2) I then created a notification in PRTG. Under Execute Program, I have the following:
- Program File iisrestart.bat (above batch file) - Domain - Our domain - Username - Administrator - Password - Admin pw - Timeout 60
When I run a test notification, I look under Logs-System Events-Notifications and I get:
4/10/2018 10:40:43 AM None Group Root Notification Info Error sending "EXE": A required privilege is not held by the client. (0x522)
I have the PRTG Core and Probe services both set to run as my domain admin.
I haven't had much luck googling this, so I thought I'd ask here and see if anyone has any ideas I might be missing!
Thanks in advance! Mike