Xymon Mailing List Archive search

Trending too many interfaces - see regex

5 messages in this thread

list Tim McCloskey · Wed, 27 Apr 2011 21:35:27 -0700 ·
Colin, 

I've not had the time, desire or opportunity to play with any of the newish RedHat releases and associated gizmos.  This said, I accept that your 'ifconfig rhevm' returns data in the same format as 'ifconfig eth0'.  

Most linux interface names end with some number,  or are called 'lo'.  'rhevm' does not seem to follow that norm.  I suspect trending of rhevm might be failing for this reason.

In xymon-4.3.2/xymond/rrd/do_ifstat.c on line 22 we see the following regex:
^([a-z]+[0123456789.:]+|lo)

Remove the localhost part and it looks like this:
^([a-z]+[0123456789.:]+)

Expand that and we have:
^rhevm+[0-9.:]+

To me, that looks like rhevm by itself is not a match.  Folks who actually write the code / have a clue about GNU C regex /  can probably address this better than I.

Regards, 

Tim


From: xymon-bounces at xymon.com [xymon-bounces at xymon.com] On Behalf Of Colin Coe [user-5b250cd7a540@xymon.invalid]
Sent: Wednesday, April 27, 2011 4:53 PM
To: xymon at xymon.com
Subject: Re: [Xymon] Trending too many interfaces

Yep, in /usr/lib/xymon/client/bin/xymonclient-linux.sh I have:
---
# Bug in RedHat's netstat spews annoying error messages.
netstat -ant 2>/dev/null
echo "[ifstat]"
/sbin/ifconfig lo
/sbin/ifconfig bond2
/sbin/ifconfig rhevm
# Report mdstat data if it exists
---

However there is no rhevm interface listed on the trending page.

CC

On Thu, Apr 28, 2011 at 7:32 AM, Tim McCloskey <user-440820cc07d6@xymon.invalid> wrote:
What shows up under 'Client data available' for the [ifconfig] and [ifstat] details?  [ifconfig] should list all of the interfaces.  [ifstat] should only show what you defined.
The only interfaces I want graphed are "rhevm" and "bond2".
That would be:
echo "[ifstat]"
/sbin/ifconfig rhevm
/sbin/ifconfig bond2

[ifstat] should show the output from the above commands, which should then be on the trends page under Network Traffic.

I'll be taking a look at 4.3.2 sometime in the near future, maybe it's different there.

Tim

From: xymon-bounces at xymon.com [xymon-bounces at xymon.com] On Behalf Of Colin Coe [user-5b250cd7a540@xymon.invalid]
Sent: Wednesday, April 27, 2011 4:02 PM
To: xymon at xymon.com
Subject: Re: [Xymon] Trending too many interfaces

Yeah, that's pretty much what I did, except I now notice that the
bridge interfaces are not listed on the trending page.  One of these
bridge interfaces has an IP address and I'd like to trend it.

I've done a few quick greps through the source but can't see where
these bridges a re being stripped out.

CC


On Thu, Apr 28, 2011 at 12:14 AM, Tim McCloskey <user-440820cc07d6@xymon.invalid> wrote:
Colin,

I have not installed any of the newer xymon versions, this is from 4.2.0.

On a system with eth0->eth3 plumbed up I set the client shell script (client/bin/hobbitclient-linux.sh) to:

echo "[ifstat]"
/sbin/ifconfig eth0
/sbin/ifconfig eth2

Verified the data sent from one of the 'Client data available' data sets.
Removed the rrd files for ifstat from the server for that client. (stopped/started the client).

On the trends page I see eth0 and eth2 only, no eth1 or eth3.

Yeah, it's a hack but it's fairly minor and should be easy enough to manage.

Just my 3 cents.

Tim


From: xymon-bounces at xymon.com [xymon-bounces at xymon.com] On Behalf Of Colin Coe [user-5b250cd7a540@xymon.invalid]
Sent: Tuesday, April 26, 2011 8:19 PM
To: xymon at xymon.com
Subject: Re: [Xymon] Trending too many interfaces

Hi Vernon and Tim

I'm working in a new dev/test environment using Xymon 4.3.2.

I'd wanted to avoid hacking the client-side script but if that's whats
required, I'll have a look.

