<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    On 10/7/2010 2:41 PM, Ilan Berkner wrote:
    <blockquote
      cite="mid:AANLkTik9i361aSiA2mGNKVB=CqYVs1tBum2i0sxRLDnE@mail.gmail.com"
      type="cite">newbie question...
      <div><br>
      </div>
      <div>I have a service defined in my services.cfg file that looks
        like this:</div>
      <div><br>
      </div>
      <div>define service {</div>
      <div>use generic-service</div>
      <div>host_name myserver</div>
      <div>service_description PING</div>
      <div>check_command check_ping!100.0,20%!500.0,60%</div>
      <div>}</div>
      <div><br>
      </div>
      <div>in my hosts file have "myserver" defined with an address tag:
        <a moz-do-not-send="true" href="http://www.myserver.com">www.myserver.com</a></div>
      <div>
        <br>
      </div>
      <div>when the check_ping command runs, does it check the ping
        status against <a moz-do-not-send="true"
          href="http://www.myserver.com">www.myserver.com</a> even
        though I'm not specifically specifying the host in the
        check_ping command?</div>
      <br>
    </blockquote>
    <br>
    The "check_ping" command in your service definition is *not* a
    reference to the "check_ping" plugin, it's a reference to the
    "check_ping" check command defined somewhere else in your config. 
    Normally that command will call a plugin (in this case, most likely
    check_ping) with some set of arguments, which in most cases include
    the address of the host on which the service was defined.<br>
  </body>
</html>