<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi,<br>I have removed the second instance and it works ok now.<br>Thanks for your time.<br>Regards,<br>Traian.<br><br>--- On <b>Thu, 2/23/12, Steven Carr <i><sjcarr@gmail.com></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Steven Carr <sjcarr@gmail.com><br>Subject: Re: [Xymon] Ghost client problems<br>To: "Pavel Traian" <paveltraian@yahoo.com><br>Cc: xymon@xymon.com<br>Date: Thursday, February 23, 2012, 2:15 PM<br><br><div id="yiv863267647">What processes are running or have open files containing xymon...<br><br><div style="margin-left:40px;">ps -ef | grep xymon<br></div><div style="margin-left:40px;">lsof | grep xymon<br></div><br>If any of those processes are not the ones you have started (or are running as root) then that is your culprit.<br>
<br>Steve<br><br><br><br><div class="yiv863267647gmail_quote">On 23 February 2012 12:03, Pavel Traian <span dir="ltr"><<a rel="nofollow" ymailto="mailto:paveltraian@yahoo.com" target="_blank" href="/mc/compose?to=paveltraian@yahoo.com">paveltraian@yahoo.com</a>></span> wrote:<br><blockquote class="yiv863267647gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font:inherit;" valign="top"><br>Hi,<br>This is my original question.<br>If i knew the answer i shouldn't ask for help.<br>I don't know where to check and what to check.<div class="yiv863267647im">
<br>Regards,<br>Traian.<br><br><br>--- On <b>Thu, 2/23/12, Steven Carr <i><<a rel="nofollow" ymailto="mailto:sjcarr@gmail.com" target="_blank" href="/mc/compose?to=sjcarr@gmail.com">sjcarr@gmail.com</a>></i></b> wrote:<br></div><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;padding-left:5px;">
<div class="yiv863267647im"><br>From: Steven Carr <<a rel="nofollow" ymailto="mailto:sjcarr@gmail.com" target="_blank" href="/mc/compose?to=sjcarr@gmail.com">sjcarr@gmail.com</a>><br>Subject: Re: [Xymon] Ghost client problems<br>To: "Pavel Traian" <<a rel="nofollow" ymailto="mailto:paveltraian@yahoo.com" target="_blank" href="/mc/compose?to=paveltraian@yahoo.com">paveltraian@yahoo.com</a>>, <a rel="nofollow" ymailto="mailto:xymon@xymon.com" target="_blank" href="/mc/compose?to=xymon@xymon.com">xymon@xymon.com</a><br>
</div>Date: Thursday, February 23, 2012, 1:43 PM<div><div class="yiv863267647h5"><br><br><div>Why are the FQDN named files owned by root? this would seem to indicate that root is running commands to output those files? xymon client should be running as the xymon user only. Is something else on your system starting up a second instance of the client?<br>

<br>Steve<br><br><br><br><br><div>On 23 February 2012 11:30, Pavel Traian <span dir="ltr"><<a rel="nofollow" target="_blank" href="http://mc/compose?to=paveltraian@yahoo.com">paveltraian@yahoo.com</a>></span> wrote:<br>
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font:inherit;" valign="top">Hi,<br>I have manually compiled it.<br>I start it using ./runclient.sh --hostname=otpproxy1 start command.(otpproxy1 is the client name in hosts.cfg)<br>

Here you have the commands i gave:<br><br>[xymon@otpproxy1 tmp]$ rm -f *<br>[xymon@otpproxy1 tmp]$ ls -l<br>total 0<br>[xymon@otpproxy1 tmp]$<br>[xymon@otpproxy1 tmp]$<br>[xymon@otpproxy1 tmp]$<br>[xymon@otpproxy1 tmp]$ cd ..<br>