TIA

CC

On Wed, Apr 27, 2011 at 11:01 AM, Tim McCloskey <user-440820cc07d6@xymon.invalid> wrote:
This is a crazy guess, you don't mention which version of xymon so this may be way off.  It may be way off anyway :)

If you are talking about the trends/"Network Traffic" graph it seems to be getting that data from the 'ifstat' var.

Some details follow.

1. what we graph for ifstat
hobbitgraph.cfg:        FNPATTERN ifstat.(.+).rrd
See data/rrd/$hostname/ifstat.*

2. where ifstat originates
client/hobbitclient-linux.sh:
echo "[ifstat]"
/sbin/ifconfig

3. what happens to ifstat
hobbitd/client/linux.c: ifstatstr = getdata("ifstat");
hobbitd/client/linux.c: unix_ifstat_report(hostname, clienttype, os, hinfo, fromline, timestr, ifstatstr); <--- ifstatstr

You should be able to modify the client shell script to report other than ifconfig -a (which seems to be what is currently captured).  Of course, there must be a better way.


Regards,

Tim


From: xymon-bounces at xymon.com [xymon-bounces at xymon.com] On Behalf Of Colin Coe [user-5b250cd7a540@xymon.invalid]
Sent: Tuesday, April 26, 2011 7:02 PM
To: xymon at xymon.com
Subject: Re: [Xymon] Trending too many interfaces

Anyone have any thoughts on this?

The only interfaces I want graphed are "rhevm" and "bond2".
--
RHCE#805007969328369

--
RHCE#805007969328369

--
RHCE#805007969328369
list Tim McCloskey · Wed, 27 Apr 2011 21:45:17 -0700 ·
minor corerction: Should have read '^rhevm[0-9.:]+'
quoted from Tim McCloskey

From: xymon-bounces at xymon.com [xymon-bounces at xymon.com] On Behalf Of Colin Coe [user-5b250cd7a540@xymon.invalid]
Sent: Wednesday, April 27, 2011 4:53 PM
To: xymon at xymon.com
Subject: Re: [Xymon] Trending too many interfaces

Yep, in /usr/lib/xymon/client/bin/xymonclient-linux.sh I have:
---
# Bug in RedHat's netstat spews annoying error messages.
netstat -ant 2>/dev/null
echo "[ifstat]"
/sbin/ifconfig lo
/sbin/ifconfig bond2
/sbin/ifconfig rhevm
# Report mdstat data if it exists
---

However there is no rhevm interface listed on the trending page.

CC

On Thu, Apr 28, 2011 at 7:32 AM, Tim McCloskey <user-440820cc07d6@xymon.invalid> wrote:
What shows up under 'Client data available' for the [ifconfig] and [ifstat] details?  [ifconfig] should list all of the interfaces.  [ifstat] should only show what you defined.
The only interfaces I want graphed are "rhevm" and "bond2".
That would be:
echo "[ifstat]"
/sbin/ifconfig rhevm
/sbin/ifconfig bond2

[ifstat] should show the output from the above commands, which should then be on the trends page under Network Traffic.

I'll be taking a look at 4.3.2 sometime in the near future, maybe it's different there.

Tim

From: xymon-bounces at xymon.com [xymon-bounces at xymon.com] On Behalf Of Colin Coe [user-5b250cd7a540@xymon.invalid]
Sent: Wednesday, April 27, 2011 4:02 PM
To: xymon at xymon.com
Subject: Re: [Xymon] Trending too many interfaces

Yeah, that's pretty much what I did, except I now notice that the
bridge interfaces are not listed on the trending page.  One of these
bridge interfaces has an IP address and I'd like to trend it.

I've done a few quick greps through the source but can't see where
these bridges a re being stripped out.

CC


On Thu, Apr 28, 2011 at 12:14 AM, Tim McCloskey <user-440820cc07d6@xymon.invalid> wrote:
Colin,

I have not installed any of the newer xymon versions, this is from 4.2.0.

On a system with eth0->eth3 plumbed up I set the client shell script (client/bin/hobbitclient-linux.sh) to:

echo "[ifstat]"
/sbin/ifconfig eth0
/sbin/ifconfig eth2

