[mrtg] Re: Mrtg can not work with OID I identified

Chen Haitao-a15768 a15768 at motorola.com
Mon Jan 19 10:00:51 MET 2004


 

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