[xymon@otpproxy1 client]$ ./runclient.sh --hostname=otpproxy1 start<br>Xymon client for linux started on otpproxy1<br>[xymon@otpproxy1 client]$ cd tmp<br>[xymon@otpproxy1 tmp]$ ls -l<br>total 44<br>-rw-rw-r-- 1 xymon xymon    41 Feb 23 13:13 logfetch.otpproxy1.cfg<br>

-rw-rw-r-- 1 xymon xymon 33175 Feb 23 13:13 msg.otpproxy1.txt<br>-rw-rw-r-- 1 xymon xymon   246 Feb 23 13:12 xymon_vmstat.otpproxy1.7180<br>[xymon@otpproxy1 tmp]$ ls -l<br>total 84<br>-rw-rw-r-- 1
 xymon xymon    41 Feb 23 13:18 logfetch.otpproxy1.cfg<br>-rw-rw-r-- 1 xymon xymon    35 Feb 23 13:18 logfetch.otpproxy1.status<br>-rw-r--r-- 1 root  root  32347 Feb 23 13:17 msg.otpproxy1.temenosgroup.com.txt<br>-rw-rw-r-- 1 xymon xymon 35555 Feb 23 13:18 msg.otpproxy1.txt<br>

-rw-rw-r-- 1 xymon xymon   246 Feb 23 13:17 xymon_vmstat.otpproxy1.7262<br>-rw-r--r-- 1 root  root    246 Feb 23 13:16 xymon_vmstat.otpproxy1.temenosgroup.com.7223<br>[xymon@otpproxy1 tmp]$<br><br>After i start it i have only msg.otpproxy1.txt file in tmp folder but after a while i have also msg.otpproxy1.temenosgroup.com.txt file.<br>

Why does it happen? What do i do wrong?<div><br>Regards,<br>Traian.<br><br><br><br>--- On <b>Thu, 2/23/12, Steven Carr <i><<a rel="nofollow" target="_blank" href="http://mc/compose?to=sjcarr@gmail.com">sjcarr@gmail.com</a>></i></b> wrote:<br>

</div><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;padding-left:5px;"><div><br>From: Steven Carr
 <<a rel="nofollow" target="_blank" href="http://mc/compose?to=sjcarr@gmail.com">sjcarr@gmail.com</a>><br>Subject: Re: [Xymon] Ghost client problems<br>To: "Pavel Traian" <<a rel="nofollow" target="_blank" href="http://mc/compose?to=paveltraian@yahoo.com">paveltraian@yahoo.com</a>><br>

</div>Cc: <a rel="nofollow" target="_blank" href="http://mc/compose?to=xymon@xymon.com">xymon@xymon.com</a><br>Date: Thursday, February 23, 2012, 12:36 PM<div><div><br><br><div>How did you install the client, manual compilation or from one of the RPMs that others have built?<br>

<br>If you did it manually then in your init script add --hostname=XYZ as a parameter to runclient.sh (this does appear to map to the MACHINEDOTS variable inside runclient.sh).<br>
<br>Steve<br><br><br><div>On 23 February 2012 10:29, Pavel Traian <span dir="ltr"><<a rel="nofollow" target="_blank" href="http://mc/compose?to=paveltraian@yahoo.com">paveltraian@yahoo.com</a>></span> wrote:<br><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">


<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font:inherit;" valign="top">Hi,<br>I don't find any CLIENTNAME variable, but i have MACHINEDOTS variable in the runclient.sh which is said to be "# This systems hostname".<br>