Verified the data sent from one of the 'Client data available' data sets.
Removed the rrd files for ifstat from the server for that client. (stopped/started the client).

On the trends page I see eth0 and eth2 only, no eth1 or eth3.

Yeah, it's a hack but it's fairly minor and should be easy enough to manage.

Just my 3 cents.

Tim


From: xymon-bounces at xymon.com [xymon-bounces at xymon.com] On Behalf Of Colin Coe [user-5b250cd7a540@xymon.invalid]
Sent: Tuesday, April 26, 2011 8:19 PM
To: xymon at xymon.com
Subject: Re: [Xymon] Trending too many interfaces

Hi Vernon and Tim

I'm working in a new dev/test environment using Xymon 4.3.2.

I'd wanted to avoid hacking the client-side script but if that's whats
required, I'll have a look.

TIA

CC

On Wed, Apr 27, 2011 at 11:01 AM, Tim McCloskey <user-440820cc07d6@xymon.invalid> wrote:
This is a crazy guess, you don't mention which version of xymon so this may be way off.  It may be way off anyway :)

If you are talking about the trends/"Network Traffic" graph it seems to be getting that data from the 'ifstat' var.

Some details follow.

1. what we graph for ifstat
hobbitgraph.cfg:        FNPATTERN ifstat.(.+).rrd
See data/rrd/$hostname/ifstat.*

2. where ifstat originates
client/hobbitclient-linux.sh:
echo "[ifstat]"
/sbin/ifconfig

3. what happens to ifstat
hobbitd/client/linux.c: ifstatstr = getdata("ifstat");
hobbitd/client/linux.c: unix_ifstat_report(hostname, clienttype, os, hinfo, fromline, timestr, ifstatstr); <--- ifstatstr

You should be able to modify the client shell script to report other than ifconfig -a (which seems to be what is currently captured).  Of course, there must be a better way.


Regards,

Tim


From: xymon-bounces at xymon.com [xymon-bounces at xymon.com] On Behalf Of Colin Coe [user-5b250cd7a540@xymon.invalid]
Sent: Tuesday, April 26, 2011 7:02 PM
To: xymon at xymon.com
Subject: Re: [Xymon] Trending too many interfaces

Anyone have any thoughts on this?

The only interfaces I want graphed are "rhevm" and "bond2".
--
RHCE#805007969328369

--
RHCE#805007969328369

--
RHCE#805007969328369
list Phil Crooker · Thu, 28 Apr 2011 18:20:59 +1000 ·
ifconfig doesn't accept regular expressions as input (well, mine doesn't
anyway). Try running it manually.  You'll probably need to pre-parse the
interface(s).

On 4/28/2011 at 02:45 PM, in message
<user-de028f8df697@xymon.invalid>,
Tim
quoted from Tim McCloskey
McCloskey <user-440820cc07d6@xymon.invalid> wrote: 
minor corerction: Should have read '^rhevm[0-9.:]+'

From: xymon-bounces at xymon.com [xymon-bounces at xymon.com] On Behalf Of
Colin Coe 
[user-5b250cd7a540@xymon.invalid]
Sent: Wednesday, April 27, 2011 4:53 PM
To: xymon at xymon.com
Subject: Re: [Xymon] Trending too many interfaces

Yep, in /usr/lib/xymon/client/bin/xymonclient-linux.sh I have:
---
# Bug in RedHat's netstat spews annoying error messages.
netstat -ant 2>/dev/null
echo "[ifstat]"
/sbin/ifconfig lo
/sbin/ifconfig bond2
/sbin/ifconfig rhevm
# Report mdstat data if it exists
---

However there is no rhevm interface listed on the trending page.

CC

On Thu, Apr 28, 2011 at 7:32 AM, Tim McCloskey <user-440820cc07d6@xymon.invalid>
wrote:
What shows up under 'Client data available' for the [ifconfig] and
[ifstat] 
details?  [ifconfig] should list all of the interfaces.  [ifstat]
should only 
show what you defined.
The only interfaces I want graphed are "rhevm" and "bond2".
That would be:
echo "[ifstat]"
/sbin/ifconfig rhevm
/sbin/ifconfig bond2

[ifstat] should show the output from the above commands, which
should then 
be on the trends page under Network Traffic.

