defining domain for check_http for each host
Morris, Patrick
patrick.morris at hp.com
Sun Sep 3 16:21:03 CEST 2006
> Yeah, I follow you, but the issue is that I'm the user, and I
> care for the websites that I know are consistent with each
> machine. If that site goes down, then so did the machine..
> That's my reason behind it. Thanks for your help though, all
> of you, I don't want to seem as if I'm not appreciative. I
> was thinking, however, in the address of the host definition
> I just add the domain (www.yahoo.com) that path should
> resolve to the same machine every time. I'm not sure if this
> is still the solution I seek. The solution I really am
> seeking is to add another variable to the host definition.
> That would be completely, absolutely, ideal. It will also
> allow me to add other information to the hosts in the future.
> Any ideas as to how to add custom directives to the host
> definition block?
What you're trying to do just isn't possible with the current Nagios
version. However, it seems it would only be slightly less cumbersome, if
it all, to have a service definition template set up so that when a new
host is set up, you'd just have to add the following:
define service {
host_name new_host
check_command check_virtual_host!www.yahoo.com
}
Sure, it's not a one-liner, but it's not far from it.
-------------------------------------------------------------------------
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