Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

negative memory?

20 views
Skip to first unread message

ato...@mail.ivillage.com

unread,
Jan 6, 2003, 9:50:04 PM1/6/03
to
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C2B5F4.F8AE5EE0
Content-Type: text/plain;
charset="iso-8859-1"

I'm having a problem with 5.0.6 net-snmpd. I've noticed occasionally that
I'm getting negative memAvailReal reported from the agent's memory MIB.
Here's an example (i've changed the hostname/username):

$ snmpwalk deckard memory
UCD-SNMP-MIB::memIndex.0 = INTEGER: 0
UCD-SNMP-MIB::memErrorName.0 = STRING: swap
UCD-SNMP-MIB::memTotalSwap.0 = INTEGER: 526072
UCD-SNMP-MIB::memAvailSwap.0 = INTEGER: 505840
UCD-SNMP-MIB::memTotalReal.0 = INTEGER: 507664
UCD-SNMP-MIB::memAvailReal.0 = INTEGER: -67000
UCD-SNMP-MIB::memTotalFree.0 = INTEGER: 438840
UCD-SNMP-MIB::memMinimumSwap.0 = INTEGER: 16000
UCD-SNMP-MIB::memSwapError.0 = INTEGER: 0
UCD-SNMP-MIB::memSwapErrorMsg.0 = STRING:

What could cause that? I've occasionally seen that for ssCpuUser, ssCpuSytem
or ssCpuIdle from the systemStats MIB. I know it's not a problem with the
snmpwalk client as I get the same problems when I retrieve data using my
Net::SNMP perl scripts (for nagios, FWIW).

A little background on my installation...

version 5.0.6 of net-snmp on Solaris 7, SPARC
compiled with ./configure \
--with-openssl=/usr/local/ssl \
--with-mib-modules="host ucd-snmp/diskio" \
--enable-shared=yes --enable-static=yes
using OpenSSL 0.9.6g from sunfreeware, statically (removed openssl's .so
files during configure/make)
using SNMPv3, with .snmp/snmp.conf:

defSecurityLevel authPriv
defSecurityName rachael
defAuthType MD5
defAuthPassphrase XXXXX
defPrivType DES
defPrivPassphrase XXXXX

Thanks in advance for any help/advice...

--
"Computer science is as much about computers as
astronomy is about telescopes" -- Edsger Dijkstra
---------------------------------------------------------
Anthony Tonns, UNIX Administrator - ato...@mail.ivillage.com

------_=_NextPart_001_01C2B5F4.F8AE5EE0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>negative memory?</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>I'm having a problem with 5.0.6 net-snmpd. I've =
noticed occasionally that I'm getting negative memAvailReal reported =
from the agent's memory MIB. Here's an example (i've changed the =
hostname/username):</FONT></P>

<P><FONT SIZE=3D2>$ snmpwalk deckard memory</FONT>
<BR><FONT SIZE=3D2>UCD-SNMP-MIB::memIndex.0 =3D INTEGER: 0</FONT>
<BR><FONT SIZE=3D2>UCD-SNMP-MIB::memErrorName.0 =3D STRING: swap</FONT>
<BR><FONT SIZE=3D2>UCD-SNMP-MIB::memTotalSwap.0 =3D INTEGER: =
526072</FONT>
<BR><FONT SIZE=3D2>UCD-SNMP-MIB::memAvailSwap.0 =3D INTEGER: =
505840</FONT>
<BR><FONT SIZE=3D2>UCD-SNMP-MIB::memTotalReal.0 =3D INTEGER: =
507664</FONT>
<BR><FONT SIZE=3D2>UCD-SNMP-MIB::memAvailReal.0 =3D INTEGER: =
-67000</FONT>
<BR><FONT SIZE=3D2>UCD-SNMP-MIB::memTotalFree.0 =3D INTEGER: =
438840</FONT>
<BR><FONT SIZE=3D2>UCD-SNMP-MIB::memMinimumSwap.0 =3D INTEGER: =
16000</FONT>
<BR><FONT SIZE=3D2>UCD-SNMP-MIB::memSwapError.0 =3D INTEGER: 0</FONT>
<BR><FONT SIZE=3D2>UCD-SNMP-MIB::memSwapErrorMsg.0 =3D STRING:</FONT>
</P>

<P><FONT SIZE=3D2>What could cause that? I've occasionally seen that =
for ssCpuUser, ssCpuSytem or ssCpuIdle from the systemStats MIB. I know =
it's not a problem with the snmpwalk client as I get the same problems =
when I retrieve data using my Net::SNMP perl scripts (for nagios, =
FWIW).</FONT></P>

<P><FONT SIZE=3D2>A little background on my installation...</FONT>
</P>

<P><FONT SIZE=3D2>version 5.0.6 of net-snmp on Solaris 7, SPARC</FONT>
<BR><FONT SIZE=3D2>compiled with ./configure&nbsp; \</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
--with-openssl=3D/usr/local/ssl \</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
--with-mib-modules=3D&quot;host ucd-snmp/diskio&quot; \</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
--enable-shared=3Dyes --enable-static=3Dyes</FONT>
<BR><FONT SIZE=3D2>using OpenSSL 0.9.6g from sunfreeware, statically =
(removed openssl's .so files during configure/make)</FONT>
<BR><FONT SIZE=3D2>using SNMPv3, with .snmp/snmp.conf:</FONT>
</P>

<P><FONT SIZE=3D2>defSecurityLevel authPriv</FONT>
<BR><FONT SIZE=3D2>defSecurityName rachael</FONT>
<BR><FONT SIZE=3D2>defAuthType MD5</FONT>
<BR><FONT SIZE=3D2>defAuthPassphrase XXXXX</FONT>
<BR><FONT SIZE=3D2>defPrivType DES</FONT>
<BR><FONT SIZE=3D2>defPrivPassphrase XXXXX</FONT>
</P>

<P><FONT SIZE=3D2>Thanks in advance for any help/advice...</FONT>
</P>

<P><FONT SIZE=3D2>--</FONT>
<BR><FONT SIZE=3D2>&quot;Computer science is as much about computers =
as</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; astronomy =
is about telescopes&quot; -- Edsger Dijkstra</FONT>
<BR><FONT =
SIZE=3D2>---------------------------------------------------------</FONT=
>
<BR><FONT SIZE=3D2>Anthony Tonns, UNIX Administrator - =
ato...@mail.ivillage.com</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C2B5F4.F8AE5EE0--


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Net-snmp-users mailing list
Net-snm...@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

eimanta...@gmail.com

unread,
Dec 5, 2016, 4:58:08 AM12/5/16
to
hello, have you found the solution?
0 new messages