Windows Scheduled Task Next Run Defined Monitor.
The monitor checks the next run time of a scheduled taks every minute.
'Never' is considered a warning condition for an enabled scheduled task.
Use overrides to:
Disable the monitor
The task's schedule has expired
Reconfigure the Scheduled Task
Disable or delete the Scheduled Task
Target | Custom.Windows.ScheduledTask.Repetitive | ||
Parent Monitor | System.Health.ConfigurationState | ||
Category | AvailabilityHealth | ||
Enabled | False | ||
Alert Generate | True | ||
Alert Severity | MatchMonitorHealth | ||
Alert Priority | Normal | ||
Alert Auto Resolve | True | ||
Monitor Type | Custom.Windows.ScheduledTask.DiscoveryData.NextRun.MonitorType | ||
Remotable | False | ||
Accessibility | Public | ||
Alert Message |
| ||
RunAs | Default |
<UnitMonitor ID="Custom.Windows.ScheduledTask.NextRun.Monitor" Accessibility="Public" Enabled="false" Target="Custom.Windows.ScheduledTask.Repetitive" ParentMonitorID="Health!System.Health.ConfigurationState" Remotable="false" Priority="Normal" TypeID="Custom.Windows.ScheduledTask.DiscoveryData.NextRun.MonitorType" ConfirmDelivery="false">
<Category>AvailabilityHealth</Category>
<AlertSettings AlertMessage="Custom.Windows.ScheduledTask.NextRun.Monitor.AlertMessage">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="SchTaskLib!Custom.Windows.TaskSchedulerTask"]/TaskName$</AlertParameter1>
<AlertParameter2>$Target/Property[Type="SchTaskLib!Custom.Windows.TaskSchedulerTask"]/TaskNextRunTime$</AlertParameter2>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="HasDate" MonitorTypeStateID="HasDate" HealthState="Success"/>
<OperationalState ID="Never" MonitorTypeStateID="Never" HealthState="Warning"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>61</IntervalSeconds>
<BagValue>$Target/Property[Type="SchTaskLib!Custom.Windows.TaskSchedulerTask"]/TaskNextRunTime$</BagValue>
<TaskState>$Target/Property[Type="Custom.Windows.ScheduledTask"]/TaskState$</TaskState>
</Configuration>
</UnitMonitor>