Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_snmp_memory.pl
0.2
2012-01-09
- Nagios 1.x
- Nagios 2.x
- Nagios 3.x
- Nagios XI
- Nagios Fusion
GPL
99547
File | Description |
---|---|
check_netsnmp_memory.pl | check_netsnmp_memory.pl - version 0.15 (Dec 2011) - 1st of 2 required files / use this if you have older system with 2.4 kernel |
check_netsnmp_memory.pl | check_snmp_memory.pl - version 0.2 (Jan 2012) - 1st of 2 required files |
check_snmp_attributes.pl | check_snmp_attributes.pl - version 0.32 (Dec 2011) - 2nd of 2 required files |
memoryutilization_statistics.ncfg | graphing template for nagiosgrapher |
check_snmp_memory_linux_015.php | graphing template for pnp4nagios for check_netsnmp_memory.pl v 0.15 |
check_snmp_memory_linux.php | graphing template for pnp4nagios for check_netsnmp_memory v.0.2 |
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
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.
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)
byspicysomtam, August 27, 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.
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.
Does what it should, beautifully. Thanks for the good work, William.
bylevilovelock, May 1, 2012
3 of 3 people found this review helpful
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
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