-
CheckTaskSched
Check status of your scheduled jobs.
CheckTaskSched
— CheckTaskSched
Check status of your scheduled jobs.
Queries (Overview):
A list of all available queries (check commands)
Command |
Description |
check_tasksched |
Check status of scheduled jobs. |
checktasksched |
Legacy version of check_tasksched |
Commands (Overview):
TODO: Add a list of all external commands (this is not check commands)
Queries
A quick reference for all available queries (check commands) in the CheckTaskSched module.
-
CheckTaskSched
check_tasksched
Check status of scheduled jobs.
Usage:
Option |
Default Value |
Description |
help |
N/A |
Show help screen (this screen) |
help-pb |
N/A |
Show help screen as a protocol buffer payload |
show-default |
N/A |
Show default values for a given command |
help-short |
N/A |
Show help screen (short format). |
debug |
N/A |
Show debugging information in the log |
show-all |
N/A |
Show debugging information in the log |
filter |
enabled = 1 |
Filter which marks interesting items. |
warning |
exit_code != 0 |
Filter which marks items which generates a warning state. |
warn |
|
Short alias for warning |
critical |
exit_code < 0 |
Filter which marks items which generates a critical state. |
crit |
|
Short alias for critical. |
ok |
|
Filter which marks items which generates an ok state. |
empty-state |
warning |
Return status to use when nothing matched filter. |
perf-config |
|
Performance data generation configuration |
top-syntax |
${problem_list} |
Top level syntax. |
ok-syntax |
%(status): All tasks are ok |
ok syntax. |
empty-syntax |
%(status): No tasks found |
Empty syntax. |
detail-syntax |
${folder}/${title}: ${exit_code} != 0 |
Detail level syntax. |
perf-syntax |
${title} |
Performance alias syntax. |
computer |
|
The name of the computer that you want to connect to. |
user |
|
The user name that is used during the connection to the computer. |
domain |
|
The domain of the user specified in the user parameter. |
password |
|
The password that is used to connect to the computer. If the user name and password are not specified, then the current token is used. |
folder |
|
The folder in which the tasks to check reside. |
recursive |
|
Recurse subfolder (defaults to true). |
Samples
Default check via NRPE:
check_nrpe --host 192.168.56.103 --command check_tasksched
/test: 1 != 0|'test'=1;0;0
Arguments
-
help
(CheckTaskSched, check_tasksched)
Show help screen (this screen)
-
help-pb
(CheckTaskSched, check_tasksched)
Show help screen as a protocol buffer payload
-
show-default
(CheckTaskSched, check_tasksched)
Show default values for a given command
-
help-short
(CheckTaskSched, check_tasksched)
Show help screen (short format).
-
debug
(CheckTaskSched, check_tasksched)
Show debugging information in the log
-
show-all
(CheckTaskSched, check_tasksched)
Show debugging information in the log
-
filter
(CheckTaskSched, check_tasksched)
Filter which marks interesting items.
Interesting items are items which will be included in the check.
They do not denote warning or critical state but they are checked use this to filter out unwanted items.
Available options:
Key |
Value |
application |
Retrieves the name of the application that the task is associated with. |
comment |
Retrieves the comment or description for the work item. |
creator |
Retrieves the creator of the work item. |
enabled |
TODO. |
exit_code |
Retrieves the work item’s last exit code. |
folder |
The task folder |
max_run_time |
Retrieves the maximum length of time the task can run. |
most_recent_run_time |
Retrieves the most recent time the work item began running. |
parameters |
Retrieves the command-line parameters of a task. |
priority |
Retrieves the priority for the task. |
status |
Retrieves the status of the work item. |
task_status |
Retrieves the status of the work item. |
title |
The task title |
working_directory |
Retrieves the working directory of the task. |
count |
Number of items matching the filter |
total |
Total number of items |
ok_count |
Number of items matched the ok criteria |
warn_count |
Number of items matched the warning criteria |
crit_count |
Number of items matched the critical criteria |
problem_count |
Number of items matched either warning or critical criteria |
list |
A list of all items which matched the filter |
ok_list |
A list of all items which matched the ok criteria |
warn_list |
A list of all items which matched the warning criteria |
crit_list |
A list of all items which matched the critical criteria |
problem_list |
A list of all items which matched either the critical or the warning criteria |
detail_list |
A special list with critical, then warning and fainally ok |
status |
The returned status (OK/WARN/CRIT/UNKNOWN) |
-
warning
(CheckTaskSched, check_tasksched)
Filter which marks items which generates a warning state.
If anything matches this filter the return status will be escalated to warning.
Available options:
Key |
Value |
application |
Retrieves the name of the application that the task is associated with. |
comment |
Retrieves the comment or description for the work item. |
creator |
Retrieves the creator of the work item. |
enabled |
TODO. |
exit_code |
Retrieves the work item’s last exit code. |
folder |
The task folder |
max_run_time |
Retrieves the maximum length of time the task can run. |
most_recent_run_time |
Retrieves the most recent time the work item began running. |
parameters |
Retrieves the command-line parameters of a task. |
priority |
Retrieves the priority for the task. |
status |
Retrieves the status of the work item. |
task_status |
Retrieves the status of the work item. |
title |
The task title |
working_directory |
Retrieves the working directory of the task. |
count |
Number of items matching the filter |
total |
Total number of items |
ok_count |
Number of items matched the ok criteria |
warn_count |
Number of items matched the warning criteria |
crit_count |
Number of items matched the critical criteria |
problem_count |
Number of items matched either warning or critical criteria |
list |
A list of all items which matched the filter |
ok_list |
A list of all items which matched the ok criteria |
warn_list |
A list of all items which matched the warning criteria |
crit_list |
A list of all items which matched the critical criteria |
problem_list |
A list of all items which matched either the critical or the warning criteria |
detail_list |
A special list with critical, then warning and fainally ok |
status |
The returned status (OK/WARN/CRIT/UNKNOWN) |
-
warn
(CheckTaskSched, check_tasksched)
-
-
critical
(CheckTaskSched, check_tasksched)
Filter which marks items which generates a critical state.
If anything matches this filter the return status will be escalated to critical.
Available options:
Key |
Value |
application |
Retrieves the name of the application that the task is associated with. |
comment |
Retrieves the comment or description for the work item. |
creator |
Retrieves the creator of the work item. |
enabled |
TODO. |
exit_code |
Retrieves the work item’s last exit code. |
folder |
The task folder |
max_run_time |
Retrieves the maximum length of time the task can run. |
most_recent_run_time |
Retrieves the most recent time the work item began running. |
parameters |
Retrieves the command-line parameters of a task. |
priority |
Retrieves the priority for the task. |
status |
Retrieves the status of the work item. |
task_status |
Retrieves the status of the work item. |
title |
The task title |
working_directory |
Retrieves the working directory of the task. |
count |
Number of items matching the filter |
total |
Total number of items |
ok_count |
Number of items matched the ok criteria |
warn_count |
Number of items matched the warning criteria |
crit_count |
Number of items matched the critical criteria |
problem_count |
Number of items matched either warning or critical criteria |
list |
A list of all items which matched the filter |
ok_list |
A list of all items which matched the ok criteria |
warn_list |
A list of all items which matched the warning criteria |
crit_list |
A list of all items which matched the critical criteria |
problem_list |
A list of all items which matched either the critical or the warning criteria |
detail_list |
A special list with critical, then warning and fainally ok |
status |
The returned status (OK/WARN/CRIT/UNKNOWN) |
-
crit
(CheckTaskSched, check_tasksched)
Short alias for critical.
-
ok
(CheckTaskSched, check_tasksched)
Filter which marks items which generates an ok state.
If anything matches this any previous state for this item will be reset to ok.
Available options:
Key |
Value |
application |
Retrieves the name of the application that the task is associated with. |
comment |
Retrieves the comment or description for the work item. |
creator |
Retrieves the creator of the work item. |
enabled |
TODO. |
exit_code |
Retrieves the work item’s last exit code. |
folder |
The task folder |
max_run_time |
Retrieves the maximum length of time the task can run. |
most_recent_run_time |
Retrieves the most recent time the work item began running. |
parameters |
Retrieves the command-line parameters of a task. |
priority |
Retrieves the priority for the task. |
status |
Retrieves the status of the work item. |
task_status |
Retrieves the status of the work item. |
title |
The task title |
working_directory |
Retrieves the working directory of the task. |
count |
Number of items matching the filter |
total |
Total number of items |
ok_count |
Number of items matched the ok criteria |
warn_count |
Number of items matched the warning criteria |
crit_count |
Number of items matched the critical criteria |
problem_count |
Number of items matched either warning or critical criteria |
list |
A list of all items which matched the filter |
ok_list |
A list of all items which matched the ok criteria |
warn_list |
A list of all items which matched the warning criteria |
crit_list |
A list of all items which matched the critical criteria |
problem_list |
A list of all items which matched either the critical or the warning criteria |
detail_list |
A special list with critical, then warning and fainally ok |
status |
The returned status (OK/WARN/CRIT/UNKNOWN) |
-
empty-state
(CheckTaskSched, check_tasksched)
Return status to use when nothing matched filter.
If no filter is specified this will never happen unless the file is empty.
-
perf-config
(CheckTaskSched, check_tasksched)
Performance data generation configuration
TODO: obj ( key: value; key: value) obj (key:valuer;key:value)
-
top-syntax
(CheckTaskSched, check_tasksched)
Top level syntax.
Used to format the message to return can include strings as well as special keywords such as:
Key |
Value |
%(application) |
Retrieves the name of the application that the task is associated with. |
%(comment) |
Retrieves the comment or description for the work item. |
%(creator) |
Retrieves the creator of the work item. |
%(enabled) |
TODO. |
%(exit_code) |
Retrieves the work item’s last exit code. |
%(folder) |
The task folder |
%(max_run_time) |
Retrieves the maximum length of time the task can run. |
%(most_recent_run_time) |
Retrieves the most recent time the work item began running. |
%(parameters) |
Retrieves the command-line parameters of a task. |
%(priority) |
Retrieves the priority for the task. |
%(status) |
Retrieves the status of the work item. |
%(task_status) |
Retrieves the status of the work item. |
%(title) |
The task title |
%(working_directory) |
Retrieves the working directory of the task. |
${count} |
Number of items matching the filter |
${total} |
Total number of items |
${ok_count} |
Number of items matched the ok criteria |
${warn_count} |
Number of items matched the warning criteria |
${crit_count} |
Number of items matched the critical criteria |
${problem_count} |
Number of items matched either warning or critical criteria |
${list} |
A list of all items which matched the filter |
${ok_list} |
A list of all items which matched the ok criteria |
${warn_list} |
A list of all items which matched the warning criteria |
${crit_list} |
A list of all items which matched the critical criteria |
${problem_list} |
A list of all items which matched either the critical or the warning criteria |
${detail_list} |
A special list with critical, then warning and fainally ok |
${status} |
The returned status (OK/WARN/CRIT/UNKNOWN) |
-
ok-syntax
(CheckTaskSched, check_tasksched)
ok syntax.
DEPRECATED! This is the syntax for when an ok result is returned.
This value will not be used if your syntax contains %(list) or %(count).
-
empty-syntax
(CheckTaskSched, check_tasksched)
Empty syntax.
DEPRECATED! This is the syntax for when nothing matches the filter.
Possible values are:
Key |
Value |
%(application) |
Retrieves the name of the application that the task is associated with. |
%(comment) |
Retrieves the comment or description for the work item. |
%(creator) |
Retrieves the creator of the work item. |
%(enabled) |
TODO. |
%(exit_code) |
Retrieves the work item’s last exit code. |
%(folder) |
The task folder |
%(max_run_time) |
Retrieves the maximum length of time the task can run. |
%(most_recent_run_time) |
Retrieves the most recent time the work item began running. |
%(parameters) |
Retrieves the command-line parameters of a task. |
%(priority) |
Retrieves the priority for the task. |
%(status) |
Retrieves the status of the work item. |
%(task_status) |
Retrieves the status of the work item. |
%(title) |
The task title |
%(working_directory) |
Retrieves the working directory of the task. |
${count} |
Number of items matching the filter |
${total} |
Total number of items |
${ok_count} |
Number of items matched the ok criteria |
${warn_count} |
Number of items matched the warning criteria |
${crit_count} |
Number of items matched the critical criteria |
${problem_count} |
Number of items matched either warning or critical criteria |
${list} |
A list of all items which matched the filter |
${ok_list} |
A list of all items which matched the ok criteria |
${warn_list} |
A list of all items which matched the warning criteria |
${crit_list} |
A list of all items which matched the critical criteria |
${problem_list} |
A list of all items which matched either the critical or the warning criteria |
${detail_list} |
A special list with critical, then warning and fainally ok |
${status} |
The returned status (OK/WARN/CRIT/UNKNOWN) |
-
detail-syntax
(CheckTaskSched, check_tasksched)
Detail level syntax.
This is the syntax of each item in the list of top-syntax (see above).
Possible values are:
Key |
Value |
%(application) |
Retrieves the name of the application that the task is associated with. |
%(comment) |
Retrieves the comment or description for the work item. |
%(creator) |
Retrieves the creator of the work item. |
%(enabled) |
TODO. |
%(exit_code) |
Retrieves the work item’s last exit code. |
%(folder) |
The task folder |
%(max_run_time) |
Retrieves the maximum length of time the task can run. |
%(most_recent_run_time) |
Retrieves the most recent time the work item began running. |
%(parameters) |
Retrieves the command-line parameters of a task. |
%(priority) |
Retrieves the priority for the task. |
%(status) |
Retrieves the status of the work item. |
%(task_status) |
Retrieves the status of the work item. |
%(title) |
The task title |
%(working_directory) |
Retrieves the working directory of the task. |
${count} |
Number of items matching the filter |
${total} |
Total number of items |
${ok_count} |
Number of items matched the ok criteria |
${warn_count} |
Number of items matched the warning criteria |
${crit_count} |
Number of items matched the critical criteria |
${problem_count} |
Number of items matched either warning or critical criteria |
${list} |
A list of all items which matched the filter |
${ok_list} |
A list of all items which matched the ok criteria |
${warn_list} |
A list of all items which matched the warning criteria |
${crit_list} |
A list of all items which matched the critical criteria |
${problem_list} |
A list of all items which matched either the critical or the warning criteria |
${detail_list} |
A special list with critical, then warning and fainally ok |
${status} |
The returned status (OK/WARN/CRIT/UNKNOWN) |
-
perf-syntax
(CheckTaskSched, check_tasksched)
Performance alias syntax.
This is the syntax for the base names of the performance data.
Possible values are:
Key |
Value |
%(application) |
Retrieves the name of the application that the task is associated with. |
%(comment) |
Retrieves the comment or description for the work item. |
%(creator) |
Retrieves the creator of the work item. |
%(enabled) |
TODO. |
%(exit_code) |
Retrieves the work item’s last exit code. |
%(folder) |
The task folder |
%(max_run_time) |
Retrieves the maximum length of time the task can run. |
%(most_recent_run_time) |
Retrieves the most recent time the work item began running. |
%(parameters) |
Retrieves the command-line parameters of a task. |
%(priority) |
Retrieves the priority for the task. |
%(status) |
Retrieves the status of the work item. |
%(task_status) |
Retrieves the status of the work item. |
%(title) |
The task title |
%(working_directory) |
Retrieves the working directory of the task. |
${count} |
Number of items matching the filter |
${total} |
Total number of items |
${ok_count} |
Number of items matched the ok criteria |
${warn_count} |
Number of items matched the warning criteria |
${crit_count} |
Number of items matched the critical criteria |
${problem_count} |
Number of items matched either warning or critical criteria |
${list} |
A list of all items which matched the filter |
${ok_list} |
A list of all items which matched the ok criteria |
${warn_list} |
A list of all items which matched the warning criteria |
${crit_list} |
A list of all items which matched the critical criteria |
${problem_list} |
A list of all items which matched either the critical or the warning criteria |
${detail_list} |
A special list with critical, then warning and fainally ok |
${status} |
The returned status (OK/WARN/CRIT/UNKNOWN) |
-
computer
(CheckTaskSched, check_tasksched)
The name of the computer that you want to connect to.
-
user
(CheckTaskSched, check_tasksched)
The user name that is used during the connection to the computer.
-
domain
(CheckTaskSched, check_tasksched)
The domain of the user specified in the user parameter.
-
password
(CheckTaskSched, check_tasksched)
The password that is used to connect to the computer. If the user name and password are not specified, then the current token is used.
-
folder
(CheckTaskSched, check_tasksched)
The folder in which the tasks to check reside.
-
recursive
(CheckTaskSched, check_tasksched)
Recurse subfolder (defaults to true).
-
CheckTaskSched
checktasksched
Legacy version of check_tasksched
Usage:
Option |
Default Value |
Description |
help |
N/A |
Show help screen (this screen) |
help-pb |
N/A |
Show help screen as a protocol buffer payload |
show-default |
N/A |
Show default values for a given command |
help-short |
N/A |
Show help screen (short format). |
warn |
|
Warning bounds. |
crit |
|
Critical bounds. |
MaxWarn |
|
Maximum value before a warning is returned. |
MaxCrit |
|
Maximum value before a critical is returned. |
MinWarn |
|
Minimum value before a warning is returned. |
MinCrit |
|
Minimum value before a critical is returned. |
Counter |
|
The time to check |
truncate |
|
Deprecated option |
syntax |
|
Syntax (same as detail-syntax in the check_tasksched check) |
master-syntax |
|
Master Syntax (same as top-syntax in the check_tasksched check) |
filter |
|
Filter (same as filter in the check_tasksched check) |
debug |
N/A |
Filter (same as filter in the check_tasksched check) |
Arguments
-
help
(CheckTaskSched, checktasksched)
Show help screen (this screen)
-
help-pb
(CheckTaskSched, checktasksched)
Show help screen as a protocol buffer payload
-
show-default
(CheckTaskSched, checktasksched)
Show default values for a given command
-
help-short
(CheckTaskSched, checktasksched)
Show help screen (short format).
-
warn
(CheckTaskSched, checktasksched)
-
-
crit
(CheckTaskSched, checktasksched)
-
-
MaxWarn
(CheckTaskSched, checktasksched)
Maximum value before a warning is returned.
-
MaxCrit
(CheckTaskSched, checktasksched)
Maximum value before a critical is returned.
-
MinWarn
(CheckTaskSched, checktasksched)
Minimum value before a warning is returned.
-
MinCrit
(CheckTaskSched, checktasksched)
Minimum value before a critical is returned.
-
Counter
(CheckTaskSched, checktasksched)
-
-
truncate
(CheckTaskSched, checktasksched)
-
-
syntax
(CheckTaskSched, checktasksched)
Syntax (same as detail-syntax in the check_tasksched check)
-
master-syntax
(CheckTaskSched, checktasksched)
Master Syntax (same as top-syntax in the check_tasksched check)
-
filter
(CheckTaskSched, checktasksched)
Filter (same as filter in the check_tasksched check)
-
debug
(CheckTaskSched, checktasksched)
Filter (same as filter in the check_tasksched check)
comments powered by