Monitoring a matrix of load-balanced VirtualHosts?

Marc Powell marc at ena.com
Mon Aug 29 22:20:33 CEST 2005



> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of JB Segal
> Sent: Monday, August 29, 2005 3:09 PM
> To: Nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Monitoring a matrix of load-balanced
VirtualHosts?
> 
> Hi. I've searched through the archives, the nagiosexchange site, and
> google in general, but have yet to find a satisfactory answer to this:
> 
> I'm running (ok, my employer is running and has been for a while now)
> 1.2, talking to a variety of machines running various vintages of
> RedHat and various versions of nrpe and the plugins package.
> 
> I have a series of web servers - call them A, B and C - which are
> running apache, which is serving a variety of VirtualHosts - let's
> call them foo.com, bar.com and baz.com.
> 
> Each machine responds to both www.(foo|bar|baz).com and
> {hostname}.(foo|bar|baz).com (say: A.foo.com)
> 
> I need to check each server for the aliveness of each VHost.
> 
> I really am not sure how best to do this. Ok, I'm not really sure how
> to do this in any sort of clean fashion.
> 
> I would expect this to be a common need, but I seem to be wrong.
> 
> Help, Advice, Pointers to things I missed in TFM, etc. all welcome.

Perhaps I'm misunderstanding, but have you looked at check_http? It
should be able to easily handle what you want using the -H, -I, -e and
possibly -u arguments. Each machine would have at least 3 (or 6 if you
want to also check host.foo.com) services associated with it;
Website_foo.com, Website_bar.com and Website_baz.com, each of which uses
check_http to verify the site is active and returning content you
expect.

--
Marc


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list