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:
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 d.altmann at aon.at Sent: 12 April 2011 13:30 To: xymon at xymon.com Subject: [Xymon] Xymon using entstat via RRD
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).
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
participants (2)
-
Chris.Morris@rwe.com
-
d.altmann@aon.at