defining domain for check_http for each host
Richard Galvez
richy at daviesinc.com
Sun Sep 3 02:05:45 CEST 2006
Great, I'm glad to know I was relatively close to the correct path. Now
the question though is syntax. Wouldn't nagios complain if I put a
"domain_check www.yahoo.com" in the host definition? And then, how would
I summon the variable "domain_check?" As $DOMAINCHECK$ ?
Richard
On Sat, 2006-09-02 at 19:31 -0400, Morris, Patrick wrote:
> > 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.
>
> !DSPAM:44fa14ba77131424011432!
>
-------------------------------------------------------------------------
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