Can't get memory usage info via snmp - SNMP

This is a discussion on Can't get memory usage info via snmp - SNMP ; After the installation and configuration of net-snmp-utils-5.0.1-6 and net-snmp-5.0.1-6 rpm packages on my RedHat Linux 8.0 machine somehow i can't gain the memory usage (shared, buffer etc.) info via snmp. Whenever i issue snmpget -c public localhost .1.3.6.1.4.1.2021.4.13.0 for the ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: Can't get memory usage info via snmp

  1. Can't get memory usage info via snmp

    After the installation and configuration of net-snmp-utils-5.0.1-6 and
    net-snmp-5.0.1-6 rpm packages on my RedHat Linux 8.0 machine somehow i
    can't gain the memory usage (shared, buffer etc.) info via snmp.

    Whenever i issue snmpget -c public localhost .1.3.6.1.4.1.2021.4.13.0
    for the shared buffer usage i get UCD-SNMP-MIB::memShared.0 = INTEGER:
    -1. Interestingly other OID's are working (e.g. CPU usage etc.).

    snmptranslate -Td .1.3.6.1.4.1.2021.4.13.0 gives me :

    UCD-SNMP-MIB::memShared.0
    memShared OBJECT-TYPE
    -- FROM UCD-SNMP-MIB
    SYNTAX Integer32
    MAX-ACCESS read-only
    STATUS current
    DESCRIPTION "Total Shared Memory"
    ::= { iso(1) org(3) dod(6) internet(1) private(4) enterprises(1)
    ucdavis(2021) memory(4) memShared(13) 0 }

    and this is exactly what i'm looking for.

    Is this bug or i just overlooked something in the configuration file.
    The same OID is working perfectly under FreeBSD.

  2. Re: Can't get memory usage info via snmp

    Excuse me if I reply with a question:
    do you know where I can find a OID list of the MIB subtree that is
    implemented in linux snmp demons?

    tks

    Giuseppe Giannini


    "pH" ha scritto nel messaggio
    news:ed1195b0.0307140647.1fe774d8@posting.google.c om...
    > After the installation and configuration of net-snmp-utils-5.0.1-6 and
    > net-snmp-5.0.1-6 rpm packages on my RedHat Linux 8.0 machine somehow i
    > can't gain the memory usage (shared, buffer etc.) info via snmp.
    >
    > Whenever i issue snmpget -c public localhost .1.3.6.1.4.1.2021.4.13.0
    > for the shared buffer usage i get UCD-SNMP-MIB::memShared.0 = INTEGER:
    > -1. Interestingly other OID's are working (e.g. CPU usage etc.).
    >
    > snmptranslate -Td .1.3.6.1.4.1.2021.4.13.0 gives me :
    >
    > UCD-SNMP-MIB::memShared.0
    > memShared OBJECT-TYPE
    > -- FROM UCD-SNMP-MIB
    > SYNTAX Integer32
    > MAX-ACCESS read-only
    > STATUS current
    > DESCRIPTION "Total Shared Memory"
    > ::= { iso(1) org(3) dod(6) internet(1) private(4) enterprises(1)
    > ucdavis(2021) memory(4) memShared(13) 0 }
    >
    > and this is exactly what i'm looking for.
    >
    > Is this bug or i just overlooked something in the configuration file.
    > The same OID is working perfectly under FreeBSD.




  3. Re: Can't get memory usage info via snmp

    On Mon, 21 Jul 2003 09:23:10 GMT, Uomo Tigre poured
    into the usenet group comp.protocols.snmp:
    > Excuse me if I reply with a question:
    > do you know where I can find a OID list of the MIB subtree that is
    > implemented in linux snmp demons?

    Start a new thread for a question please.
    Locate mib should help you out.
    /usr/share/snmp/mibs on my RH 7.3 system

    Devdas Bhagat

+ Reply to Thread