check_jenkins_job_time.pl is a Nagios plugin that check that running Jenkins jobs are not taking unusual time to complete.

You can specify one critical and/or one warning threshold express in % of the expected building time (estimated by Jenkins with statistics on past builds).

You can select a given job with -j option or check all jobs defined on the master Jenkins specified by its url.

This plugin is written in Perl and use HTTP request to query Jenkins API (it requires LWP:: and JSON:: perl modules). It is derivated from the work done by jonlives on it Jenkins Plugin

It can be run by the Nagios server or through NRPE remote protocol