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><pre>define host{<br>   use             generic-host            ; Inherit default values from a template<br>      host_name               <a href="http://www.mysite.com">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>      address         <a href="http://192.168.1.50">192.168.1.50</a>            ; IP address of the host<br>      }</pre>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><pre>define command{<br>      name            check_http<br>    command_name    check_http<br>    command_line    $USER1$/check_http -I $HOSTNAME$ <br>     }</pre>and use the HOSTNAME macro (not address)<br><br>then create the service:<br><br>
<pre>define service{<br>    use             generic-service         ; Inherit default values from a template<br>      host_name               <a href="http://www.myhost.com">www.myhost.com</a><br>      service_description     HTTP<br>  check_command   check_http<br>    }</pre>
<br>my theory is that i then get a host called <a href="http://www.myhost.com">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 "<span style="font-size: 11pt; color: rgb(31, 73, 125);">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">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">www.9news.com</a><br><br>
; <<>> DiG 9.3.3rc2 <<>> <a href="http://www.9news.com">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">www.9news.com</a>.          300     IN      CNAME   
<a href="http://www.9news.com.edgesuite.net">www.9news.com.edgesuite.net</a>.<br><a href="http://www.9news.com.edgesuite.net">www.9news.com.edgesuite.net</a>. 21600 IN   CNAME   <a href="http://a21.g.akamai.net">a21.g.akamai.net
</a>.<br><a href="http://a21.g.akamai.net">a21.g.akamai.net</a>.       20      IN      A       <a href="http://210.9.72.174">210.9.72.174</a><br><a href="http://a21.g.akamai.net">a21.g.akamai.net</a>.       20      IN      A       
<a href="http://210.9.72.176">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></span><br><div class="gmail_quote">On Jan 24, 2008 1:25 PM, Brock Kuhse <
<a href="mailto:brock@kuhsefamily.org">brock@kuhsefamily.org</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;">








<div link="blue" vlink="purple" lang="EN-US">

<div>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">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.</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);">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).</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<p style="text-indent: -0.25in;"><span style="font-size: 11pt; color: rgb(31, 73, 125);"><span>-<span>         
</span></span></span><span style="font-size: 11pt; color: rgb(31, 73, 125);">Brock</span></p>

<p><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0in 0in;">

<p><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;">
<a href="mailto:nagios-users-bounces@lists.sourceforge.net" target="_blank">nagios-users-bounces@lists.sourceforge.net</a>
[mailto:<a href="mailto:nagios-users-bounces@lists.sourceforge.net" target="_blank">nagios-users-bounces@lists.sourceforge.net</a>] <b>On Behalf Of </b>August
Simonelli<br>
<b>Sent:</b> Wednesday, January 23, 2008 6:23 PM<br>
<b>To:</b> <a href="mailto:nagios-users@lists.sourceforge.net" target="_blank">nagios-users@lists.sourceforge.net</a><br>
<b>Subject:</b> [Nagios-users] how to monitor <a href="http://www.domain.com" target="_blank">www.domain.com</a> without host
object</span></p>

</div><div><div></div><div class="Wj3C7c">

<p> </p>

<p>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</p>

</div></div></div>

</div>


</blockquote></div><br>