testing if gerrit.ovirt.org is up/hang

Dan Kenigsberg danken at redhat.com
Tue Jun 5 11:20:42 UTC 2012


On Mon, Jun 04, 2012 at 10:34:06AM -0400, Eyal Edri wrote:
> hi,
> 
> i want to enhance the job that monitors gerrit.ovirt.org.
> 
> today it just do 'wget -v -d gerrit.ovirt.org':
> 
> http://jenkins.ovirt.org/view/system-monitoring/job/check_gerrit_ovirt_org/10214/console
> 
> Apparently during the time it was hang today,this command succeeded.
> 
> any suggestions on how to check if gerrit service is hang? 

It's the classical question, how can you tell if a program is dead or
just very very slow.

The usual answer is "define a timeout".

    wget -v -d --timeout 5 gerrit.ovirt.org

currently fails after a minute or two of trying. BTW, you could add
`date` before and after `wget` to see if that's the case.

Dan.



More information about the Infra mailing list