Xymon Mailing List Archive search

Xymon using entstat via RRD

5 messages in this thread

list D.Altmann · Tue, 12 Apr 2011 14:28:59 +0200 (CEST) ·
Dear all,
I'm trying to blacklist some of my ethernet devices not to be checked by rrd, when xymon tries to get the statistics.
The bad ethernet devices show the following error:
list D.Altmann · Tue, 12 Apr 2011 14:30:03 +0200 (CEST) ·
Dear all,
I'm trying to blacklist some of my ethernet devices not to be checked by rrd, when xymon tries to get the statistics.
The bad ethernet devices show the following error:
list Chris Morris · Tue, 12 Apr 2011 14:10:05 +0100 ·
The client runs the netstat -v command from the
~/client/bin/xymonclient-aix.sh script. Unless you have some "external"
script on the client.
 
The xymon server takes this data and pumps the "data" through into the
rrd. It does not send commands to the client, unless you are running
some "external" script on the server.


	From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com]
On Behalf Of user-e53e2c37e9a6@xymon.invalid
	Sent: 12 April 2011 13:30
	To: xymon at xymon.com
	Subject: [Xymon] Xymon using entstat via RRD
quoted from D.Altmann
	
	
	Dear all,
	I'm trying to blacklist some of my ethernet devices not to be
checked by rrd, when xymon tries to get the statistics.
	The bad ethernet devices show the following error:

	  ...entstat: 0909-004: unable to get statistics on device
entNN...
	And everytime they are asked, they add an errorreport entry
(errpt).
	And because I'm monitoring the AIX errpt, I'm always seeing
errors at this machine.
	Most of my ethernet devices show their stats, but 2 of them
don't like to be asked with entstat.
	
	Therefore I've written a small entstat-wrapper-shellscript,
which excludes the 2 bad devices from being asked.
	But xymon isn't using my entstat version, but only the
/usr/sbin/entstat.
	I was debugging with truss, but I was not able to find out,
which part of xymon is calling /usr/sbin/entstat [xymond_rrd at the
server?].
	
	Does the Xymon server send this "/usr/sbin/entstat -d ent5"?
	
	I've tried to "egrep -R" this through the sources and was not
able to find "/usr/sbin" there.
	
	What I've also tried: to change the $PATH of my xymon user, to
find my own entstat BEFORE the /usr/sbin version - but this worked only
in a shell.
	
	Are there any chances for me to add somewhere a changed PATH?
	
	Best regards
	D.Altmann
	

**************************************************************************** 
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). 

*****************************************************************************
list D.Altmann · Tue, 12 Apr 2011 22:26:13 +0200 ·
Thanks for the fast reply.
Now it's clear, how Xymon gets the data via RRD and netstat;
And...yes, I've found the "netstat -v" at the xymonclient sources.
That brought me to a new problem: it's difficult to write a "netstat -v" wrapper which is able to ignore my bad interfaces.
Now, I've seen that also a "netstat -v" at shell level gives me the errormessages.
And: while checking the problem the adapter disappeared.
That means, I have a hardware-problem, and I don't have to write any tricky scripts to exclude bad entNN devices.
Thanks for explaining the way how xymon_rrd get's the network stats!

Best regards,
D.Altmann
list Henrik Størner · Sun, 17 Apr 2011 22:00:59 +0200 ·
quoted from Chris Morris
Therefore I've written a small entstat-wrapper-shellscript, which
excludes the 2 bad devices from being asked.
But xymon isn't using my entstat version, but only the /usr/sbin/entstat.
I was debugging with truss, but I was not able to find out, which part
of xymon is calling /usr/sbin/entstat [xymond_rrd at the server?].
Client-side tools such as those that pick up the network stats are called from the xymonclient-OSNAME.sh script that is part of the client installation. Since these are shell scripts, it should be trivial to modify as needed.

Regards,
Henrik