Subject: | Reported age does not take delay into account |
Currently this nagios plugin alarms based on the date that a job was created, rather than how
long the job has been in a "ready" state.
When working with delayed jobs, it seems to make more sense to take the delay into account
when determining the age of the job. This would prevent the alert from triggering as soon as a
delayed job is moved into the ready queue.
My suggested fix is a one-liner:
Line 157:
$age = $stats->age - $stats->delay;