We use cookies to ensure that we give you the best experience on our website.  Visit our Privacy Policy to learn more. If you continue to use this site, we will assume that you are okay with it.

Your choices regarding cookies on this site.
Your preferences have been updated.
In order for the changes to take effect completely please clear your browser cookies and cache. Then reload the page.

Check manual page of windows_tasks

Checkmk Manual

On this page

Search in the manual

Windows Task Scheduler: State

Distribution: official part of Check_MK
License: GPL
Supported Agents: Windows

This check plugin monitors the last return state of Windows tasks. The check plugin uses a default mapping from return code to monitoring state to handle the return codes specified under https://docs.microsoft.com/en-us/windows/win32/taskschd/task-scheduler-error-and-success-constants. For these return codes, the check plugin will also display the appropriate error message. Any return code not listed under the above link will by default result in the monitoring state CRITICAL. Furthermore, by default, the check plugin will go WARNING if a monitored task is not enabled.

The check plugin can be configured via the rule "Windows Tasks". Here, users can customize the mapping from return code to monitoring state and users can also change the output produced by the check plugin for a given return code. Finally, this rule allows users to modify the monitoring state of tasks which are not enabled.

Note that for this check plugin to discover any services at all, you need to activate the Windows agent plugin "Windows Task Scheduler".


Name of the task


One service is created for each task which is not disabled.