[mrtg] AW: AW: AW: mrtg help
Joerg.Helmert at EINSTEINet.de
Tue Jun 25 13:54:20 MEST 2002
since this is a mrtg-config and no perl script, you don't need the first
If you use a OID "in words" instead of its numeric expression, you have to
load the according mib.
As I see, you commented out LoadMibs: ascend.mib, which is needed.
You could use getif and its builtin mibbrowser to find the numeric
Then you would'nt need to load the mib.
mrtg is only able to measure integer values.
Did you check if your OID shows an integer as result?
OIDs can show tables (arrays) strings and so on. But mrtg can only use
You can check this also with mibbrowser in getif.
If you mark the oid in the mibtree, getif shows the type of the returnvalue.
If this is not integer, it cannot be measured with mrtg directly.
This is, why that livingston guy needed his scripts.
He got a string: "line:username" and had to count how many strings he got
from the table ...livingstonSerialusers.
If you get a table of integers, this too will not be measurable with mrtg.
Regarding your OID:
didn't find it exactly in my ascend.mibs.
If you read from an OID you mostly have to provide an index.
This mostly is .0 at the end of a target in mrtg for a single integer value.
(like modems available or modems used).
Here you have a table of integer values. The index is used to fetch a single
row of that table.
But the index doesn't have to be a contiguos row of numbers like
If you walk that OID you'll see an entry for each active connection.
I see for instance:
.22.214.171.124.4.1.5126.96.36.199.4.290381324 and at the moment 8 more.
Here .290381324 at the end is the index. But I only have 9 active
To measure this with mrtg, you would have to provide the right index.
Since this looks like AscendMAX SNMP-Agent generates these indizes, I guess
you have no chance of knowing them before.
You would have to provide .188.8.131.52.4.1.5184.108.40.206.4.290381324 in your
But since I guess the index is changing, everytime a connection goes down
and comes up again,
this will not be usefull...
Sorry, but I hope this helps anyway...
Von: GUARENO at FORDHAM.EDU [mailto:GUARENO at FORDHAM.EDU]
Gesendet: Montag, 24. Juni 2002 23:28
An: Helmert, Jörg; mrtg at list.ee.ethz.ch
Betreff: Re: AW: [mrtg] AW: mrtg help
Thanks a million for your help. Everything works fine. now.
I'm sorry if I keep bothering with these questions, but I have one more.
Now I'm tryin to obtain information pertaining to: Users, Call Duration,
I got "getif" and ran it on our Ascend MAX 6000 and it pulled out
thounsands of OIDs
and I'm trying to make sense out of them.
Quick overview of what I did:
# 56K modem pool
:community at 220.127.116.11
RouterUptime[56k]: Community1 at 150.108.x.x
Title[56k]: Ascend MAX 6000 234.2
PageTop[56k]: <H3>MAX 6000</H3>
(or 18.104.22.168.4.1.529.11.???what here)
After running the script I get these errors:
C:\mrtgCopy\bin>perl mrtg testcfg.cfg
Stamp:community at 150.108.x.x' (warn): Array found where operator expected at
eval 6) line 1, at end of line
eStamp:community at 150.108.x.x' (warn): Array found where operator expected
(eval 7) line 1, at end of line
WARNING: Skipping Update of 56k, inlast is not defined
WARNING: Skipping Update of 56k, outlast is not defined
is this the right way of doing this. Is there another way of using the
OIDs obtained throught "getif"... If not how.
Also, how do I print this info on the HTML page?
Thanks in advance.
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
More information about the mrtg