#1296 Incorrect work without swap.


On server without swap rise error message:

snmpwalk -v 1 -c public localhost .
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)


  • Niels Baggesen

    Niels Baggesen - 2005-02-10

    Logged In: YES

    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

    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

    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

    Documentation updated for 5.3 release

  • Camden Lindsay

    Camden Lindsay - 2014-04-09

    I am running
    NET-SNMP version:
    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.