[Xymon] Ghost client problems

Chris.Morris at rwe.com Chris.Morris at rwe.com
Mon Feb 27 13:49:37 CET 2012


Do you have anything under Ghost reports on the xymon server?
 
Are the client and server on the same or different hosts?
 
Is the client pointing at the correct address and port for the xymon
server
 
How do you know files are missing from ~/client/tmp directory .. what
are you expecting to see there? 
 
Have you checked the clientlaunch.log and xymonclient.log files for
errors in  ~/client/logs?

________________________________

	From: Pavel Traian [mailto:paveltraian at yahoo.com] 
	Sent: 27 February 2012 12:05
	To: xymon at xymon.com; Morris, Chris (SS-IS)
	Subject: RE: [Xymon] Ghost client problems
	
	
Hi,
That one i have solved it, but....
Now i have reinstallled the client and i started it using ./runclient.sh
--hostname=host start command from xymon user.
On the xymon server web page all the tests(disk,cpu etc) appear in
violet colour and i see there the last report i had from when it
functioned ok.
On the client i have issued some commands and you have the output here:

[root at otpproxy1 tmp]# ps -ef | grep xymon
xymon     3785     1  0 09:44 ?        00:00:00 ./bin/xymonlaunch
--config=./etc/clientlaunch.cfg --log=./logs/clientlaunch.log
--pidfile=./logs/clientlaunch.otpproxy1.pid
xymon     5892     1  0 13:54 ?        00:00:00 sh -c vmstat 300 2
1>./tmp/xymon_vmstat.otpproxy1.5867 2>&1; mv
./tmp/xymon_vmstat.otpproxy1.5867 ./tmp/xymon_vmstat.otpproxy1
xymon     5894  5892  0 13:54 ?        00:00:00 vmstat 300 2
root      5902  5686  0 13:57 pts/0    00:00:00 grep xymon
[root at otpproxy1 tmp]# ps -e | grep xymon
 3785 ?        00:00:00 xymonlaunch
[root at otpproxy1 tmp]# ls -l
total 36
-rw-rw-r-- 1 xymon xymon 32690 Feb 27 13:54 msg.otpproxy1.txt
-rw-rw-r-- 1 xymon xymon   246 Feb 27 13:54 xymon_vmstat.otpproxy1.5867
[root at otpproxy1 tmp]#

As i see there are some files missing from tmp directory. I don't
understand why.
Can you please give me a hint?
Regards,
Traian.



--- On Thu, 2/23/12, Chris.Morris at rwe.com <Chris.Morris at rwe.com> wrote:



	From: Chris.Morris at rwe.com <Chris.Morris at rwe.com>
	Subject: RE: [Xymon] Ghost client problems
	To: xymon at xymon.com
	Cc: paveltraian at yahoo.com
	Date: Thursday, February 23, 2012, 2:17 PM
	
	
	A simple ps -ef | grep xymon will show what xymon processes are
running and which user is running them.
	 
	Look for 2 instances of xymonlaunch.


________________________________

		From: xymon-bounces at xymon.com
[mailto:xymon-bounces at xymon.com] On Behalf Of Pavel Traian
		Sent: 23 February 2012 12:03
		To: xymon at xymon.com; Steven Carr
		Subject: Re: [Xymon] Ghost client problems
		
		

Hi,
This is my original question.
If i knew the answer i shouldn't ask for help.
I don't know where to check and what to check.
Regards,
Traian.


--- On Thu, 2/23/12, Steven Carr <sjcarr at gmail.com> wrote:



	From: Steven Carr <sjcarr at gmail.com>
	Subject: Re: [Xymon] Ghost client problems
	To: "Pavel Traian" <paveltraian at yahoo.com>, xymon at xymon.com
	Date: Thursday, February 23, 2012, 1:43 PM
	
	
	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?
	
	Steve
	
	
	
	
	
	On 23 February 2012 11:30, Pavel Traian <paveltraian at yahoo.com>
wrote:
	

Hi,
I have manually compiled it.
I start it using ./runclient.sh --hostname=otpproxy1 start
command.(otpproxy1 is the client name in hosts.cfg)
Here you have the commands i gave:

[xymon at otpproxy1 tmp]$ rm -f *
[xymon at otpproxy1 tmp]$ ls -l
total 0
[xymon at otpproxy1 tmp]$
[xymon at otpproxy1 tmp]$
[xymon at otpproxy1 tmp]$
[xymon at otpproxy1 tmp]$ cd ..
[xymon at otpproxy1 client]$ ./runclient.sh --hostname=otpproxy1 start
Xymon client for linux started on otpproxy1
[xymon at otpproxy1 client]$ cd tmp
[xymon at otpproxy1 tmp]$ ls -l
total 44
-rw-rw-r-- 1 xymon xymon    41 Feb 23 13:13 logfetch.otpproxy1.cfg
-rw-rw-r-- 1 xymon xymon 33175 Feb 23 13:13 msg.otpproxy1.txt
-rw-rw-r-- 1 xymon xymon   246 Feb 23 13:12 xymon_vmstat.otpproxy1.7180
[xymon at otpproxy1 tmp]$ ls -l
total 84
-rw-rw-r-- 1 xymon xymon    41 Feb 23 13:18 logfetch.otpproxy1.cfg
-rw-rw-r-- 1 xymon xymon    35 Feb 23 13:18 logfetch.otpproxy1.status
-rw-r--r-- 1 root  root  32347 Feb 23 13:17
msg.otpproxy1.temenosgroup.com.txt
-rw-rw-r-- 1 xymon xymon 35555 Feb 23 13:18 msg.otpproxy1.txt
-rw-rw-r-- 1 xymon xymon   246 Feb 23 13:17 xymon_vmstat.otpproxy1.7262
-rw-r--r-- 1 root  root    246 Feb 23 13:16
xymon_vmstat.otpproxy1.temenosgroup.com.7223
[xymon at otpproxy1 tmp]$

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.
Why does it happen? What do i do wrong? 

