

The frequency of your observations is also quite important - for example if you read every 5 minutes you could miss a huge spike in your app. I usually use HOST_MIB's hrStorageUsed and hrStorageSize to perform these calculations (you just need to work out what the instance's RAM OID is - look at the index).

Buffers will be freed on close (unless a bug exists.) What you want to know, failure or performance degradation or both?īTW, cache will be freed to satisfy app requests. Performance will suffer but the system will not FAIL. Should we alert? The system will (probably) swap but not FAIL.
FREE SNMP TRAP RECEIVER CENTOS 7 FREE
Our current observation indicates we have 190MB of RAM free (including buffers if you are that concerned), but our swap space is 50GB and only 10% used. We also "know" that other processes grab (say) between 9 and 100KB around the same time. For example at 08h00 every day we "know" (based on past observation) 200MB of RAM is "grabbed" by a process for (say) 2 minutes. What you can do is watch for change over time and then attempt to predict a future consumption based on previous observations. You'll never get a 100% accurate picture of RAM as it is by nature changeable.Īt best you can ask for a "snapshot" at this point in time. Now I'm testing on an environment that uses (net-snmp-5.7.86_64) but I have also tested it in a fully patched server. Or to use by any means the values returned by sar commands ? (kbcommit, %commit) Monitor -r 60 MymemValue (memTotalFree - memBuffer - memCached) > 2000000 Is there any possibility to add/subtract values in monitor command of /etc/snmp/nf (or to use variables) ? I mean something like that: I think that the best metric to be checked would be the following:Ģ. UCD-SNMP-MIB mib includes several different metrics that can be used (memAvailReal,memAvailSwap,memTotalreal) but I think none of them is absolutely indicative of the memory state (as the system uses as much memory as it can also for cache and buffers). I need to send SNMP traps to a remote server when memory is on critical state. I would like your help about the configuration of SNMP Traps regarding free memory.
