[mrtg] Re: Mrtg can not work with OID I identified
Chen Haitao-a15768
a15768 at motorola.com
Mon Jan 19 10:34:46 MET 2004
Hello,
After some change:
### Interface 314 >> Descr: '' | Name: '7/3' | Ip: '' | Eth: '00-0a-f4-05-eb-72' ###
Target[ABC]: 1.3.6.1.2.1.2.2.1.9.314&1.3.6.1.2.1.2.2.1.9.314:public at 10.193.5.250:
Options[ABC]: gauge
MaxBytes[ABC]: 100000000
Title[ABC]: ifLastChange for 314
PageTop[ABC]: <H1>Last Change for GE 7/3 -- </H1>
<TABLE>
<TR><TD>System:</TD> <TD> MNAC</TD></TR>
<TR><TD>Maintainer:</TD> <TD> </TD></TR>
<TR><TD>Description:</TD><TD> </TD></TR>
<TR><TD>ifType:</TD> <TD>ethernetCsmacd (6)</TD></TR>
<TR><TD>ifName:</TD> <TD>7/3</TD></TR>
<TR><TD>Port Name:</TD> <TD></TD></TR>
<TR><TD>Max Speed:</TD> <TD>125.0 MBytes/s</TD></TR>
</TABLE>
I got the correct date, but still can not make graph, the error is :
D:\mrtg-2.9.29\bin>perl mrtg mrtg1.cfg
WARNING: Expected a number but got '21 days, 9:28:26'
WARNING: Expected a number but got '21 days, 9:28:26'
ERROR: Target[abc][_IN_] ' $$target[4]{$mode} ' did not eval into defined data
ERROR: Target[abc][_OUT_] ' $$target[4]{$mode} ' did not eval into defined data
WARNING: Skipping Update of abc, inlast is not defined
WARNING: Skipping Update of abc, outlast is not defined
D:\mrtg-2.9.29\bin>
So it seems I need change some config, Can anyone know what should I change?
Best Regards.
-----Original Message-----
From: Chen Haitao-a15768
Sent: Monday, January 19, 2004 5:02 PM
To: 'mrtg at list.ee.ethz.ch'
Subject: RE: Mrtg can not work with OID I identified
Hello Friends
I want to use MRTG to check how long one switch port did not be used, so I used the OID "'ifLastChange' => '1.3.6.1.2.1.2.2.1.9'" to identify the Target, the config file is belowed:
### Interface 314 >> Descr: '' | Name: '7/3' | Ip: '' | Eth: '00-0a-f4-05-eb-72' ###
Target[ABC]: 1.3.6.1.2.1.2.2.1.9.314 & 1.3.6.1.2.1.2.2.1.9.314:public at 10.193.5.250:
MaxBytes[ABC]: 12500000000000000
Title[ABC]: ifLastChange for 314
PageTop[ABC]: <H1>Last Change for GE 7/3 -- </H1>
<TABLE>
<TR><TD>System:</TD> <TD> MNAC</TD></TR>
<TR><TD>Maintainer:</TD> <TD> </TD></TR>
<TR><TD>Description:</TD><TD> </TD></TR>
<TR><TD>ifType:</TD> <TD>ethernetCsmacd (6)</TD></TR>
<TR><TD>ifName:</TD> <TD>7/3</TD></TR>
<TR><TD>Port Name:</TD> <TD></TD></TR>
<TR><TD>Max Speed:</TD> <TD>125.0 MBytes/s</TD></TR>
</TABLE>
Options[ABC]: gauge
but MRTG can not work, the error message is :
D:\mrtg-2.9.29\bin>perl mrtg mrtg1.cfg
Daemonizing MRTG ...
Do Not close this window. Or MRTG will die
ERROR: Target[abc][_IN_] '1.3.6.1.2.1.2.2.1.9.314 & 1.3.6.1.2.1.2.2.1.9. $$target[4]{$mode} ' evalua
ted to 'âºâ¥â âºâ»âºâ»â»âº 2' instead of a number
ERROR: Target[abc][_OUT_] '1.3.6.1.2.1.2.2.1.9.314 & 1.3.6.1.2.1.2.2.1.9. $$target[4]{$mode} ' evalu
ated to 'âºâ¥â âºâ»âºâ»â»âº 2' instead of a number
WARNING: Skipping Update of abc, inlast is not defined
WARNING: Skipping Update of abc, outlast is not defined
Terminating on signal SIGINT(2)
D:\mrtg-2.9.29\bin>
Can anyone help me?
Best Regards,
Haitao.
--
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