GFI Max Automatically restart service
Here is how to set the GFI Max service to restart on failure.
1 2 |
SC failure "Advanced Monitoring Agent" reset=86400 actions= restart/300/restart/300/run/300 SC failure "Advanced Monitoring Agent" command= "AgentFailed.bat" |
Create a batch file called AgentFailed.bat and put whatever you want it to do on the 3rd fail.
Some ideas would be to make it restart, send a message to the user to call the helpdesk, or use something like blat to send an email notifying you.
Posted in: Blog, Scripts, Technical
Leave a Comment (0) ↓