Re: mib definition from a exec in snmpd.conf

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 20/11/2007, Abraham Iglesias <[email protected]> wrote:
> i have added some lines in snmpd.conf to be able to get the memory usage
> from 4 diferent tomcats. I invented my own OIDs and I would like to have
> my MIB definition file to load it in my snmp manager.
>
> exec .1.3.6.1.4.1.29302.1000 gatekeeperMemUsage
> /usr/local/sbin/memory_monitoring.pl tomcat1
   <etc>
>
> How could I write the definition file? Is it possible?

No.
The output of the "relocated exec" directive is slightly different to
the UCD-SNMP-MIB::extTable, and is not actually a legal SMI
structure.   It is impossible to define a MIB that matches this.

That was one of the reasons behind introducing the "extend"
directive, which uses the same MIB structure for both standard
and relocatable forms.


> Moreover, I have an script which sends snmptraps with an OID which I
> invented too....1.3.6.1.4.1.29302.1003
>
> Is it possible to have the mib definition file too?


Yes - that is possible.

You haven't said whether these are SNMPv1 traps, or SNMPv2 (or v3)
notifications.   If this is an SMIv2 MIB, then I'd suggest you define trap
OIDs of the form
    .1.3.6.1.4.1.29302.1003.0.{trap}

That is the most reliable way of defining trap OIDs, that will work
properly with both SNMPv1 and SNMPv2.

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.