[mrtg] Re: Linux ethernet errors and collisions

Grendel grendel at interq.ad.jp
Wed Feb 7 07:31:16 MET 2001


Hello,
	When I saw something like that, values getting added at the top of a
log file and then getting deleted, it was because those values were
non-integer values. An earlier version of MRTG just dropped everything
past the decimal point because rateup can only handle integers. Since
rrdtool can handle non-integers, MRTG no longer drops the decimal
portion of numbers. (Anyone know when this changed, just out of
curiosity?) Unfortunately it still passes through non-integer portions
of numbers into .log files, even though rateup cannot cope, even when
specifically told that it is using rateup and not rrdtool. It caused a
bit of confusion when moving a config from a box with an older install
to a box with a newer install.
	If your ethrxtx.sh returns a rate with a non-integer portion, setting
it to return an integer would fix the problem. If it's already returning
integers however then I'm totally off base.

:/

Hope that helps,
James

interQ
Tokyo, Japan


Cameron Jenkins wrote:
> 
> Hello all,
> 
> I have made a couple of scripts and placed them in my ucd snmp conf file. I
> have been able to successfully walk and get the necessary information that
> these scripts are meant to produce. The scripts have been designed just to
> get the ethernet errors and collissions for eth0 for a linux box.
> 
> I have checked the .log file produced by the MRTG graphs, and have seen that
> it is picking up the correct totals from the linux box, but when it does the
> next poll, it deletes the old total and replaces them with the new, thus
> ending in null stats
> 
> I was wondering if someone could answer the following questions:
> 
> 1. Is there a better way to grab ethernet errors and collisions using SNMP
> (particularly the ucd snmp for linux)
> 
> 2. Why the stats in the log file are being replaced with the new stats and
> not being updated
> 
> Below is the code I have been using in the MRTG daemon to grab the stats:
> 
> Target[etherrors]: `/root/mrtg/ethrxtx.sh <ip of machine> eth0`
> MaxBytes[etherrors]: 1000000
> Directory[etherrors]: 202.76.128.12
> Title[etherrors]: Ethernet Errors - eth0
> PageTop[etherrors]: <H1>Ethernet Errors - eth0</H1>
> ShortLegend[etherrors]: errors
> YLegend[etherrors]: No. of Errors
> Legend1[etherrors]: RX Errors
> Legend2[etherrors]: TX Errors
> Legend3[etherrors]:
> Legend4[etherrors]:
> LegendI[etherrors]: RX:&nbsp;
> LegendO[etherrors]: TX:&nbsp;
> Options[etherrors]: growright, nopercent, noinfo
> 
> The script /root/mrtg/ethrxtx.sh just does a snmpget to the OID's i created
> in my snmp.conf file on the box in question.
> 
> Another question I would also like to ask, instead of creating a new email,
> is that I would like to know if anyone has any scripts or knows of any
> particular interesting MIBs/OIDs for the Novell ICS proxy. Something that
> would give like cache percentage, total usage, cache utilisation, just
> general proxy stuff like that. Novell's website is useless, and searching
> for the word MRTG just returns in a web page with errors.
> 
> Any help is appreciated, thank you.
> 
> Regards,
> Cameron Jenkins
> 
> --
> Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
> Archive     http://www.ee.ethz.ch/~slist/mrtg
> FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
> WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list