Monitoring a matrix of load-balanced VirtualHosts?

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


Hi JB,

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

define service {
        use                     vhost-service
        service_description     www.bar.com
        check_command           my_check_http!www.bar.com
        hostgroup_name          bar_com_servers
}

define command {
        command_name    my_check_http
        command_line    $USER1$/check_http -I $HOSTADDRESS$ -H $ARG1$
}

This will call check_http with the host address (hostname) of each
server in the group "bar_com_servers". I've used a template,
vhost-service, to inherit the check interval and notification options
(not shown here).

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

As long as www.bar.com actually has a "/" page (it doens't return an
error or a redirect code).

Hope this helps,

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