<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi,<br>
    <br>
    the webpages ignore ghosts if they haven't been heard from for more
    than 10 minutes, which includes those servers that have been added
    to hosts.cfg.<br>
    <br>
    The "xymon 127.0.0.1 ghostlist command returns all of the servers
    that have - at some time - been recorded as ghosts. The last field
    of the output is the timestamp that they were last seen as ghosts,
    so if the difference from that timestamp until current time is
    greater than 600 seconds, they will not show up on the webpage.<br>
    <br>
    <br>
    Regards,<br>
    Henrik<br>
    <br>
    <br>
    <div class="moz-cite-prefix">Den 03-09-2015 kl. 15:06 skrev
      Blumenthal, Russell:<br>
    </div>
    <blockquote
cite="mid:CO2PR0801MB5527A0E18B0F8F38C9BBD3DE0680@CO2PR0801MB552.namprd08.prod.outlook.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
      <style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
p.msochpdefault, li.msochpdefault, div.msochpdefault
        {mso-style-name:msochpdefault;
        margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Calibri",sans-serif;}
span.emailstyle17
        {mso-style-name:emailstyle17;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span style="color:#1F497D">At least I am
            not the only one who sees that discrepancy.
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">How does the
            script determine or figure out what is considered a ghost
            client?
            <o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">Unfortunately
            when it comes to digging deeper in these linux/unix
            environments and scripts my usefulness dwindles.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">Thanks<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
        <div>
          <div style="border:none;border-top:solid #E1E1E1
            1.0pt;padding:3.0pt 0in 0in 0in">
            <p class="MsoNormal"><b>From:</b> Galen Johnson
              [<a class="moz-txt-link-freetext" href="mailto:Galen.Johnson@sas.com">mailto:Galen.Johnson@sas.com</a>] <br>
              <b>Sent:</b> Wednesday, September 2, 2015 11:46 AM<br>
              <b>To:</b> Blumenthal, Russell
              <a class="moz-txt-link-rfc2396E" href="mailto:Russell.Blumenthal@stonybrookmedicine.edu"><Russell.Blumenthal@stonybrookmedicine.edu></a>;
              <a class="moz-txt-link-abbreviated" href="mailto:xymon@xymon.com">xymon@xymon.com</a><br>
              <b>Subject:</b> Re: Clear Ghostlist file?<o:p></o:p></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p><span
            style="font-family:"Calibri",sans-serif;color:black">Reading
            the script, the list of Ghosts are generated by the command:<o:p></o:p></span></p>
        <p><span
            style="font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></p>
        <p><span
            style="font-family:"Calibri",sans-serif;color:black"><PATHTOXYMON>/server/bin/xymon
            localhost ghostlist<o:p></o:p></span></p>
        <p><span
            style="font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></p>
        <p><span
            style="font-family:"Calibri",sans-serif;color:black">I
            think the better question might be, why is that command
            returning the wrong info?  I see the same discrepancy when I
            run the command by hand and compare to the Ghost Clients
            page.<o:p></o:p></span></p>
        <p><span
            style="font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></p>
        <p><span
            style="font-family:"Calibri",sans-serif;color:black">=G=<o:p></o:p></span></p>
        <p><span
            style="font-family:"Calibri",sans-serif;color:black"><o:p> </o:p></span></p>
        <div>
          <div class="MsoNormal" style="text-align:center"
            align="center"><span style="font-size:12.0pt;color:#212121">
              <hr align="center" size="2" width="98%">
            </span></div>
          <div id="divRplyFwdMsg">
            <p class="MsoNormal"><b><span style="color:black">From:</span></b><span
                style="color:black"> Xymon <<a moz-do-not-send="true"
                  href="mailto:xymon-bounces@xymon.com">xymon-bounces@xymon.com</a>>
                on behalf of Blumenthal, Russell <<a
                  moz-do-not-send="true"
                  href="mailto:Russell.Blumenthal@stonybrookmedicine.edu">Russell.Blumenthal@stonybrookmedicine.edu</a>><br>
                <b>Sent:</b> Wednesday, September 2, 2015 9:12 AM<br>
                <b>To:</b> <a moz-do-not-send="true"
                  href="mailto:xymon@xymon.com">xymon@xymon.com</a><br>
                <b>Subject:</b> [Xymon] Clear Ghostlist file?</span><span
                style="font-size:12.0pt;color:#212121">
                <o:p></o:p></span></p>
            <div>
              <p class="MsoNormal"><span
                  style="font-size:12.0pt;color:#212121"> <o:p></o:p></span></p>
            </div>
          </div>
          <div>
            <div>
              <p class="MsoNormal"><span style="color:#212121">Is there
                  a way to clear the ghostlist file and have it
                  regenerated? I took a look at it (~/server/bin/xymon
                  127.0.0.1 ghostlist) and I see hosts and IPs (total of
                  40) that are in my hosts.cfg file. The ghost clients
                  page in Xymon only shows 6 hosts, which is the correct
                  number. I am trying to implement the unconfigured
                  clients script (<a moz-do-not-send="true"
                    href="https://wiki.xymonton.org/doku.php/addons:unconfigured_clients">https://wiki.xymonton.org/doku.php/addons:unconfigured_clients</a>)
                  and it works well however since the ghostlist file has
                  hosts that should not be there, it makes the display
                  not 100% correct by putting hosts in 2 pages.<o:p></o:p></span></p>
              <p class="MsoNormal"><span style="color:#212121"> <o:p></o:p></span></p>
              <p class="MsoNormal"><span style="color:#212121">Thanks<o:p></o:p></span></p>
            </div>
            <p class="MsoNormal"><span
                style="font-size:12.0pt;color:#212121"><br>
                <br>
                This e-mail message, including any attachments, is for
                the sole use of the intended recipient(s) and may
                contain confidential and privileged information. Any
                unauthorized review, use, disclosure or distribution is
                prohibited. If you are not the intended recipient,
                please contact the sender by e-mail and destroy all
                copies of the original. <o:p>
                </o:p></span></p>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Xymon mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Xymon@xymon.com">Xymon@xymon.com</a>
<a class="moz-txt-link-freetext" href="http://lists.xymon.com/mailman/listinfo/xymon">http://lists.xymon.com/mailman/listinfo/xymon</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>