I have a windows service that I would like to monitor on some endpoints. This service is scheduled to be stopped from 8pm to 9pm every night for backup purposes. I have a monitor set to alert if the process stops. I get an alert every night at 8pm when the scheduled task for backup stops the service. I would like to set the monitor to only watch the service outside of the 8-9pm window.
With the current monitor functions available in the Endpoint Manager (EM), a ‘monitor’ that runs within a specific time period cannot be setup (yet). But by utilizing the right custom script on a schedule, this can be achievable. (Hence, I moved your topic to the Script Requests sub-forum.) We will have our script developers check on this first and hear what they have to say about it.
We could achieve only below conditions via script by scheduling:
To schedule a task that runs every N minutes
To schedule a task that runs every N hours
To schedule a task that runs every N days
To schedule a task that runs every N weeks
To schedule a task that runs every N months
To schedule a task that runs on a specific day of the week
To schedule a task that runs on a specific week of the month
To schedule a task that runs on a specific date each month
To schedule a task that runs on the last day of a month
To schedule a task that runs once
To schedule a task that runs every time the system starts
To schedule a task that runs when a user logs on
To schedule a task that runs when the system is idle
To schedule a task that runs now
To schedule a task that runs with different permissions
To schedule a task that runs with system permissions
To schedule a task that runs more than one program
To schedule a task that runs on a remote computer
I am not sure if the above options will work. Basically, I need to setup am monitor that watches a specific windows service and alerts when the service is stopped. I need to exclude a specific time window from the alerting as the service is known to be stopped during the window and the alert is not necessary.
@cellis Then we could try a method. Tell me your time format has bene set on your desktop. So, that i will prepare script that will monitor whenever service is stopped. So, when service is stopped it will come to know then i will compare the time whether it is between 8 - 9 PM. If yes, will not alert. If no it is not between 8 - 9 PM, then script will give you alert. Is that ok?
If above method is ok for you. Please help us with the time format or some more things regarding time in order to achieve the script.
As one can stack profiles on EPs and include only specific sections in each profile, does the maintenance window section relate to all monitors on an EP or only the monitors in that profile?
If the latter, then one could create, for example, an additional Profile for those EPs with just a monitor section for that service and a maintenance window section in the same profile set to 8pm to 9pm.