I am looking for a agent procedure that will have the computer check to see if the agent is running and checked on a timed schedule (every 5 minutes etc).
I know server will report when an agent hasn't checked in, but sometimes the computer is running, the agent just crashed/ended.
So basically, script would run on the computer every 5 minutes to make sure the agent service is running and if it is not running it will restart.
Would also like to modify the script to restart the service every four hours. so that in addition to checking if the service stopped, it will automatically restart it every 4 hours.
you'd need to use a scheduled task id say . you could easily get a kasyea/VB script to add a windows scheduled task to do what you want.
Here is a SQL script to automatically Clear Overrides
You can check to see if the agent is running and checked on a timed schedule however if the agent is not running it will not be able to restart the agent service. In order to check to see if the agent is running and checked on a timed schedule, go to the monitor module > create a monitor set > click services and select the service you want to monitor. Make the set based off of the service name, not display and this will check every interval you specify. If you are seeing issues with agents stopping, you should create a ticket via portal.kaseya.net so we can further investigate. Attached is a screenshot to further clarify. Hope that helps.
Copyright © 2012 Kaseya International Limited. All rights reserved. Kaseya and the Kaseya k-bug logo are among the trademarks or registered trademarks owned by or licensed to Kaseya International Limited. All other brand and product names are or may be trademarks of, and are used to identify products or services of, their respective owners.