I think https://builds.apache.org/queue/api/xml?tree=items is a good start --- you want to monitor the # of <item/> in that thing.

It's probably a good idea to expose the queue length itself from this endpoint. I'll add that change.

On 08/02/2013 11:47 AM, Kane Bonnette wrote:
Hello,

We have a Nagios server set up, and we were hoping to use this script
(https://github.com/Ericbla/check_jenkins/blob/master/check_jenkins_job_time.pl)
to monitor jenkins with Nagios. However, this script seems to only track
completed jobs; the data we want to monitor is queue length and how long a
current build has been going. However, checking the Jenkins API
(https://builds.apache.org/api/), this information doesn’t seem to be exposed.
Is there another way to remotely get this information, or are we stuck?

--------------------------------------------------------------------------------

*Kane Bonnette***

/Senior Developer////
/*678-397-1618*

                
        
--------------------------------------------------------------------------------

Description: cid:[email protected]

        

Description: cid:[email protected] 
<http://bit.ly/PaperHost_Twitter>

        

Follow PaperHost on Twitter <http://bit.ly/PaperHost_Twitter>

Description: cid:[email protected] 
<http://bit.ly/PaperHost_FaceBook>

        

Become a Fan of PaperHost <http://bit.ly/PaperHost_FaceBook>

Description: cid:[email protected] <http://paperhost.blogspot.com/>

        

PaperHost Blog <http://paperhost.blogspot.com/>

Description: cid:[email protected]
<http://www.linkedin.com/groups?homeNewMember=&gid=2468558>

        

PaperHost LinkedIn Discussion Group
<http://www.linkedin.com/groups?homeNewMember=&gid=2468558>

LEGAL DISCLAIMER

The information transmitted is intended solely for the individual or entity to
which it is addressed and may contain confidential and/or privileged material.
Any review, retransmission, dissemination or other use of or taking action in
reliance upon this information by persons or entities other than the intended
recipient is prohibited. If you have received this email in error please contact
the sender and delete the material from any computer.

--
You received this message because you are subscribed to the Google Groups
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.




--
Kohsuke Kawaguchi | CloudBees, Inc. | http://cloudbees.com/
Try Jenkins Enterprise, our professional version of Jenkins

--
You received this message because you are subscribed to the Google Groups "Jenkins 
Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to