title: NetBox: Job status
agents: netbox
catalog: app/netbox
license: GPLv2
distribution: check_mk
description:
 One service per job name, reporting the status, duration and age of that job's
 most recent run. Statuses {failed} and {errored} are {CRIT} by default; the
 mapping is configurable via the rule "NetBox job status".

 For a recurring job (a job with a scheduling interval) the levels on the age of
 the last run are derived from the job's own interval when they are not set
 explicitly: {WARN} at twice the interval, {CRIT} at four times. That way the
 check adapts automatically when the schedule changes, and it catches a
 scheduler or worker that stopped firing the job at all - which no status field
 would ever reveal.

item:
 The job name as shown in NetBox, e.g. {Sync data source}.

discovery:
 One service per recurring job (any job with a scheduling interval), plus one
 per job name matched by the "Jobs with their own service" patterns in the
 special agent rule. One-off jobs deliberately do not get their own service -
 they are covered by the "NetBox Jobs" summary.