I'll be taking a look at 4.3.2 sometime in the near future, maybe
it's 
different there.

Tim

From: xymon-bounces at xymon.com [xymon-bounces at xymon.com] On Behalf Of
Colin Coe 
[user-5b250cd7a540@xymon.invalid]
Sent: Wednesday, April 27, 2011 4:02 PM
To: xymon at xymon.com
Subject: Re: [Xymon] Trending too many interfaces

Yeah, that's pretty much what I did, except I now notice that the
bridge interfaces are not listed on the trending page.  One of
these
bridge interfaces has an IP address and I'd like to trend it.

I've done a few quick greps through the source but can't see where
these bridges a re being stripped out.

CC


On Thu, Apr 28, 2011 at 12:14 AM, Tim McCloskey <user-440820cc07d6@xymon.invalid>
wrote:
Colin,

I have not installed any of the newer xymon versions, this is from
4.2.0.
On a system with eth0->eth3 plumbed up I set the client shell
script 
(client/bin/hobbitclient-linux.sh) to:
echo "[ifstat]"
/sbin/ifconfig eth0
/sbin/ifconfig eth2

Verified the data sent from one of the 'Client data available' data
sets.
Removed the rrd files for ifstat from the server for that client. 
(stopped/started the client).
On the trends page I see eth0 and eth2 only, no eth1 or eth3.

Yeah, it's a hack but it's fairly minor and should be easy enough
to manage.

Just my 3 cents.

Tim


From: xymon-bounces at xymon.com [xymon-bounces at xymon.com] On Behalf
Of Colin Coe 
[user-5b250cd7a540@xymon.invalid]
Sent: Tuesday, April 26, 2011 8:19 PM
To: xymon at xymon.com
Subject: Re: [Xymon] Trending too many interfaces

Hi Vernon and Tim

I'm working in a new dev/test environment using Xymon 4.3.2.

I'd wanted to avoid hacking the client-side script but if that's
whats
required, I'll have a look.

TIA

CC

On Wed, Apr 27, 2011 at 11:01 AM, Tim McCloskey <user-440820cc07d6@xymon.invalid>
wrote:
This is a crazy guess, you don't mention which version of xymon so
this may 
be way off.  It may be way off anyway :)

If you are talking about the trends/"Network Traffic" graph it
seems to be 
getting that data from the 'ifstat' var.

Some details follow.

1. what we graph for ifstat
hobbitgraph.cfg:        FNPATTERN ifstat.(.+).rrd
See data/rrd/$hostname/ifstat.*

2. where ifstat originates
client/hobbitclient-linux.sh:
echo "[ifstat]"
/sbin/ifconfig

3. what happens to ifstat
hobbitd/client/linux.c: ifstatstr = getdata("ifstat");
hobbitd/client/linux.c: unix_ifstat_report(hostname, clienttype,
os, hinfo, 
fromline, timestr, ifstatstr); <--- ifstatstr

You should be able to modify the client shell script to report
other than 
ifconfig -a (which seems to be what is currently captured).  Of
course, there 
must be a better way.


Regards,

Tim


From: xymon-bounces at xymon.com [xymon-bounces at xymon.com] On Behalf
Of Colin Coe 
[user-5b250cd7a540@xymon.invalid]
Sent: Tuesday, April 26, 2011 7:02 PM
To: xymon at xymon.com
Subject: Re: [Xymon] Trending too many interfaces

Anyone have any thoughts on this?

The only interfaces I want graphed are "rhevm" and "bond2".
--
RHCE#805007969328369

--
RHCE#805007969328369

--
RHCE#805007969328369

list Tim McCloskey · Thu, 28 Apr 2011 07:47:26 -0700 ·
The regex is not part of an ifconfig command, it's what part of the code is using to parse  / process the client data report.

Tim
quoted from Phil Crooker
From: Phil Crooker [user-e8e31cd73303@xymon.invalid]
Sent: Thursday, April 28, 2011 1:20 AM
To: Tim McCloskey; xymon at xymon.com
Subject: Re: [Xymon] Trending too many interfaces - see regex

ifconfig doesn't accept regular expressions as input (well, mine doesn't
anyway). Try running it manually.  You'll probably need to pre-parse the
interface(s).

