Check status of your scheduled jobs.
A list of all available queries (check commands)
Command | Description |
---|---|
check_tasksched | Check status of scheduled jobs. |
checktasksched | Legacy version of check_tasksched |
A quick reference for all available queries (check commands) in the CheckTaskSched module.
Check status of scheduled jobs.
To edit these sample please edit this page
Default check via NRPE::
check_nrpe --host 192.168.56.103 --command check_tasksched
/test: 1 != 0|'test'=1;0;0
Option | Default Value | Description |
---|---|---|
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. | |
debug | N/A | Show debugging information in the log |
show-all | N/A | Show details for all matches regardless of status (normally details are only showed for warnings and criticals). |
empty-state | warning | Return status to use when nothing matched filter. |
perf-config | Performance data generation configuration | |
escape-html | N/A | Escape any < and > characters to prevent HTML encoding |
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). |
top-syntax | ${status}: ${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. |
force-old | N/A | The name of the computer that you want to connect to. |
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 sub folder (defaults to true). |
Deafult Value: enabled = 1
Description: Filter which marks interesting items. Interesting items are items which will be included in the check. They do not denote warning or critical state instead it defines which items are relevant and you can remove unwanted items. Available options :
Key | Value |
---|---|
count | Number of items matching the filter. Common option for all checks. |
total | Total number of items. Common option for all checks. |
ok_count | Number of items matched the ok criteria. Common option for all checks. |
warn_count | Number of items matched the warning criteria. Common option for all checks. |
crit_count | Number of items matched the critical criteria. Common option for all checks. |
problem_count | Number of items matched either warning or critical criteria. Common option for all checks. |
list | A list of all items which matched the filter. Common option for all checks. |
ok_list | A list of all items which matched the ok criteria. Common option for all checks. |
warn_list | A list of all items which matched the warning criteria. Common option for all checks. |
crit_list | A list of all items which matched the critical criteria. Common option for all checks. |
problem_list | A list of all items which matched either the critical or the warning criteria. Common option for all checks. |
detail_list | A special list with critical, then warning and finally ok. Common option for all checks. |
status | The returned status (OK/WARN/CRIT/UNKNOWN). Common option for all checks. |
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 |
has_run | True if the task has ever executed. |
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. |
task_status | Retrieves the status of the work item. |
title | The task title |
working_directory | Retrieves the working directory of the task. |
Deafult Value: exit_code != 0
Description: 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 |
---|---|
count | Number of items matching the filter. Common option for all checks. |
total | Total number of items. Common option for all checks. |
ok_count | Number of items matched the ok criteria. Common option for all checks. |
warn_count | Number of items matched the warning criteria. Common option for all checks. |
crit_count | Number of items matched the critical criteria. Common option for all checks. |
problem_count | Number of items matched either warning or critical criteria. Common option for all checks. |
list | A list of all items which matched the filter. Common option for all checks. |
ok_list | A list of all items which matched the ok criteria. Common option for all checks. |
warn_list | A list of all items which matched the warning criteria. Common option for all checks. |
crit_list | A list of all items which matched the critical criteria. Common option for all checks. |
problem_list | A list of all items which matched either the critical or the warning criteria. Common option for all checks. |
detail_list | A special list with critical, then warning and finally ok. Common option for all checks. |
status | The returned status (OK/WARN/CRIT/UNKNOWN). Common option for all checks. |
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 |
has_run | True if the task has ever executed. |
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. |
task_status | Retrieves the status of the work item. |
title | The task title |
working_directory | Retrieves the working directory of the task. |
Description: Short alias for warning
### criticalDeafult Value: exit_code < 0
Description: 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 |
---|---|
count | Number of items matching the filter. Common option for all checks. |
total | Total number of items. Common option for all checks. |
ok_count | Number of items matched the ok criteria. Common option for all checks. |
warn_count | Number of items matched the warning criteria. Common option for all checks. |
crit_count | Number of items matched the critical criteria. Common option for all checks. |
problem_count | Number of items matched either warning or critical criteria. Common option for all checks. |
list | A list of all items which matched the filter. Common option for all checks. |
ok_list | A list of all items which matched the ok criteria. Common option for all checks. |
warn_list | A list of all items which matched the warning criteria. Common option for all checks. |
crit_list | A list of all items which matched the critical criteria. Common option for all checks. |
problem_list | A list of all items which matched either the critical or the warning criteria. Common option for all checks. |
detail_list | A special list with critical, then warning and finally ok. Common option for all checks. |
status | The returned status (OK/WARN/CRIT/UNKNOWN). Common option for all checks. |
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 |
has_run | True if the task has ever executed. |
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. |
task_status | Retrieves the status of the work item. |
title | The task title |
working_directory | Retrieves the working directory of the task. |
Description: Short alias for critical.
### okDescription: 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 |
---|---|
count | Number of items matching the filter. Common option for all checks. |
total | Total number of items. Common option for all checks. |
ok_count | Number of items matched the ok criteria. Common option for all checks. |
warn_count | Number of items matched the warning criteria. Common option for all checks. |
crit_count | Number of items matched the critical criteria. Common option for all checks. |
problem_count | Number of items matched either warning or critical criteria. Common option for all checks. |
list | A list of all items which matched the filter. Common option for all checks. |
ok_list | A list of all items which matched the ok criteria. Common option for all checks. |
warn_list | A list of all items which matched the warning criteria. Common option for all checks. |
crit_list | A list of all items which matched the critical criteria. Common option for all checks. |
problem_list | A list of all items which matched either the critical or the warning criteria. Common option for all checks. |
detail_list | A special list with critical, then warning and finally ok. Common option for all checks. |
status | The returned status (OK/WARN/CRIT/UNKNOWN). Common option for all checks. |
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 |
has_run | True if the task has ever executed. |
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. |
task_status | Retrieves the status of the work item. |
title | The task title |
working_directory | Retrieves the working directory of the task. |
Description: Show debugging information in the log
### show-allDescription: Show details for all matches regardless of status (normally details are only showed for warnings and criticals).
### empty-stateDeafult Value: warning
Description: Return status to use when nothing matched filter. If no filter is specified this will never happen unless the file is empty.
### perf-configDescription: Performance data generation configuration TODO: obj ( key: value; key: value) obj (key:valuer;key:value)
### escape-htmlDescription: Escape any < and > characters to prevent HTML encoding
### helpDescription: Show help screen (this screen)
### help-pbDescription: Show help screen as a protocol buffer payload
### show-defaultDescription: Show default values for a given command
### help-shortDescription: Show help screen (short format).
### top-syntaxDeafult Value: ${status}: ${problem_list}
Description: Top level syntax. Used to format the message to return can include text as well as special keywords which will include information from the checks. To add a keyword to the message you can use two syntaxes either ${keyword} or %(keyword) (there is no difference between them apart from ${} can be difficult to excpae on linux). The available keywords are:
Key | Value |
---|---|
count | Number of items matching the filter. Common option for all checks. |
total | Total number of items. Common option for all checks. |
ok_count | Number of items matched the ok criteria. Common option for all checks. |
warn_count | Number of items matched the warning criteria. Common option for all checks. |
crit_count | Number of items matched the critical criteria. Common option for all checks. |
problem_count | Number of items matched either warning or critical criteria. Common option for all checks. |
list | A list of all items which matched the filter. Common option for all checks. |
ok_list | A list of all items which matched the ok criteria. Common option for all checks. |
warn_list | A list of all items which matched the warning criteria. Common option for all checks. |
crit_list | A list of all items which matched the critical criteria. Common option for all checks. |
problem_list | A list of all items which matched either the critical or the warning criteria. Common option for all checks. |
detail_list | A special list with critical, then warning and finally ok. Common option for all checks. |
status | The returned status (OK/WARN/CRIT/UNKNOWN). Common option for all checks. |
Deafult Value: %(status): All tasks are ok
Description: 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-syntaxDeafult Value: %(status): No tasks found
Description: Empty syntax. DEPRECATED! This is the syntax for when nothing matches the filter. Possible values are:
Key | Value |
---|---|
count | Number of items matching the filter. Common option for all checks. |
total | Total number of items. Common option for all checks. |
ok_count | Number of items matched the ok criteria. Common option for all checks. |
warn_count | Number of items matched the warning criteria. Common option for all checks. |
crit_count | Number of items matched the critical criteria. Common option for all checks. |
problem_count | Number of items matched either warning or critical criteria. Common option for all checks. |
list | A list of all items which matched the filter. Common option for all checks. |
ok_list | A list of all items which matched the ok criteria. Common option for all checks. |
warn_list | A list of all items which matched the warning criteria. Common option for all checks. |
crit_list | A list of all items which matched the critical criteria. Common option for all checks. |
problem_list | A list of all items which matched either the critical or the warning criteria. Common option for all checks. |
detail_list | A special list with critical, then warning and finally ok. Common option for all checks. |
status | The returned status (OK/WARN/CRIT/UNKNOWN). Common option for all checks. |
Deafult Value: ${folder}/${title}: ${exit_code} != 0
Description: Detail level syntax. Used to format each resulting item in the message. %(list) will be replaced with all the items formated by this syntax string in the top-syntax. To add a keyword to the message you can use two syntaxes either ${keyword} or %(keyword) (there is no difference between them apart from ${} can be difficult to excpae on linux). The available keywords 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 |
has_run | True if the task has ever executed. |
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. |
task_status | Retrieves the status of the work item. |
title | The task title |
working_directory | Retrieves the working directory of the task. |
Deafult Value: ${title}
Description: 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 |
has_run | True if the task has ever executed. |
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. |
task_status | Retrieves the status of the work item. |
title | The task title |
working_directory | Retrieves the working directory of the task. |
Description: The name of the computer that you want to connect to.
### computerDescription: The name of the computer that you want to connect to.
### userDescription: The user name that is used during the connection to the computer.
### domainDescription: The domain of the user specified in the user parameter.
### passwordDescription: 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.
### folderDescription: The folder in which the tasks to check reside.
### recursiveDescription: Recurse sub folder (defaults to true).
Legacy version of check_tasksched
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) |
Description: Show help screen (this screen)
### help-pbDescription: Show help screen as a protocol buffer payload
### show-defaultDescription: Show default values for a given command
### help-shortDescription: Show help screen (short format).
### warnDescription: Warning bounds.
### critDescription: Critical bounds.
### MaxWarnDescription: Maximum value before a warning is returned.
### MaxCritDescription: Maximum value before a critical is returned.
### MinWarnDescription: Minimum value before a warning is returned.
### MinCritDescription: Minimum value before a critical is returned.
### CounterDescription: The time to check
### truncateDescription: Deprecated option
### syntaxDescription: Syntax (same as detail-syntax in the check_tasksched check)
### master-syntaxDescription: Master Syntax (same as top-syntax in the check_tasksched check)
### filterDescription: Filter (same as filter in the check_tasksched check)
### debugDescription: Filter (same as filter in the check_tasksched check)