title: Nagios plugin to check health of each jenkins job
body: <p>Could someone help me on writting a perl script which will check health of each jenkins job on different servers.
  Here are the steps I want to use for plugin creation:</p>
  
  <ol>
  <li><p>Using jenkins REST API I want to found jenkins jobs and stored them into an array.</p>
  
  <p><code>http://my-host:8080/api/xml</code></p>
  
  <p>
  
    Test_Job1
    http://jenkins-host:8080/job/Test_job1/
    red
  
  
    Test_job2
    http://jenkins-host:8080/job/Test_job2/
    red
  
  
    Test_View
    http://jenkins-host:8080/
  
  </p></li>
  <li><p>For each jenkins job stored in an array I want to monitor HealthReport of each job using REST API.</p>
  
  <p><code>http://my-host:8080/Job_name/api/xml</code></p>
  
  <p>
     Test Result: 1 test failing out of a total of 78 tests.<br>
     
     health-80plus.png
     98
  </p></li>
  <li><p>According to the <code>&lt;score&gt;98&lt;/score&gt;</code> of jenkins job, I want to display OK,CRITICAL,WARNING on nagios GUI.</p></li>
  <li><p>if <code>&lt;score&gt;98&lt;/score&gt;</code> is less than 50 it should show CRITICAL on nagios GUI.</p></li>
  </ol>