On 4/28/2011 at 02:45 PM, in message
<user-de028f8df697@xymon.invalid>,
Tim
McCloskey <user-440820cc07d6@xymon.invalid> wrote:
minor corerction: Should have read '^rhevm[0-9.:]+'

From: xymon-bounces at xymon.com [xymon-bounces at xymon.com] On Behalf Of
Colin Coe
[user-5b250cd7a540@xymon.invalid]
Sent: Wednesday, April 27, 2011 4:53 PM
To: xymon at xymon.com
Subject: Re: [Xymon] Trending too many interfaces

Yep, in /usr/lib/xymon/client/bin/xymonclient-linux.sh I have:
---
# Bug in RedHat's netstat spews annoying error messages.
netstat -ant 2>/dev/null
echo "[ifstat]"
/sbin/ifconfig lo
/sbin/ifconfig bond2
/sbin/ifconfig rhevm
# Report mdstat data if it exists
---

However there is no rhevm interface listed on the trending page.

CC

On Thu, Apr 28, 2011 at 7:32 AM, Tim McCloskey <user-440820cc07d6@xymon.invalid>
wrote:
What shows up under 'Client data available' for the [ifconfig] and
[ifstat]
details?  [ifconfig] should list all of the interfaces.  [ifstat]
should only
show what you defined.
The only interfaces I want graphed are "rhevm" and "bond2".
That would be:
echo "[ifstat]"
/sbin/ifconfig rhevm
/sbin/ifconfig bond2

[ifstat] should show the output from the above commands, which
should then
be on the trends page under Network Traffic.

I'll be taking a look at 4.3.2 sometime in the near future, maybe
it's
different there.

Tim

From: xymon-bounces at xymon.com [xymon-bounces at xymon.com] On Behalf Of
Colin Coe
[user-5b250cd7a540@xymon.invalid]
Sent: Wednesday, April 27, 2011 4:02 PM
To: xymon at xymon.com
Subject: Re: [Xymon] Trending too many interfaces

Yeah, that's pretty much what I did, except I now notice that the
bridge interfaces are not listed on the trending page.  One of
these
bridge interfaces has an IP address and I'd like to trend it.

I've done a few quick greps through the source but can't see where
these bridges a re being stripped out.

CC


On Thu, Apr 28, 2011 at 12:14 AM, Tim McCloskey <user-440820cc07d6@xymon.invalid>
wrote:
Colin,

I have not installed any of the newer xymon versions, this is from
4.2.0.
On a system with eth0->eth3 plumbed up I set the client shell
script
(client/bin/hobbitclient-linux.sh) to:
echo "[ifstat]"
/sbin/ifconfig eth0
/sbin/ifconfig eth2

Verified the data sent from one of the 'Client data available' data
sets.
Removed the rrd files for ifstat from the server for that client.
(stopped/started the client).
On the trends page I see eth0 and eth2 only, no eth1 or eth3.

Yeah, it's a hack but it's fairly minor and should be easy enough
to manage.

Just my 3 cents.

Tim


From: xymon-bounces at xymon.com [xymon-bounces at xymon.com] On Behalf
Of Colin Coe
[user-5b250cd7a540@xymon.invalid]
Sent: Tuesday, April 26, 2011 8:19 PM
To: xymon at xymon.com
Subject: Re: [Xymon] Trending too many interfaces

Hi Vernon and Tim

I'm working in a new dev/test environment using Xymon 4.3.2.

I'd wanted to avoid hacking the client-side script but if that's
whats
required, I'll have a look.

TIA

CC

On Wed, Apr 27, 2011 at 11:01 AM, Tim McCloskey <user-440820cc07d6@xymon.invalid>
wrote:
This is a crazy guess, you don't mention which version of xymon so
this may
be way off.  It may be way off anyway :)

If you are talking about the trends/"Network Traffic" graph it
seems to be
getting that data from the 'ifstat' var.

Some details follow.

1. what we graph for ifstat
hobbitgraph.cfg:        FNPATTERN ifstat.(.+).rrd
See data/rrd/$hostname/ifstat.*

2. where ifstat originates
client/hobbitclient-linux.sh:
echo "[ifstat]"
/sbin/ifconfig

