Home Directory Plugins System Metrics Memory Python Memory Check (psutil)

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Python Memory Check (psutil)

Current Version
1.0
Last Release Date
2015-10-06
Compatible With
  • Nagios 4.x
Owner
License
GPL
Hits
7714
Files:
FileDescription
README.TXTREADME
mem_check.pyPython script to check memory use
check_nrpe_mem_mem_check.phppnp4nagios template
Nagios CSP

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!
Python Memory Check (psutil)
Improved memory check using Python, specifically the psutil library.
A Python based memory check which leverages psutil and nrpe to return % used, buffered, cached, and total used memory metrics.

The first graph tracks the % of system used memory, and will by default warn at 85% and crit at 95%. You can adjust these with the -C/-W options when executing the script if desired.

The second graph is for historical data only, no alerts will be sent for any cached, buffered or total used value, as they are not always indicative of a server issue. Having the data historically graphed should help Systems Administrators make better resource decisions when considering upgrading or removing resources from a server.

Installation details included in README file. pnp4nagios template is included.

Written in Python 2.7.x. All print statements are in the Python 3.x friendly format of print('data'), which should allow this to run in Python 2 or 3. Not yet tested in Python 3, it may take some tweaking to work.