Thanks everyone! <br><br>I really should have looked at the manual. The address directive in the host definition is pretty clearly explained:<br><br>"This directive is used to define the address of the host. Normally, this is an IP address, although it could really be anything you want (so long as it can be used to check the status of the host). You can use a FQDN to identify the host instead of an IP address, but if DNS services are not availble this could cause problems. When used properly, the $HOSTADDRESS$ macro will contain this address. Note: If you do not specify an address directive in a host definition, the name of the host will be used as its address. A word of caution about doing this, however - if DNS fails, most of your service checks will fail because the plugins will be unable to resolve the host name."
<br><br>which is what you were all saying! darn manual! stupid reading!<br><br>thanks guys ... i owe ya!<br><br>august<br><br><div class="gmail_quote">On Jan 24, 2008 2:03 PM, Yost, Karl <<a href="mailto:Karl.Yost@iqor.com">
Karl.Yost@iqor.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">You can put in a dns name for both the address and the hostname. I have done this for checking websites before
<br><br>----- Original Message -----<br>From: <a href="mailto:nagios-users-bounces@lists.sourceforge.net">nagios-users-bounces@lists.sourceforge.net</a> <<a href="mailto:nagios-users-bounces@lists.sourceforge.net">nagios-users-bounces@lists.sourceforge.net
</a>><br>To: Brock Kuhse <<a href="mailto:brock@kuhsefamily.org">brock@kuhsefamily.org</a>><br>Cc: <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a> <<a href="mailto:nagios-users@lists.sourceforge.net">
nagios-users@lists.sourceforge.net</a>><br>Sent: Wed Jan 23 21:53:34 2008<br>Subject: Re: [Nagios-users] how to monitor <a href="http://www.domain.com" target="_blank">www.domain.com</a> without host object<br><br>but the host has no ip. can i make a host entry without an ip? i only need th host entry so i can create a service (which requires a host, right?). then i http_check -I against a dns name?
<br><br>i'm guessing like this:<br><br><br>define host{<br>        use             generic-host            ; Inherit default values from a template<br>        host_name               <a href="http://www.mysite.com" target="_blank">
www.mysite.com</a>          ; The name we're giving to this host<br>        alias           Some Remote Host        ; A longer name associated with the host<br><br>        address         <a href="http://192.168.1.50" target="_blank">
192.168.1.50</a>            ; IP address of the host<br>        }<br>address is bogus, i just want to be able to associate a service against this, i won't check it for anything. host_name is important because i need that DNS value for my http_check:
<br><br><br><br>define command{<br>        name            check_http<br>        command_name    check_http<br>        command_line    $USER1$/check_http -I $HOSTNAME$<br>        }<br>and use the HOSTNAME macro (not address)
<br><br>then create the service:<br><br><br>define service{<br>        use             generic-service         ; Inherit default values from a template<br>        host_name               <a href="http://www.myhost.com" target="_blank">
www.myhost.com</a><br>        service_description     HTTP<br>        check_command   check_http<br>        }<br><br>my theory is that i then get a host called <a href="http://www.myhost.com" target="_blank">www.myhost.com
</a> and have a service being executed against that host that does an check_http and uses the domain name (which is also the hostname and pulled by a macro) rather than the IP (cause it doesn't exist)<br><br>seems ok - but i think i'm making this harder than i should be :-)
<br><br>when you say "we simply create a host object with the hosted site's IP / DNS" what does that look like? is the dns name the alias?<br><br>a good example of this is <a href="http://www.9news.com" target="_blank">
www.9news.com</a> which is with akamai (not my site) if you dig it:<br><br>[root@cottonwood cfgs]# dig <a href="http://www.9news.com" target="_blank">www.9news.com</a><br><br>; <<>> DiG 9.3.3rc2 <<>> 
<a href="http://www.9news.com" target="_blank">www.9news.com</a><br>;; global options:  printcmd<br>;; Got answer:<br>;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 59275<br>;; flags: qr rd ra; QUERY: 1, ANSWER: 4, AUTHORITY: 9, ADDITIONAL: 5
<br><br>;; QUESTION SECTION:<br>;www.9news.com.                 IN      A<br><br>;; ANSWER SECTION:<br><a href="http://www.9news.com" target="_blank">www.9news.com</a>.          300     IN      CNAME   <a href="http://www.9news.com.edgesuite.net" target="_blank">
www.9news.com.edgesuite.net</a>.<br><a href="http://www.9news.com.edgesuite.net" target="_blank">www.9news.com.edgesuite.net</a>. 21600 IN   CNAME   <a href="http://a21.g.akamai.net" target="_blank">a21.g.akamai.net</a> <
<a href="http://a21.g.akamai.net" target="_blank">http://a21.g.akamai.net</a>> .<br><a href="http://a21.g.akamai.net" target="_blank">a21.g.akamai.net</a>.       20      IN      A       <a href="http://210.9.72.174" target="_blank">
210.9.72.174</a><br><a href="http://a21.g.akamai.net" target="_blank">a21.g.akamai.net</a>.       20      IN      A       <a href="http://210.9.72.176" target="_blank">210.9.72.176</a><br><br>so to create a host to run the service check against is hard, cause the IP changes.
<br><br>august<br><br><br>On Jan 24, 2008 1:25 PM, Brock Kuhse < <a href="mailto:brock@kuhsefamily.org">brock@kuhsefamily.org</a>> wrote:<br><br><br>        Sorry for the top post – I haven't quite figured out how to get Outlook 2007 to behave properly when replying to HTML emails (switching to plain text after I hit "Reply" doesn't seem to quote the original properly).  I'm sure I'll figure it out.   Soon.
<br><br><br><br>        Anyway, we monitor plenty of clients for whom we track the status of their hosted sites in addition to their internal networks.  For the hosted sites, we simply create a host object with the hosted site's IP / DNS name and assign checks normally (check_http variations primarily).
<br><br><br><br>        -          Brock<br><br><br><br>        From: <a href="mailto:nagios-users-bounces@lists.sourceforge.net">nagios-users-bounces@lists.sourceforge.net</a> [mailto:<a href="mailto:nagios-users-bounces@lists.sourceforge.net">
nagios-users-bounces@lists.sourceforge.net</a>] On Behalf Of August Simonelli<br>        Sent: Wednesday, January 23, 2008 6:23 PM<br>        To: <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net
</a><br>        Subject: [Nagios-users] how to monitor <a href="http://www.domain.com" target="_blank">www.domain.com</a> without host object<br><br><br><br>        Hi Nagios-ers ...<br><br>        I need a little help with some logic here.
<br><br>        In our network we have the usual set up:<br><br>         web servers -> VIP -> Cache -> VIP<br><br>        but then on top of the cache VIP we also use an external caching provider (no prizes for guessing who that is, akamai) this means all requests for 
<a href="http://www.mysite.com" target="_blank">www.mysite.com</a> go to this external source via cname, which then gets assigned a round-robin'ed IP. so it changes a lot.<br><br>        now, i want to monitor all kinds of page response times, error codes and such that i know check_http can do ...
<br><br>        and i can do that easily as a service definition for my web server host objects, or my vip host object or my squid host objects etc.<br><br>        but ... and here's where i get confused ...<br><br>        i have no host objects for the external caches, so what IP do i do my http_check tests against to ensure that i'm hitting our outermost layer as a user would?
<br><br>        put another way ... how would you all go about monitoring a website that isn't yours (say you wanted to monitor <a href="http://cnn.com" target="_blank">cnn.com</a> for all these things, what ip would you run your checks against? can i create a host with a domain name only?
<br><br>        i'm sure this is easy and i'm just missing it ... so thanks for your gentle help! :-)<br><br>        august<br><br><br></blockquote></div><br>