<br><br><div><span class="gmail_quote">On 8/30/05, <b class="gmail_sendername">Andreas Ericsson</b> <<a href="mailto:ae@op5.se">ae@op5.se</a>> wrote:</span><div>> Earlier, I <<a href="mailto:jailbait@gmail.com">
jailbait@gmail.com</a>> wrote:<br>
> 2nd: I left out from my 1st mail the fact that I'd really really<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">> prefer to do this in as few cfg stanzas as possible, as 1) I'd like<br>> this solution to scale if, say, we were to end up with 20 webservers
<br>> and 45 domains - I /do/ have to check <a href="http://host.foo.com">host.foo.com</a> per boss's reqests<br>> - so I'd love to not have to add another {number of websites} stanzas<br>> for each new server.<br>
> 2) I just cleaned up the previous admin's installation and reduced<br>> 3000 lines of cfg to 800 lines, and I'd love to not have to expand<br>> back to that again right now.<br>><br>> So, not to sound like a complete idiot - but probably unable to avoid
<br>> it, I continue my query:<br>><br>> I've spent a while (before I sent my 1st mail, even) staring at the<br>> check_http -h output and being... nonplussed. Unfortunately, that's<br>> been my response to most of the nagios docs.
<br>><br><br>With 1.2 your best bet would probably be to write a wrapper script that<br>checks all the vhosts. check_http and some clever sed'ing should do the<br>trick, really. With 2.0 you can assign services to hostgroups (I'm not
<br>sure that worked in 1.2...)</blockquote><div><br>
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. <br>
</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">> Your response puzzles me even more, by implying that the '-u' might be optional.
<br>><br><br>It is. If it's not specified, the url requested is '/'.</blockquote><div><br>
But if I'm trying to check the website "<a href="http://www.bar.com">www.bar.com</a>" on the host
"<a href="http://a.foo.com">a.foo.com</a>", the -u is not, as near as I can tell, optional, no?<br>
</div></div><br>
JB<br>