<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<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;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 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;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-style-priority:99;
        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;
        mso-style-priority:99;
        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;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;}
span.EmailStyle24
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@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]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="color:#1F497D">Thanks, I restarted and it did in fact clear the file. Good to know too. I’ll periodically have my server restart to keep that file clean.<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>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Xymon [mailto:xymon-bounces@xymon.com] <b>On Behalf Of
</b>Novosielski, Ryan<br>
<b>Sent:</b> Tuesday, September 22, 2015 5:14 PM<br>
<b>To:</b> Henrik Størner <henrik@hswn.dk><br>
<b>Cc:</b> xymon@xymon.com<br>
<b>Subject:</b> Re: [Xymon] Clear Ghostlist file?<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">IIRC, the answer to the initial question is "restart the Xymon server" to clear the ghost list. <br>
<br>
____ *Note: UMDNJ is now Rutgers-Biomedical and Health Sciences*<br>
|| <a href="file://UTGERS">\\UTGERS</a>      |---------------------*O*---------------------<br>
||_// Biomedical | Ryan Novosielski - Senior Technologist<br>
|| \\ and Health | <a href="mailto:novosirj@rutgers.edu">novosirj@rutgers.edu</a>- 973/972.0922 (2x0922)<br>
||  \\  Sciences | OIRT/High Perf & Res Comp - MSB C630, Newark<br>
    `'<span style="font-size:12.0pt"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
On Sep 22, 2015, at 17:00, Henrik Størner <<a href="mailto:henrik@hswn.dk">henrik@hswn.dk</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">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>
<o:p></o:p></p>
<div>
<p class="MsoNormal">Den 03-09-2015 kl. 15:06 skrev Blumenthal, Russell:<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal"><span style="color:#1F497D">At least I am not the only one who sees that discrepancy.
</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">How does the script determine or figure out what is considered a ghost client?
</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></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.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D">Thanks</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#1F497D"> </span><o:p></o:p></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 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 href="mailto:Russell.Blumenthal@stonybrookmedicine.edu">
<Russell.Blumenthal@stonybrookmedicine.edu></a>; <a 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:</span><o:p></o:p></p>
<p><span style="font-family:"Calibri",sans-serif;color:black"> </span><o:p></o:p></p>
<p><span style="font-family:"Calibri",sans-serif;color:black"><PATHTOXYMON>/server/bin/xymon localhost ghostlist</span><o:p></o:p></p>
<p><span style="font-family:"Calibri",sans-serif;color:black"> </span><o:p></o:p></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.</span><o:p></o:p></p>
<p><span style="font-family:"Calibri",sans-serif;color:black"> </span><o:p></o:p></p>
<p><span style="font-family:"Calibri",sans-serif;color:black">=G=</span><o:p></o:p></p>
<p><span style="font-family:"Calibri",sans-serif;color:black"> </span><o:p></o:p></p>
<div>
<div class="MsoNormal" align="center" style="text-align:center"><span style="font-size:12.0pt;color:#212121">
<hr size="2" width="98%" align="center">
</span></div>
<div id="divRplyFwdMsg">
<p class="MsoNormal"><b><span style="color:black">From:</span></b><span style="color:black"> Xymon <<a href="mailto:xymon-bounces@xymon.com">xymon-bounces@xymon.com</a>> on behalf of Blumenthal, Russell <<a 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 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">
</span><o:p></o:p></p>
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;color:#212121"> </span><o:p></o:p></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 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.</span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#212121"> </span><o:p></o:p></p>
<p class="MsoNormal"><span style="color:#212121">Thanks</span><o:p></o:p></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. </span>
<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><br>
<br>
<br>
<o:p></o:p></span></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>Xymon mailing list<o:p></o:p></pre>
<pre><a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><o:p></o:p></pre>
<pre><a href="http://lists.xymon.com/mailman/listinfo/xymon">http://lists.xymon.com/mailman/listinfo/xymon</a><o:p></o:p></pre>
</blockquote>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif"><o:p> </o:p></span></p>
</div>
</blockquote>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal"><span style="font-size:12.0pt;font-family:"Times New Roman",serif">_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon">http://lists.xymon.com/mailman/listinfo/xymon</a><o:p></o:p></span></p>
</div>
</blockquote>
</div>
</body>
</html>