Menu

#1973 UCD-SNMP-MIB::memAvailSwap.0 returns -2 value

hpux
closed
agent (1105)
5
2012-11-08
2008-08-11
No

I am getting an error with net-snmp 5.4.1.2 which i have built for HP-UX 11iv2.Below is the details of the error

#/opt/iexpress/net-snmp/bin/snmpwalk -v 2c -c public 127.0.0.1 UCD

When i run the above command i am getting output similar to this

UCD-SNMP-MIB::memIndex.0 = INTEGER: 0
UCD-SNMP-MIB::memErrorName.0 = STRING: swap
UCD-SNMP-MIB::memTotalSwap.0 = INTEGER: 8388608 kB
UCD-SNMP-MIB::memAvailSwap.0 = INTEGER: -2 kB
UCD-SNMP-MIB::memTotalReal.0 = INTEGER: 4173768 kB
UCD-SNMP-MIB::memAvailReal.0 = INTEGER: 792232 kB
UCD-SNMP-MIB::memTotalSwapTXT.0 = INTEGER: 22008 kB
UCD-SNMP-MIB::memAvailSwapTXT.0 = INTEGER: 12964 kB
UCD-SNMP-MIB::memTotalRealTXT.0 = INTEGER: 16980 kB
UCD-SNMP-MIB::memAvailRealTXT.0 = INTEGER: 10608 kB
UCD-SNMP-MIB::memMinimumSwap.0 = INTEGER: 16000 kB
UCD-SNMP-MIB::memUsedSwapTXT.0 = INTEGER: 12964 kB
UCD-SNMP-MIB::memUsedRealTXT.0 = INTEGER: 10608 kB
UCD-SNMP-MIB::memSwapError.0 = INTEGER: error(1)
UCD-SNMP-MIB::memSwapErrorMsg.0 = STRING: Running out of swap space (-1)
UCD-SNMP-MIB::laIndex.1 = INTEGER: 1

All values are ok except UCD-SNMP-MIB::memAvailSwap.0

is showing -2

These are the configuration options i have used

export CFLAGS="-mpa-risc-2-0 -fPIC"
./configure --prefix=/opt/iexpress/net-snmp \ --disable-debugging \ --with-defaults \ --disable-embedded-perl \ --with-openssl=/opt/openssl \ --enable-ipv6 \ --with-transports="UDP UDPIPv6 TCPIPv6" \ --enable-ucd-snmp-compatibility \ --with-libs="-lnm -lipv6" \ --enable-shared

snmpd.conf has the only entry i.e shown below

rocommunity public

Can you help me regarding this

Thanks in advance

Attaching the entire output of /opt/iexpress/net-snmp/bin/snmpwalk -v 2c -c public 127.0.0.1 UCD

Regards,
Ravindranath

Discussion

  • chavalam  ravindranath

    output of /opt/iexpress/net-snmp/bin/snmpwalk -v 2c -c public 127.0.0.1 UCD

     
  • Thomas Anders

    Thomas Anders - 2009-04-23

    Thanks for the bug report!
    We've fixed the problem in the 5.4.x code branch
    and the main development tree, so it should be
    fixed in future releases of the Net-SNMP package.

     
  • Thomas Anders

    Thomas Anders - 2009-04-23

    Fixed by patch 2088726 applied in SVN Rev. 17547.

     

Log in to post a comment.