Check scheduled-task
Overview
Checks the status of a Windows scheduled task.
Fact Sheet
Check Plugin Download |
https://github.com/Linuxfabrik/monitoring-plugins/tree/main/check-plugins/scheduled-task |
Check Interval Recommendation |
Once a minute |
Can be called without parameters |
No |
Compiled for |
Linux, Windows |
3rd Party Python modules |
|
Help
usage: scheduled-task [-h] [-V] [--severity {warn,crit}]
[--status {Disabled,Queued,Ready,Running,Unknown}]
--task TASK
Check the status of a scheduled task.
options:
-h, --help show this help message and exit
-V, --version show program's version number and exit
--severity {warn,crit}
Severity if something is found. Default: warn
--status {Disabled,Queued,Ready,Running,Unknown}
Expected task status (repeating). Default: ['Ready',
'Running']
--task TASK Name of the scheduled task.
Usage Examples
scheduled-task.exe --task \Microsoft\Windows\DiskCleanup\SilentCleanup --status Disabled --severity crit
Output:
\Microsoft\Windows\DiskCleanup\SilentCleanup is Ready
States
WARN if result does not match the expected status.
CRIT only if configured as such.
Perfdata / Metrics
There is no perfdata.
Credits, License
Authors: Linuxfabrik GmbH, Zurich
License: The Unlicense, see LICENSE file.