[mrtg] Re: OIDs additon error
Michael Markstaller
mm at elabnet.de
Wed May 7 11:17:26 MEST 2003
Hi, the addition (any math) needs two values for both targets, the explizit OID you give provides only one. so should read either:
Target[eth]: 1.3.6.1.2.1.2.2.1.10.1&1.3.6.1.2.1.2.2.1.16.1:public at 172.16.1.2 + 1.3.6.1.2.1.2.2.1.10.1&1.3.6.1.2.1.2.2.1.16.1:public at 172.16.1.5
or, as your looking on ifInoctets, simply
Target[eth]: 1:public at 172.16.1.2 + 1:public at 172.16.1.5
..it took me also some time to really understand the math thing with two values required for each..
Michael
-----Original Message-----
From: Michael Crousaz - HERKIMER SàRL [mailto:mcrousaz at herkimer.net]
Sent: Wednesday, May 07, 2003 10:47 AM
To: mrtg at list.ee.ethz.ch
Cc: Olivier Gudet (Herkimer Ltd.)
Subject: [mrtg] OIDs additon error
Hello.
I'd like to have the sum of my 2 ethernet cards traffic, but it doesn't work
My configuration :
### ETHERNET 1+2 >> Descr: 'FastEthernet23' | Name: 'Fa1/023' | Ip:
'195.202.192.210' | Eth: '00-90-5f-09-98-1c' ###
Target[eth]: 1.3.6.1.2.1.2.2.1.10.1:public at 172.16.1.2 +
1.3.6.1.2.1.2.2.1.10.1:public at 172.16.1.5
SetEnv[eth]: MRTG_INT_IP="172.16.1.2" MRTG_INT_DESCR="FastEthernet1/0xx"
MaxBytes[eth]: 12500000
Title[eth]: Fast Ethernet
XSize[eth]: 600
Options[eth]: absolute
PageTop[eth]: <H1>Fast Ethernet (CMTS 1)</H1>
<TABLE>
<TR><TD>System:</TD> <TD>CMTS 1</TD></TR>
<TR><TD>Maintainer:</TD> <TD></TD></TR>
<TR><TD>Description:</TD><TD>FastEthernet1/0 </TD></TR>
<TR><TD>ifType:</TD> <TD>ethernetCsmacd (6)</TD></TR>
<TR><TD>ifName:</TD> <TD>Fa1/0</TD></TR>
<TR><TD>Max Speed:</TD> <TD>12.5 MBytes/s</TD></TR>
<TR><TD>Ip:</TD> <TD>195.202.192.210
(Rtr-TVT-Renens-fe0-0.Urba.Net)</TD></TR>
</TABLE>
MRTG bring me this error back :
Daemonizing MRTG ...
Do Not close this window. Or MRTG will die
ERROR: Target[eth][_IN_] '1.3.6.1.2.1.2.2.1.10. $$target[0]{$mode} +
1.3.6.1.2.
1.2.2.1.10. $$target[1]{$mode} ' (warn): Argument
"^A^C^F^A^B^A^B^B^A\n138139855
9" isn't numeric in addition (+) at (eval 4) line 1.
ERROR: Target[eth][_OUT_] '1.3.6.1.2.1.2.2.1.10. $$target[0]{$mode} +
1.3.6.1.2
.1.2.2.1.10. $$target[1]{$mode} ' (warn): Argument
"^A^C^F^A^B^A^B^B^A\n27553649
38" isn't numeric in addition (+) at (eval 5) line 1.
Any idea of what's wrong ?
--
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