I changed it to use 'hostanme -s' and still the same result as in the first message.<br>I have these files in tmp folder:<div><br><br>> -rw-rw-r-- 1 xymon xymon    41 Feb 22 13:17<br>
> logfetch.otpproxy1.cfg<br>
> -rw-rw-r-- 1 xymon xymon    41 Feb 22 13:17<br>
> logfetch.otpproxy1.status<br>
> -rw-r--r-- 1 root  root  35787 Feb 22 13:17<br>
> msg.otpproxy1.temenosgroup.com.txt<br>
> -rw-rw-r-- 1 xymon xymon 37183 Feb 22 13:17<br>
> msg.otpproxy1.txt<br>
> -rw-rw-r-- 1 xymon xymon   246 Feb 22 13:17<br>
> xymon_vmstat.otpproxy1.2637<br>
> -rw-rw-r-- 1 xymon xymon   246 Feb 22 13:14<br>
> xymon_vmstat.otpproxy1.temenosgroup.com.2597<br>
> -rw-r--r-- 1 root  root    246 Feb 22 13:17<br>
> xymon_vmstat.otpproxy1.temenosgroup.com.2681<br> 
<br></div>Do you have any explanation why i have all these files? Shouldn't it be only one named msg.otpproxy1.txt and not the second named msg.otpproxy1.temenosgroup.com.txt?<div><br>Regards,<br>Traian.<br>
<br><br><br>--- On <b>Thu, 2/23/12, Steven Carr <i><<a rel="nofollow" target="_blank" href="http://mc/compose?to=sjcarr@gmail.com">sjcarr@gmail.com</a>></i></b> wrote:<br></div><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;padding-left:5px;">


<div><br>From: Steven Carr <<a rel="nofollow" target="_blank" href="http://mc/compose?to=sjcarr@gmail.com">sjcarr@gmail.com</a>><br>Subject: Re: [Xymon] Ghost client problems<br>To: "Pavel Traian" <<a rel="nofollow" target="_blank" href="http://mc/compose?to=paveltraian@yahoo.com">paveltraian@yahoo.com</a>>, <a rel="nofollow" target="_blank" href="http://mc/compose?to=xymon@xymon.com">xymon@xymon.com</a><br>


</div>Date: Thursday, February 23, 2012, 12:17 PM<div><div><br><br><div>To use the shortname just change the CLIENTHOSTNAME variable to be the shortname, you can use whatever you want aslong as it matches with what you have in the main bb-hosts/hosts.cfg.<br>


<br>Steve<br><br><br><br><div>
On 23 February 2012 09:51, Pavel Traian <span dir="ltr"><<a rel="nofollow" target="_blank" href="http://mc/compose?to=paveltraian@yahoo.com">paveltraian@yahoo.com</a>></span> wrote:<br><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">



<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font:inherit;" valign="top">Hi,<br>If i want to use the short name how do i proceed?<br>What config files from the client installation should I modify? <br>



Regards,<br>Traian.<br><br><br>--- On <b>Thu, 2/23/12, Steven Carr <i><<a rel="nofollow" target="_blank" href="http://mc/compose?to=sjcarr@gmail.com">sjcarr@gmail.com</a>></i></b> wrote:<br><blockquote style="border-left:2px solid rgb(16,16,255);margin-left:5px;padding-left:5px;">



<br>From: Steven Carr <<a rel="nofollow" target="_blank" href="http://mc/compose?to=sjcarr@gmail.com">sjcarr@gmail.com</a>><br>Subject: Re: [Xymon] Ghost client problems<br>To: "Pavel Traian" <<a rel="nofollow" target="_blank" href="http://mc/compose?to=paveltraian@yahoo.com">paveltraian@yahoo.com</a>>, <a rel="nofollow" target="_blank" href="http://mc/compose?to=xymon@xymon.com">xymon@xymon.com</a><br>



Date: Thursday, February 23, 2012, 11:02 AM<div><div><br><br><div>On all of our systems I force the client to use it's FQDN, in /etc/sysconfig/xymon I configure the CLIENTHOSTNAME variable to be the FQDN e.g. as part of our build script it runs:<br>



<br>sed -i "s/# CLIENTHOSTNAME=\"\"/CLIENTHOSTNAME=\"`hostname -f`\"/g" /etc/sysconfig/xymon<br>
<br>Steve<br><br><br><br><div>On 23 February 2012 08:45, Pavel Traian <span dir="ltr"><<a rel="nofollow" target="_blank" href="http://mc/compose?to=paveltraian@yahoo.com">paveltraian@yahoo.com</a>></span> wrote:<br>



