[rrd-users] Re: measure interface ERRORS

Vanish Pattni (DSL AK) VanishP at datacom.co.nz
Mon Oct 21 23:16:02 MEST 2002


here;s my solution. Don;t use any of the special modifiers (gauge,
absolute). Let mrtg calculate the data as it does. 

i.e. (cur - prev)/interval -- an average

However if you use a multiplier of interval then as you can see the value
that gets stored in the database is cur-prev which is exactly what I want.
Here;s a sample of what I am talking about:

Target[xx.yy.z.y_S0_crcabort]:
1.3.6.1.4.1.9.2.2.1.1.12.5&1.3.6.1.4.1.9.2.2.1.1.16.5:snmpstr at xx.yy.z.y  *
300

Vanish

-----Original Message-----
From: Jose Maria Costa Pereira [mailto:jose.pereira at corp.vodafone.pt]
Sent: Tuesday, October 22, 2002 4:39 AM
To: rrd-users at list.ee.ethz.ch
Subject: [rrd-users] measure interface ERRORS



Hi!

Let me try to explain what I would like to do and see if any of you has any
ideas...

Basically, I want to measure the number of packets with errors (OID
'ifInErros' from the MIB-II interfaces table) in the last 5 minutes.
For instance, imagine that the OID ifInErrors = 0 (the machine as been
rebooted) at 13:00.
At 13:05 the same OID ifInErrors = 19, another five minutes pass and the
value goes to 23, and so on ... when ever there are errors on that interface
the value will rise.

What I wanted to store was:
 13:00  13:05  13:10
   0     19      4

What data source type should I use? ... if I use GAUGE, I'll get
 13:00  13:05  13:10
   0     19      23
... and that's not what I want.

And any of the other data source types (COUNTER, DERIVE and ABSOLUTE) will
give me a measure per second.

Maybe if I put --step 1 (instead of the default 300 seconds) with a COUNTER
like data source, but collect the data in 5 minutes intervals I can "fool"
RRD to divide the measure captured by 1. But still capturing it in five
minutes intervals (using the crontab). Doing preciselly what I want.

Suggestions and/or comments are very welcome...


Best regards,

Jose Maria Costa Pereira
jose.pereira at corp.vodafone.pt



---------- 
This message may contain confidential information or privileged material,
and is intended only for the individual(s) named. If you are not in the
named addressee you should not disseminate, distribute or copy this e-mail.
Please notify the sender immediately by e-mail if you have received this
e-mail by mistake and delete this e-mail from your system. 
E-mail transmission cannot be guaranteed to be secure or error-free as
information could be intercepted, corrupted, lost, destroyed, arrive late or
incomplete, or contain viruses.  The sender therefore does not accept
liability for any errors or omissions in the contents of this message which
arise as a result of e-mail transmission. If verification is required please
request a hard-copy version. 

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list