jonlives/nagios-jenkins-plugin — pull request #4 by nickrw (2012-06-25 17:52:35+00:00)
Title: Couple of bugfixes

A few fixes I made when looking at this script for use in our nagios.

* A missing HTTP basic auth in the final HTTP request (not always triggered, I didn't notice it until I hit upon a failing build)
* URL Escape the job name. While LWP escapes your path automatically, it is broken when printed as part of the return string, and so not correct in an actual nagios alert.
* Fix a bug where after 24 hours the alert would reset to OK, as only hours / minutes of the duration were being taken into account. Moved to delta_ms and in_units to aggregate the whole duration into one unit.