3. what happens to ifstat
hobbitd/client/linux.c: ifstatstr = getdata("ifstat");
hobbitd/client/linux.c: unix_ifstat_report(hostname, clienttype,
os, hinfo,
fromline, timestr, ifstatstr); <--- ifstatstr

You should be able to modify the client shell script to report
other than
ifconfig -a (which seems to be what is currently captured).  Of
course, there
must be a better way.


Regards,

Tim


From: xymon-bounces at xymon.com [xymon-bounces at xymon.com] On Behalf
Of Colin Coe
[user-5b250cd7a540@xymon.invalid]
Sent: Tuesday, April 26, 2011 7:02 PM
To: xymon at xymon.com
Subject: Re: [Xymon] Trending too many interfaces

Anyone have any thoughts on this?

The only interfaces I want graphed are "rhevm" and "bond2".
--
RHCE#805007969328369

--
RHCE#805007969328369

--
RHCE#805007969328369

--

This message from ORIX Australia might contain confidential and/or
privileged information. If you are not the intended recipient, any use,
disclosure or copying of this message (or of any attachments to it) is
not authorised.

If you have received this message in error, please notify the sender
immediately and delete the message and any attachments from your
system. Please inform the sender if you do not wish to receive future
communications by email.

ORIX handles personal information according to a Privacy Policy that is
consistent with the National Privacy Principles. Please let us know if
you would like a copy. It is also available at http://www.orix.com.au .
list Colin Coe · Fri, 29 Apr 2011 08:25:40 +0800 ·
many thanks to all

This is now fixed with these changes:

On the test client:
--- /usr/lib/xymon/client/bin/xymonclient-linux.sh.orig 2011-04-29
08:22:18.000000000 +0800
+++ /usr/lib/xymon/client/bin/xymonclient-linux.sh      2011-04-29
08:23:06.000000000 +0800
@@ -64,7 +64,8 @@
quoted from Tim McCloskey
 # Bug in RedHat's netstat spews annoying error messages.
 netstat -ant 2>/dev/null
 echo "[ifstat]"
-/sbin/ifconfig
+/sbin/ifconfig bond2
+/sbin/ifconfig rhevm
 # Report mdstat data if it exists

 if test -r /proc/mdstat; then echo "[mdstat]"; cat /proc/mdstat; fi
 echo "[ps]"

On the test xymon server:
diff -ru xymon-4.3.2.orig/xymond/rrd/do_ifstat.c
xymon-4.3.2/xymond/rrd/do_ifstat.c
--- xymon-4.3.2.orig/xymond/rrd/do_ifstat.c     2011-03-09
01:20:28.000000000 +0800
+++ xymon-4.3.2/xymond/rrd/do_ifstat.c  2011-04-29 07:20:41.929191659 +0800
@@ -19,7 +19,7 @@
 /* eth0   Link encap:                                                 */
 /*        RX bytes: 1829192 (265.8 MiB)  TX bytes: 1827320 (187.7 MiB */
 static const char *ifstat_linux_exprs[] = {
-       "^([a-z]+[0123456789.:]+|lo)\\s",
+       "^([a-z]+[0123456789.:]+|[A-Za-z]+|lo)\\s",
        "^\\s+RX bytes:([0-9]+) .*TX bytes.([0-9]+) "
 };

It would be great if the patch against do_ifstat.c could go in upstream.

Also, how would I get rid of the client side hack and put it into the
hosts.cfg (or more appropriate file)?
quoted from Tim McCloskey

CC

On Thu, Apr 28, 2011 at 12:45 PM, Tim McCloskey <user-440820cc07d6@xymon.invalid> wrote:
minor corerction: Should have read '^rhevm[0-9.:]+'

From: xymon-bounces at xymon.com [xymon-bounces at xymon.com] On Behalf Of Colin Coe [user-5b250cd7a540@xymon.invalid]
Sent: Wednesday, April 27, 2011 4:53 PM
To: xymon at xymon.com
Subject: Re: [Xymon] Trending too many interfaces

Yep, in /usr/lib/xymon/client/bin/xymonclient-linux.sh I have:
---
# Bug in RedHat's netstat spews annoying error messages.
netstat -ant 2>/dev/null
echo "[ifstat]"
/sbin/ifconfig lo
/sbin/ifconfig bond2
/sbin/ifconfig rhevm
# Report mdstat data if it exists
---

