[mrtg] Re: Newbie question: add specific OID

John Barbieri jbarbieri at metrocastcablevision.com
Thu Jul 21 15:56:32 MEST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Lee,


I am not sure if you can specify OIDs for cfgmaker. I know you can
specify interfaces by name and type and such, but again, dont think you
can do straight SNMP OIDs. If I am wrong, can someone else correct me as
well :)

You might have to build those particular parts of the config file by
hand. I know I had to, and it takes a looooooong time (lots of copy/paste)

It should look something like this (this is very rough, your going to
have to customize it to what you need)  :

### Interface Errors
Target[errors]:1.3.6.1.2.1.2.2.1.14.1&1.3.6.1.2.1.2.2.1.20.1:Password at 172.17.x.x
Options[errors]: nopercent,growright,noinfo
Title[errors]: Total Interface Errors
PageTop[errors]: <H1> Interface Errors </H1>
MaxBytes[errors]: 10000000
YLegend[errors]: # of errors
ShortLegend[errors]: errors
LegendI[errors]:
LegendO[errors]:
Legend1[errors]:



Regards,

John

Lee Christie wrote:
> I am specifically trying to add Interface errors both inbound and
> outbound.  When I try to run cfgmaker I receive the following error:
> 
> d:\Program Files\MRTG\mrtg-2.12.1\bin>perl cfgmaker 1.3.6.1.2.1.2.2.1.14.1&1.3.6
> .1.2.1.2.2.1.20.1:Password at 172.17.x.x --global "WorkDir:
> d:\mrtg\omaha\routers\router-1" --output router-1.cfg
> --base: Get Device Info on public at 1.3.6.1.2.1.2.2.1.14.1:
> Error:
>   can't resolve "1.3.6.1.2.1.2.2.1.14.1" to IP address
>  at D:/Program Files/MRTG/mrtg-2.12.1/bin\..\lib\mrtg2/SNMP_util.pm line 426
> SNMPWALK Problem for public at 1.3.6.1.2.1.2.2.1.14.1::::::v4only
>  at cfgmaker line 857
> WARNING: Skipping public at 1.3.6.1.2.1.2.2.1.14.1: as no info could be retrieved
> 
> Do I need to add this directly into the cfg file?  If so could someone
> shoot me an example.
> 
> Thanks,
> 
> Lee
> 
> --
> Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
> Archive     http://lists.ee.ethz.ch/mrtg
> FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
> WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi
> 
> 
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC36mQntjrPsCbhI4RAqW3AJ4kPUC9YePjYtYyNMFmKFpMDsOMFgCfa4ES
oGajmcgHjG7zDzuQhfXDiys=
=Bvew
-----END PGP SIGNATURE-----

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://lists.ee.ethz.ch/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the mrtg mailing list