[mrtg] Re: Add new OID to MRTG 2.8.x

Stieers, Ken KStieers at DainRauscher.com
Tue Aug 3 17:17:10 MEST 1999


I open the file in WordPad or VI?  If you actually open the file you'll see
a list that starts like this:

%SNMP_util::OIDS = 
  (
    'iso' => '1',
    'org' => '1.3',
    'dod' => '1.3.6',
    'internet' => '1.3.6.1',
    'directory' => '1.3.6.1.1',
    'mgmt' => '1.3.6.1.2',


and ends like this:

    'snmpInBadCommunityUses' => '1.3.6.1.2.1.11.5',
    'snmpInASNParseErrs' => '1.3.6.1.2.1.11.6',
    'snmpInTooBigs' => '1.3.6.1.2.1.11.8',
    'snmpInNoSuchNames' => '1.3.6.1.2.1.11.9',
    'experimental' => '1.3.6.1.3',
    'private' => '1.3.6.1.4',
    'enterprises' => '1.3.6.1.4.1',
  );


Just add a new entry at the bottom:


    'snmpInBadCommunityUses' => '1.3.6.1.2.1.11.5',
    'snmpInASNParseErrs' => '1.3.6.1.2.1.11.6',
    'snmpInTooBigs' => '1.3.6.1.2.1.11.8',
    'snmpInNoSuchNames' => '1.3.6.1.2.1.11.9',
    'experimental' => '1.3.6.1.3',
    'private' => '1.3.6.1.4',
    'enterprises' => '1.3.6.1.4.1',
    'ntperf' => '1.3.6.1.4.1.311.1.1.3.1.1');


Its that simple. 

Ken 


> -----Original Message-----
> From: kikino su sardu [mailto:kikino at box1.tin.it]
> Sent: Tuesday, August 03, 1999 8:04 AM
> To: Stieers, Ken; mrtg at list.ee.ethz.ch
> Subject: [mrtg] Re: Add new OID to MRTG 2.8.x
> 
> 
> Ok Ken,
> But can I insert a new OID into snmp_util file?
> what  method are you using to insert a new OID ?
> can you send me an example?
> 
> thank' s in advance
> 
> 
> -----Original Message-----
> From: Stieers, Ken <KStieers at DainRauscher.com>
> To: 'kikino su sardu' <kikino at box1.tin.it>; mrtg at list.ee.ethz.ch
> <mrtg at list.ee.ethz.ch>
> Date: 03 August, 1999 13:51
> Subject: [mrtg] Re: Add new OID to MRTG 2.8.x
> 
> 
> >Its just a perl script (i.e. text file).  You can edit it in any text
> >editor.
> >
> >Ken
> >
> >
> >> -----Original Message-----
> >> From: kikino su sardu [mailto:kikino at box1.tin.it]
> >> Sent: Tuesday, August 03, 1999 3:09 AM
> >> To: mrtg at list.ee.ethz.ch
> >> Subject: [mrtg] Re: Add new OID to MRTG 2.8.x
> >>
> >>
> >> It is very intresting!!!
> >> Hi,
> >> How can I modyfy my snmp_util to add a new OID?
> >>
> >> any help would be greatly appreciated
> >> thank's in advanced
> >> kikino
> >>
> >> -----Original Message-----
> >> From: Stieers, Ken <KStieers at DainRauscher.com>
> >> To: 'Budi Wiyono' <budiw at idola.net.id>; mrtg at list.ee.ethz.ch
> >> <mrtg at list.ee.ethz.ch>
> >> Date: 02 August, 1999 21:25
> >> Subject: [mrtg] Re: Add new OID to MRTG 2.8.x
> >>
> >>
> >> >The OID mappings have been moved to SNMP_Util.pm
> >> >
> >> >Ken
> >> >
> >> >
> >> >> -----Original Message-----
> >> >> From: Budi Wiyono [mailto:budiw at idola.net.id]
> >> >> Sent: Monday, August 02, 1999 4:37 PM
> >> >> To: mrtg at list.ee.ethz.ch
> >> >> Subject: [mrtg] Add new OID to MRTG 2.8.x
> >> >>
> >> >>
> >> >> Hi All,
> >> >>
> >> >> I need to add new OID to MRTG.
> >> >> So i can monitor traffic with cfg, like bellow:
> >> >> Target[mylink]:
> >> >> WffrInOctets.205102.0.38&WffrOutOctets.205102.0.38:public at myip
> >> >>
> >> >> (at old MRTG, i just add to MRTG script...)
> >> >> How to add this OID to MRTG 2.8.x ?
> >> >>
> >> >> TIA,
> >> >> Budiw
> >> >>
> >> >>
> >> >> --
> >> >> * To unsubscribe from the mrtg mailing list, send a
> >> message with the
> >> >>   subject: unsubscribe to mrtg-request at list.ee.ethz.ch
> >> >> * The mailing list archive is at 
> http://www.ee.ethz.ch/~slist/mrtg
> >> >>
> >> >
> >> >--
> >> >* To unsubscribe from the mrtg mailing list, send a 
> message with the
> >> >  subject: unsubscribe to mrtg-request at list.ee.ethz.ch
> >> >* The mailing list archive is at http://www.ee.ethz.ch/~slist/mrtg
> >> >
> >>
> >> --
> >> * To unsubscribe from the mrtg mailing list, send a 
> message with the
> >>   subject: unsubscribe to mrtg-request at list.ee.ethz.ch
> >> * The mailing list archive is at http://www.ee.ethz.ch/~slist/mrtg
> >>
> >
> >--
> >* To unsubscribe from the mrtg mailing list, send a message with the
> >  subject: unsubscribe to mrtg-request at list.ee.ethz.ch
> >* The mailing list archive is at http://www.ee.ethz.ch/~slist/mrtg
> >
> 

--
* To unsubscribe from the mrtg mailing list, send a message with the
  subject: unsubscribe to mrtg-request at list.ee.ethz.ch
* The mailing list archive is at http://www.ee.ethz.ch/~slist/mrtg


More information about the mrtg mailing list