From: "Dan Kenigsberg" <danken(a)redhat.com>
To: "Eyal Edri" <eedri(a)redhat.com>
Cc: "infra" <infra(a)ovirt.org>
Sent: Tuesday, June 5, 2012 2:20:42 PM
Subject: Re: testing if gerrit.ovirt.org
On Mon, Jun 04, 2012 at 10:34:06AM -0400, Eyal Edri wrote:
> i want to enhance the job that monitors gerrit.ovirt.org
> today it just do 'wget -v -d gerrit.ovirt.org':
> Apparently during the time it was hang today,this command
> 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.