[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] xymon ready to replace bb?
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] xymon ready to replace bb?
- From: Ralph Mitchell <ralphmitchell (at) gmail.com>
- Date: Thu, 26 Mar 2009 18:31:24 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=mjbvdEh/+6UDjE91oYCIGLFS47ZhE/HinYxhCpiQB/A=; b=SRcy2fvmkHpgXDHGdhsaR2nPaOnB+cJxk0U1ms1bEURDzBX2T2KFBsA9BJzr++xkJP rCBMOihCx6UQu8hg9FCdvRAElBbms2+qOT/BzEC5YtDSV2GTUMjIwZCI7cT+IEWM9NwK or1dWHjwdgmjupz1ETADtpcwjq66lGY2Ba7P0=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=vLrpFPEVO6D0QPFY47UGMxlIqUr4hhCT/KhgLhqz17WVxh1VnjDyCZEZn4hLVYSsbv NCsTcKLtUikk/MsHZMPk9AKKya3ZBrObVTOymKYOtud9iNiP4LAAqWh3eEyPY/OXcmn9 eGaJFO9Rpg86A7Yu3324w7X32KHIeBqanlDkc=
- References: <49CAE37B.6070002 (at) tmsusa.com> <200903262325.53879.stef.coene (at) docum.org> <20090326225334.73990 (at) gmx.net>
On Thu, Mar 26, 2009 at 5:53 PM, Malcolm Hunter <malcolm.hunter (at) gmx.co.uk>wrote:
> > The other (the slave one) first checks the status of the other server (a
> > simpel wget of the status page can be enough) and only sends out the
> alert
> > if
> > this page is not green.
> >
> > So, basically, both servers are triggering on the same alert, but the
> > slave
> > server only sends out the alert if the primary server is not green.
>
> Wouldn't there be more involved in this? What if the primary server's
> hobbit daemon was down, but the web service was still running? The secondary
> server would want to report the hobbit daemon being down, but wouldn't
> because the primary server's page was still green and hadn't been updated.
>
The hobbit pages have a time stamp in the title, so the slave can grab the
page, grep for <title>, extract the date, convert to seconds using gnudate.
Then the slave gets its own timestamp in seconds, subtracts the primary's
time and complains if there's more than a couple of minutes difference.
That timestamp doesn't update if the hobbit daemon is down.
Ralph Mitchell