Menu

#1296 Incorrect work without swap.

linux
closed
5
2014-08-21
2005-01-14
No

On server without swap rise error message:

snmpwalk -v 1 -c public localhost .1.3.6.1.4.1.2021.4
UCD-SNMP-MIB::memIndex.0 = INTEGER: 0
UCD-SNMP-MIB::memErrorName.0 = STRING: swap
UCD-SNMP-MIB::memTotalSwap.0 = INTEGER: 0
UCD-SNMP-MIB::memAvailSwap.0 = INTEGER: 0
UCD-SNMP-MIB::memTotalReal.0 = INTEGER: 4039088
UCD-SNMP-MIB::memAvailReal.0 = INTEGER: 801496
UCD-SNMP-MIB::memTotalFree.0 = INTEGER: 801496
UCD-SNMP-MIB::memMinimumSwap.0 = INTEGER: 16000
UCD-SNMP-MIB::memShared.0 = INTEGER: 0
UCD-SNMP-MIB::memBuffer.0 = INTEGER: 0
UCD-SNMP-MIB::memCached.0 = INTEGER: 2706316
UCD-SNMP-MIB::memSwapError.0 = INTEGER: 1
UCD-SNMP-MIB::memSwapErrorMsg.0 = STRING: Running out
of swap space (0)

Discussion

  • Niels Baggesen

    Niels Baggesen - 2005-02-10

    Logged In: YES
    user_id=88647

    You can configure the minimum required swap using the swap
    directive in snmpd.conf:

    swap -1

    should do the trick

     
  • Olleg Samoylov

    Olleg Samoylov - 2005-02-14

    Logged In: YES
    user_id=28387

    swap -1 solve problem
    But this option is not documented, at least in man
    snmpd.conf page.

     
  • Niels Baggesen

    Niels Baggesen - 2005-02-14

    Logged In: YES
    user_id=88647

    Hmm, yes, there are many options for snmpd.conf that are now
    sown in the man page. Most are mentioned in the EXAMPLE.conf
    that should be consulted in addition, but that is not the
    case for this option.
    It seems we need to be more careful with documentation ;-)

     
  • Dave Shield

    Dave Shield - 2006-01-05

    Logged In: YES
    user_id=88893

    Documentation updated for 5.3 release

     
  • Camden Lindsay

    Camden Lindsay - 2014-04-09

    I am running 5.7.2.1
    NET-SNMP version: 5.7.2.1
    Web: http://www.net-snmp.org/
    Email: net-snmp-coders@lists.sourceforge.net

    I cannot find any mention of the 'swap -1' directive in any of the following places:
    man page snmpd
    man page snmpd.conf
    snmpd.conf.example provided by Gentoo

    Did this somehow slip?

     

Log in to post a comment.