Monitoring a matrix of load-balanced VirtualHosts?

JB Segal jailbait at gmail.com
Tue Aug 30 15:04:36 CEST 2005


On 8/30/05, Andreas Ericsson <ae at op5.se> wrote:> Earlier, I <
jailbait at gmail.com> wrote:
> 2nd: I left out from my 1st mail the fact that I'd really really

> > prefer to do this in as few cfg stanzas as possible, as 1) I'd like
> > this solution to scale if, say, we were to end up with 20 webservers
> > and 45 domains - I /do/ have to check host.foo.com <http://host.foo.com>per boss's reqests
> > - so I'd love to not have to add another {number of websites} stanzas
> > for each new server.
> > 2) I just cleaned up the previous admin's installation and reduced
> > 3000 lines of cfg to 800 lines, and I'd love to not have to expand
> > back to that again right now.
> >
> > So, not to sound like a complete idiot - but probably unable to avoid
> > it, I continue my query:
> >
> > I've spent a while (before I sent my 1st mail, even) staring at the
> > check_http -h output and being... nonplussed. Unfortunately, that's
> > been my response to most of the nagios docs.
> >
> 
> With 1.2 your best bet would probably be to write a wrapper script that
> checks all the vhosts. check_http and some clever sed'ing should do the
> trick, really. With 2.0 you can assign services to hostgroups (I'm not
> sure that worked in 1.2...)


As Chris Wilson noted, hostgroups do the right thing in 1.2... but I really 
have no idea how I'd make the right host entries for a series of 
VirtualHosts. 

> Your response puzzles me even more, by implying that the '-u' might be 
> optional.
> >
> 
> It is. If it's not specified, the url requested is '/'.


But if I'm trying to check the website "www.bar.com <http://www.bar.com>" on 
the host "a.foo.com <http://a.foo.com>", the -u is not, as near as I can 
tell, optional, no?

JB
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050830/ae5618d9/attachment.html>


More information about the Users mailing list