defining domain for check_http for each host

Morris, Patrick patrick.morris at hp.com
Sun Sep 3 01:31:18 CEST 2006


> I am trying to setup a domain for each host that I want 
> check_http to check. In other words, for host colo1.colo.com 
> I want check_http to check www.yahoo.com (as if yahoo.com was 
> hosted on colo1.colo.com). The idea I had to this was the following:
> 
> Add a directive in the host definition block for each host 
> for a domain such as "domain_check" and then pass this 
> variable in the definition for check_http, such as 
> $PATH$/check_http -H $DOMAINCHECK$ -w...
> 
> Is something like this possible? Or can anyone else suggest 
> an easier or more effective solution? I considered changing 
> the address of each host to that domain, but I considered 
> this is an inelegant and flawed method.

Yes, that's how you would check virtual hosts. You'd set your parameter
in the service definition.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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