Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 6291bb4759d6847700a3b62885d4c10dd47cf9ab
https://github.com/tribe29/checkmk/commit/6291bb4759d6847700a3b62885d4c10dd…
Author: a-s-995 <antoinescheffold(a)gmail.com>
Date: 2020-10-27 (Tue, 27 Oct 2020)
Changed paths:
A .werks/11369
M checkman/windows_tasks
M checks/windows_tasks
A cmk/gui/plugins/wato/check_parameters/windows_tasks.py
M tests/unit/checks/generictests/datasets/windows_tasks.py
Log Message:
-----------
11369 windows_tasks: Make check configurable & improve output
This werk enhances the check plugin <tt>windows_tasks</tt>. This plugin can
now
handle all of the exit codes of Windows tasks specified under
https://docs.microsoft.com/en-us/windows/win32/taskschd/task-scheduler-erro….
Previously, the check plugin could only handle some of these exit codes and went
CRIT if it encountered an unknown exit code. Furthermore, the check plugin now
discovers any task which is not disabled. Previously, only tasks in the state
"Enabled" were discovered.
Moreover, the check plugin is now user-configurable via the new ruleset "Windows
Tasks". Here, users can modify the default mapping of exit codes to monitoring
states used by the check and users can also change the text produced by the check
plugin for a given exit code. Finally, users can also change the monitoring state
for tasks which are not enabled (the default monitoring state in such cases used
to be CRIT, it is now WARN).
This merges PR #186,
https://github.com/tribe29/checkmk/pull/186.
CMK-4553
Change-Id: I37bcb9fdf778ea8a09c87159760561119ba862fd