Menu

#488 Net-SNMP memory stats are broken

closed
nobody
agent (1105)
5
2012-11-08
2002-07-29
No

All the OID work well, exept for the memory OIDs. When
getting all the "
.1.3.6.1.4.1.2021.4" familiy this is the result:

memIndex.0 = 0
memErrorName.0 = swap
memTotalSwap.0 = -1
memAvailSwap.0 = -1
memTotalReal.0 = -1
memAvailReal.0 = -1
memTotalFree.0 = -2
memMinimumSwap.0 = 0
memShared.0 = -1
memBuffer.0 = -1
memCached.0 = -1
memSwapError.0 = 1
memSwapErrorMsg.0 = Running out of swap space (-1)

The daemon was installed using:

./configure --with-mib-modules="host"
--with-sys-contact="xxx" --with-sys-location="xxx"
--with-logfile="/var/log/snmpd.log"
--with-persistent-directory="var/ucd-snmp"
--prefix=/usr/local
make
make test (passed all the tests)

And is run calling (part of the script)

OPTIONS="-s -l /dev/null -P /var/run/snmpd -a -C -c
/etc/snmp/snmpd.conf"
RETVAL=0
prog="snmpd"

start() {
echo -n $"Starting $prog: "
#daemon /usr/sbin/snmpd $OPTIONS
daemon /usr/local/sbin/snmpd $OPTIONS
RETVAL=$?

The setup is Redhat 7.2 with SMP kernel 2.4.18:

Linux linux0107 2.4.18 #7 SMP Wed Jun 5 13:23:21 EDT
2002 i686 unknown

Do i need to set up something special in order to make
the program work?

Thanks in advance.

Discussion

  • Jose V Nunez

    Jose V Nunez - 2002-07-29

    Logged In: YES
    user_id=283328

    Forgot to say, the net-snmp version is ucd-snmp-4.2.5.

     
  • Dave Shield

    Dave Shield - 2002-07-30

    Logged In: YES
    user_id=88893

    Please apply Patch #560979 (on the "official patches"
    page) which fixes this problem.

     

Log in to post a comment.