Date: Tue, 5 Jul 2005 21:57:17 +0100 From: "Vince" <jhary@unsane.co.uk> To: <Mathias@TeleCity.com> Cc: freebsd-net@freebsd.org Subject: RE: Free memory Message-ID: <200507052057.j65KvAYY099910@unsane.co.uk> In-Reply-To: <7DA012A4E4DA934FA17318A11F7547F5B9433D@LON3.tcy.prv>
next in thread | previous in thread | raw e-mail | index | archive | help
Heh well that will teach me to belive what I read on the web without testing it myself. I can repeat your results and cant realy give a reason other than getting memory information on freebsd seems to be a bit tricky (see sysctl vm.vmtotal for more confusion, I'm still not sure what That all realy means.) I do my memory monitoring localy (based on the scripts at http://www.ag0ny.com/graphs/) and just assumed that net-snmp would "just work". My best suggestion now would be to either ask on questions@ or on the net-snmp mailing lists. Vince > -----Original Message----- > From: owner-freebsd-net@freebsd.org > [mailto:owner-freebsd-net@freebsd.org] On Behalf Of > Mathias@TeleCity.com > Sent: 04 July 2005 10:33 > To: jhary@unsane.co.uk > Cc: freebsd-net@freebsd.org > Subject: RE: Free memory > > Forgot to mention: > > root@rs1# snmpd -v > > NET-SNMP version: 5.2.1 > Web: http://www.net-snmp.org/ > Email: net-snmp-coders@lists.sourceforge.net > > > -----Original Message----- > From: Mathias Kenfack-Tabakem (LON) > Sent: Monday, July 04, 2005 10:29 AM > To: 'vince' > Cc: freebsd-net@freebsd.org > Subject: RE: Free memory > > Thanks for your reply but It doesn't work. I am probably > doing something wrong; but not sure what. This is what I get: > > root@rs1# snmpwalk -v1 -c public localhost > .1.3.6.1.4.1.2021.4.11 UCD-SNMP-MIB::memTotalFree.0 = INTEGER: 36108 > > root@rs1# snmpwalk -v1 -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: 1022664 > UCD-SNMP-MIB::memAvailSwap.0 = INTEGER: 1022664 > UCD-SNMP-MIB::memTotalReal.0 = INTEGER: 442176 > UCD-SNMP-MIB::memAvailReal.0 = INTEGER: 20772 > UCD-SNMP-MIB::memTotalSwapTXT.0 = INTEGER: -1 > UCD-SNMP-MIB::memAvailSwapTXT.0 = INTEGER: -1 > UCD-SNMP-MIB::memTotalRealTXT.0 = INTEGER: -1 > UCD-SNMP-MIB::memAvailRealTXT.0 = INTEGER: -1 > UCD-SNMP-MIB::memTotalFree.0 = INTEGER: 36096 > UCD-SNMP-MIB::memMinimumSwap.0 = INTEGER: 16000 > UCD-SNMP-MIB::memShared.0 = INTEGER: 26072 > UCD-SNMP-MIB::memBuffer.0 = INTEGER: 61472 > UCD-SNMP-MIB::memCached.0 = INTEGER: 15324 > UCD-SNMP-MIB::memSwapError.0 = INTEGER: 0 > UCD-SNMP-MIB::memSwapErrorMsg.0 = STRING: > > root@rs1# dmesg | grep memory > real memory = 536805376 (511 MB) > avail memory = 515633152 (491 MB) > > Regards > Mathias, > > -----Original Message----- > From: vince [mailto:jhary@unsane.co.uk] > Sent: Friday, July 01, 2005 4:29 PM > To: Mathias Kenfack-Tabakem (LON) > Cc: freebsd-net@freebsd.org > Subject: Re: Free memory > > Mathias@TeleCity.com wrote: > > >Hi Guys, > > > >I am trying to find out what mib value I can use to get the free > memory. > >I am running FreeBSd5.4 on a pc compatible machine (FreeBSD > 5.4-RELEASE > >i386 GENERIC). MIB-2 gives me the total memory. I can get the free > >memory from a sun box using sun's mib(.1.3.6.1.4.1.2021.4.6.0) which > >does not work with standard pc box. Could anyone point me to > the right > >direction please? > > > > > > > If you are using net-snmp try this from > http://net-snmp.sourceforge.net/tutorial/tutorial-4/mrtg/ > > .1.3.6.1.4.1.2021.4.11.0 > > > > >Regards > >Mathias, > > > > > >_____________________________________________________________ > _________ > >DISCLAIMER > >This e-mail is intended only for the use of the addressees > named above > and may be confidential. If you are not an addressee you must > not use any information contained in nor copy it nor inform > any person other than TeleCity or the addressees of its > existence or contents. If you have received this e-mail in > error, please contact the TeleCity IT department on +44 (0) > 161 232 3220 or by email at techsupport@telecity.com. > Internet communications cannot be guaranteed 100% secure, you > should therefore take this potential lack of security into > consideration when emailing us as we do not accept legal > responsibility for the security of the contents of this or > other emails. > Whilst TeleCity take measures to prevent any virus > contamination of our computer systems, recipients of emails > should always ensure that they take their own precautions to > avoid virus contamination. > >_____________________________________________________________ > _________ > >_______________________________________________ > >freebsd-net@freebsd.org mailing list > >http://lists.freebsd.org/mailman/listinfo/freebsd-net > >To unsubscribe, send any mail to > "freebsd-net-unsubscribe@freebsd.org" > > > > > > > ______________________________________________________________________ > This footer denotes the email has been inbound scanned for Virus. > > ______________________________________________________________________ > > ______________________________________________________________________ > DISCLAIMER > This e-mail is intended only for the use of the addressees > named above and may be confidential. If you are not an > addressee you must not use any information contained in nor > copy it nor inform any person other than TeleCity or the > addressees of its existence or contents. If you have received > this e-mail in error, please contact the TeleCity IT > department on +44 (0) 161 232 3220 or by email at > techsupport@telecity.com. Internet communications cannot be > guaranteed 100% secure, you should therefore take this > potential lack of security into consideration when emailing > us as we do not accept legal responsibility for the security > of the contents of this or other emails. Whilst TeleCity take > measures to prevent any virus contamination of our computer > systems, recipients of emails should always ensure that they > take their own precautions to avoid virus contamination. > ______________________________________________________________________ > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200507052057.j65KvAYY099910>