Memory

check_snmp_memory.pl

Description:

This plugin provides unix memory statistics data from NetSNMP and calculates amount and percent of used memory and free memory, as well amounts and percent of used system, user, buffer, cache. SWAP memory in use is also returned. All data retrieved can be used for CRITICAL and WARNING alert conditions or can be graphed with templates available for nagiosgrapher and pnp4nagios.

Current Version

0.2

Last Release Date

2012-01-09

Compatible With

  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios XI
  • Nagios Fusion

License

GPL


Project Files
Project Photos
Project Notes
This plugin provides memory statistics data from NetSNMP and calculates percentage of used data based on amount of system/user memory as opposed to also including buffer/cache by default as other plugins do (which is a problem for heavily used servers where disk cache would end up using all unused memory). The returned data are: total_free - Total free memory in MB, total_real - Total real memory on a system, avail_real - Free real memory total_swap - Total swap avail_swap - Free swap memory shared - In use shared memory (should be 0 on > 2.4 linux kernel) buffer - In use buffer memory cached - In use disk cache memory total - Total memory on the system, real + swap used_swap - Swap memory in use %avail_real - Percent of available real memory %used_real - Percent of real memory in use %avail_swap - Percent of swap memory available %used_swap - Percent of swap memory in use user - Memory used by user (and system and kernel) processes %user_real - Percent memory used for user processes in relation to total real memory (can be >100%) %cached_real - Percent of user disk cache in relation to total real memory %buffer_real - Percent of buffer memory in relation to total real The plugin also serves as an example of using check_snmp_attributes plugin base library which does all the work where as plugin check_netsnmp_memory.pl file only defines RPL expressions used to calculate above from retrieved SNMP data. There are also pretty and quite useful graph templates available for nagiosgrapher and pnp4nagios for performance data returned by this plugin.
Reviews (3) Add a Review
Excellent!
by spicysomtam, August 31, 2015

Just works on centos6; I got the issue mentioned by another poster on ubuntu, so might be worth investigating. pnp4nagios template is good too. I used the example in the pl script. Make a change not to have to do alot of fiddling around to get it to work.



Nicely done
by Ffeijo, November 30, 2013

Does what it should, beautifully. Thanks for the good work, William.



A memory check that has many convenient options - over SNMP!
by levilovelock, May 31, 2012

Just want to say thanks for this. The basic snmp_mem commands aren't very convenient. They don't do the nice stuff like let you check warning/critical levels against the percentage you have free. Also your plugin includes swap information too, very cool. Didn't have any trouble installing and getting working, thankyou. I'll be looking into your other plugins and maybe even your graphing stuff too. Levi



Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
4.8 (5)
Favorites
2
Views
99,632