<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
I have added the short name to hosts.cfg otpproxy1 not <a rel="nofollow" target="_blank" href="http://otpproxy1.temenosgroup.com">otpproxy1.temenosgroup.com</a>. On the Xymon page i have the conn, disk, cpu, procs... all the tests are active there(it means the server receives the client data report).<br>





But the client seems to send the data report using the FQDN also and the server sees it like ghost client.<br>
How can i do to prevent it.<br>
Regards,<br>
Traian.<br>
<div><br>
<br>
<br>
Simple stuff first, do you have the client listed in ~/server/etc/hosts.cfg ?<br>
<br>
A little clarification: ghost clients are generally clients that are sending data to the server, but the server is not configured to display them.<br>
<br>
</div>--- On Wed, 2/22/12, Pavel Traian <<a rel="nofollow" target="_blank" href="http://mc/compose?to=paveltraian@yahoo.com">paveltraian@yahoo.com</a>> wrote:<br>
<br>
> From: Pavel Traian <<a rel="nofollow" target="_blank" href="http://mc/compose?to=paveltraian@yahoo.com">paveltraian@yahoo.com</a>><br>
> Subject: Ghost client problems<br>
> To: <a rel="nofollow" target="_blank" href="http://mc/compose?to=xymon@xymon.com">xymon@xymon.com</a><br>
> Date: Wednesday, February 22, 2012, 1:51 PM<br>
<div><div>> Hi,<br>
> I have installed a xymon client on a CentOS 6 x64 server.<br>
> Everything looks good except the fact that even the Xymon<br>
> server receives data and its' page is OK(the client is there<br>
> diplayed with its' short name) i have the same client<br>
> displayed in Ghost Clients(this time with its' FQDN).<br>
> I have checked on the client and i have too many files in<br>
> xymon/client/tmp folder.<br>
> It looks something like this:<br>
><br>
> -rw-rw-r-- 1 xymon xymon    41 Feb 22 13:17<br>
> logfetch.otpproxy1.cfg<br>
> -rw-rw-r-- 1 xymon xymon    41 Feb 22 13:17<br>
> logfetch.otpproxy1.status<br>
> -rw-r--r-- 1 root  root  35787 Feb 22 13:17<br>
> msg.otpproxy1.temenosgroup.com.txt<br>
> -rw-rw-r-- 1 xymon xymon 37183 Feb 22 13:17<br>
> msg.otpproxy1.txt<br>
> -rw-rw-r-- 1 xymon xymon   246 Feb 22 13:17<br>
> xymon_vmstat.otpproxy1.2637<br>
> -rw-rw-r-- 1 xymon xymon   246 Feb 22 13:14<br>
> xymon_vmstat.otpproxy1.temenosgroup.com.2597<br>
> -rw-r--r-- 1 root  root    246 Feb 22 13:17<br>
> xymon_vmstat.otpproxy1.temenosgroup.com.2681<br>
><br>
> It seems like the client is started al least twice....<br>
> How can I set it right?<br>
> Regards,<br>
> Traian.<br>
><br>
_______________________________________________<br>
Xymon mailing list<br>
<a rel="nofollow" target="_blank" href="http://mc/compose?to=Xymon@xymon.com">Xymon@xymon.com</a><br>
<a rel="nofollow" target="_blank" href="http://lists.xymon.com/mailman/listinfo/xymon">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
</div></div></blockquote></div><br>
</div></div></div></blockquote></td></tr></tbody></table></blockquote></div><br>
</div></div></div></blockquote></td></tr></tbody></table></blockquote></div><br>
</div></div></div></blockquote></td></tr></tbody></table></blockquote></div><br>
</div></div></div></blockquote></td></tr></tbody></table></blockquote></div><br>
</div></blockquote></td></tr></table>