tasksched

check_tasksched

Check status of scheduled jobs

Implementation

WindowsLinuxFreeBSDMacOSX

Examples

Default Check

check_tasksched
OK - All tasks are ok

Example using NRPE and Naemon

Naemon Config

define command{
    command_name         check_nrpe
    command_line         $USER1$/check_nrpe -H $HOSTADDRESS$ -n -c $ARG1$ -a $ARG2$
}

define service {
    host_name            testhost
    service_description  check_tasksched
    use                  generic-service
    check_command        check_nrpe!check_tasksched!'crit=exit_code != 0'
}

Argument Defaults

ArgumentDefault Value
filterenabled = true
warningexit_code != 0
criticalexit_code < 0
empty-state1 (WARNING)
empty-syntax%(status) - No tasks found
top-syntax%(status) - ${problem_list}
ok-syntax%(status) - All tasks are ok
detail-syntax${folder}/${title}: ${exit_code} != 0

Check Specific Arguments

ArgumentDescription
timezoneSets the timezone for time metrics (default is local time)

Attributes

Filter Keywords

these can be used in filters and thresholds (along with the default attributes):

AttributeDescription
applicationName of the application that the task is associated with
commentComment or description for the work item
creatorCreator of the work item
enabledFlag wether this job is enabled (true/false)
exit_codeThe last jobs exit code
exit_stringThe last jobs exit code as string
folderTask folder
has_runTrue if this task has ever been executed
max_run_timeMaximum length of time the task can run
most_recent_run_timeMost recent time the work item began running
priorityTask priority
titleTask title
hiddenIndicates that the task will not be visible in the UI (true/false)
missed_runsNumber of times the registered task has missed a scheduled run
task_statusTask status as string
next_run_timeTime when the registered task is next scheduled to run
parametersCommand line parameters for the task