Monitoring a matrix of load-balanced VirtualHosts?

Chris Wilson chris at aidworld.org
Tue Aug 30 12:16:30 CEST 2005


Hi Andreas,

> > 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 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.

> 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...)

It does work with 1.2 :-) 

> [chris at dev chris]$ grep hostgroup_name /usr/local/nagios/etc/services.cfg
>         hostgroup_name          loband-virtual-ips

It seems like a good option, although the status CGI might get a little
cramped (and slow) if you had a lot of servers and a lot of websites.

Cheers, Chris.
-- 
(aidworld) chris wilson | chief engineer (chris at aidworld.org)



-------------------------------------------------------
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