[mrtg] Linux ethernet errors and collisions

Cameron Jenkins cjenkins at VivaNet.com.au
Wed Feb 7 07:13:19 MET 2001



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



More information about the mrtg mailing list