Regards,
Traian.



--- On Thu, 2/23/12, Steven Carr <sjcarr at gmail.com> wrote:



	From: Steven Carr <sjcarr at gmail.com>
	Subject: Re: [Xymon] Ghost client problems
	To: "Pavel Traian" <paveltraian at yahoo.com>
	
	Cc: xymon at xymon.com
	Date: Thursday, February 23, 2012, 12:36 PM 


	How did you install the client, manual compilation or from one
of the RPMs that others have built?
	
	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).
	
	Steve
	
	
	
	On 23 February 2012 10:29, Pavel Traian <paveltraian at yahoo.com
<http://mc/compose?to=paveltraian@yahoo.com> > wrote:
	

Hi,
I don't find any CLIENTNAME variable, but i have MACHINEDOTS variable in
the runclient.sh which is said to be "# This systems hostname".
I changed it to use 'hostanme -s' and still the same result as in the
first message.
I have these files in tmp folder: 


> -rw-rw-r-- 1 xymon xymon    41 Feb 22 13:17
> logfetch.otpproxy1.cfg
> -rw-rw-r-- 1 xymon xymon    41 Feb 22 13:17
> logfetch.otpproxy1.status
> -rw-r--r-- 1 root  root  35787 Feb 22 13:17
> msg.otpproxy1.temenosgroup.com.txt
> -rw-rw-r-- 1 xymon xymon 37183 Feb 22 13:17
> msg.otpproxy1.txt
> -rw-rw-r-- 1 xymon xymon   246 Feb 22 13:17
> xymon_vmstat.otpproxy1.2637
> -rw-rw-r-- 1 xymon xymon   246 Feb 22 13:14
> xymon_vmstat.otpproxy1.temenosgroup.com.2597
> -rw-r--r-- 1 root  root    246 Feb 22 13:17
> xymon_vmstat.otpproxy1.temenosgroup.com.2681
  

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? 

Regards,
Traian.



--- On Thu, 2/23/12, Steven Carr <sjcarr at gmail.com
<http://mc/compose?to=sjcarr@gmail.com> > wrote:



	From: Steven Carr <sjcarr at gmail.com
<http://mc/compose?to=sjcarr@gmail.com> >
	Subject: Re: [Xymon] Ghost client problems
	To: "Pavel Traian" <paveltraian at yahoo.com
<http://mc/compose?to=paveltraian@yahoo.com> >, xymon at xymon.com
<http://mc/compose?to=xymon@xymon.com> 
	
	Date: Thursday, February 23, 2012, 12:17 PM 


	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.
	
	Steve
	
	
	
	
	On 23 February 2012 09:51, Pavel Traian <paveltraian at yahoo.com
<http://mc/compose?to=paveltraian@yahoo.com> > wrote:
	

Hi,
If i want to use the short name how do i proceed?
What config files from the client installation should I modify? 
Regards,
Traian.


--- On Thu, 2/23/12, Steven Carr <sjcarr at gmail.com
<http://mc/compose?to=sjcarr@gmail.com> > wrote:



	From: Steven Carr <sjcarr at gmail.com
<http://mc/compose?to=sjcarr@gmail.com> >
	Subject: Re: [Xymon] Ghost client problems
	To: "Pavel Traian" <paveltraian at yahoo.com
<http://mc/compose?to=paveltraian@yahoo.com> >, xymon at xymon.com
<http://mc/compose?to=xymon@xymon.com> 
	Date: Thursday, February 23, 2012, 11:02 AM 


	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:
	
	sed -i "s/# CLIENTHOSTNAME=\"\"/CLIENTHOSTNAME=\"`hostname
-f`\"/g" /etc/sysconfig/xymon
	
	Steve
	
	
	
	
	On 23 February 2012 08:45, Pavel Traian <paveltraian at yahoo.com
<http://mc/compose?to=paveltraian@yahoo.com> > wrote:
	

		Hi,
		I have added the short name to hosts.cfg otpproxy1 not
otpproxy1.temenosgroup.com. 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).
		But the client seems to send the data report using the
FQDN also and the server sees it like ghost client.
		How can i do to prevent it.
		Regards,
		Traian.
		



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





	
************************************************************************
**** 

	The information contained in this email is intended only for the
use of the intended recipient at the email address to which it has been
addressed. If the reader of this message is not an intended recipient,
you are hereby notified that you have received this document in error
and that any review, dissemination or copying of the message or
associated attachments is strictly prohibited. If you have received this
email in error, please contact the sender by return email or call 01793
877777 and ask for the sender and then delete it immediately from your
system.Please note that neither the RWE Group of Companies nor the
sender accepts any responsibility for viruses and it is your
responsibility to scan attachments (if any). 

	 

	
************************************************************************
***** 

	 


**************************************************************************** 
The information contained in this email is intended only for the use of the intended recipient at the email address to which it has been addressed. If the reader of this message is not an intended recipient, you are hereby notified that you have received this document in error and that any review, dissemination or copying of the message or associated attachments is strictly prohibited. If you have received this email in error, please contact the sender by return email or call 01793 877777 and ask for the sender and then delete it immediately from your system.Please note that neither the RWE Group of Companies nor the sender accepts any responsibility for viruses and it is your responsibility to scan attachments (if any). 

***************************************************************************** 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20120227/a118db79/attachment.html>


More information about the Xymon mailing list