However there is no rhevm interface listed on the trending page.

CC

On Thu, Apr 28, 2011 at 7:32 AM, Tim McCloskey <user-440820cc07d6@xymon.invalid> wrote:
What shows up under 'Client data available' for the [ifconfig] and [ifstat] details?  [ifconfig] should list all of the interfaces.  [ifstat] should only show what you defined.
The only interfaces I want graphed are "rhevm" and "bond2".
That would be:
echo "[ifstat]"
/sbin/ifconfig rhevm
/sbin/ifconfig bond2

[ifstat] should show the output from the above commands, which should then be on the trends page under Network Traffic.

I'll be taking a look at 4.3.2 sometime in the near future, maybe it's different there.

Tim

From: xymon-bounces at xymon.com [xymon-bounces at xymon.com] On Behalf Of Colin Coe [user-5b250cd7a540@xymon.invalid]
Sent: Wednesday, April 27, 2011 4:02 PM
To: xymon at xymon.com
Subject: Re: [Xymon] Trending too many interfaces

Yeah, that's pretty much what I did, except I now notice that the
bridge interfaces are not listed on the trending page.  One of these
bridge interfaces has an IP address and I'd like to trend it.

I've done a few quick greps through the source but can't see where
these bridges a re being stripped out.

CC


On Thu, Apr 28, 2011 at 12:14 AM, Tim McCloskey <user-440820cc07d6@xymon.invalid> wrote:
Colin,

I have not installed any of the newer xymon versions, this is from 4.2.0.

On a system with eth0->eth3 plumbed up I set the client shell script (client/bin/hobbitclient-linux.sh) to:

echo "[ifstat]"
/sbin/ifconfig eth0
/sbin/ifconfig eth2

Verified the data sent from one of the 'Client data available' data sets.
Removed the rrd files for ifstat from the server for that client. (stopped/started the client).

On the trends page I see eth0 and eth2 only, no eth1 or eth3.

Yeah, it's a hack but it's fairly minor and should be easy enough to manage.

Just my 3 cents.

Tim


From: xymon-bounces at xymon.com [xymon-bounces at xymon.com] On Behalf Of Colin Coe [user-5b250cd7a540@xymon.invalid]
Sent: Tuesday, April 26, 2011 8:19 PM
To: xymon at xymon.com
Subject: Re: [Xymon] Trending too many interfaces

Hi Vernon and Tim

I'm working in a new dev/test environment using Xymon 4.3.2.

I'd wanted to avoid hacking the client-side script but if that's whats
required, I'll have a look.

TIA

CC

On Wed, Apr 27, 2011 at 11:01 AM, Tim McCloskey <user-440820cc07d6@xymon.invalid> wrote:
This is a crazy guess, you don't mention which version of xymon so this may be way off.  It may be way off anyway :)

If you are talking about the trends/"Network Traffic" graph it seems to be getting that data from the 'ifstat' var.

Some details follow.

1. what we graph for ifstat
hobbitgraph.cfg:        FNPATTERN ifstat.(.+).rrd
See data/rrd/$hostname/ifstat.*

2. where ifstat originates
client/hobbitclient-linux.sh:
echo "[ifstat]"
/sbin/ifconfig

3. what happens to ifstat
hobbitd/client/linux.c: ifstatstr = getdata("ifstat");
hobbitd/client/linux.c: unix_ifstat_report(hostname, clienttype, os, hinfo, fromline, timestr, ifstatstr); <--- ifstatstr

You should be able to modify the client shell script to report other than ifconfig -a (which seems to be what is currently captured).  Of course, there must be a better way.


Regards,

Tim


From: xymon-bounces at xymon.com [xymon-bounces at xymon.com] On Behalf Of Colin Coe [user-5b250cd7a540@xymon.invalid]
Sent: Tuesday, April 26, 2011 7:02 PM
To: xymon at xymon.com
Subject: Re: [Xymon] Trending too many interfaces

Anyone have any thoughts on this?

The only interfaces I want graphed are "rhevm" and "bond2".
--
RHCE#805007969328369

--
RHCE#805007969328369

--
RHCE#805007969328369

-- 

RHCE#805007969328369