Home Directory Plugins Operating Systems Linux check_usolved_linux_realmemory - Check the real memory usage

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

check_usolved_linux_realmemory - Check the real memory usage

Rating
0 votes
Favoured:
0
Current Version
1.0
Last Release Date
2014-11-28
Compatible With
  • Nagios 3.x
License
GPL
Hits
13278
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!
This PHP Nagios plugin calculates the real free memory according to http://www.linuxatemyram.com/. When you think that your Linux memory is always near to 100% consumed, that is properly not true. Linux calculates the free memory in a special way. This plugin tries to get the memory that is really still free to use.

The plugin also returns performance data.
You can download the latest version and see the full documentation on GitHub.

----------------------------------------------------------

INSTALLATION:

Just copy the file check_usolved_linux_realmemory.php into your Nagios plugin directory. For example into the path /usr/local/nagios/libexec/

Give check_usolved_linux_realmemory.php the permission for execution for the nagios user. If you have at least PHP 5 this plugin should run out-of-the-box.

Make sure to have the PHP SNMP module installed and enabled in your php.ini.

> apt-get install php5-snmp (Ubuntu, Debian, ...)
or
> yum install php-snmp (RedHat, CentOS, ...)

----------------------------------------------------------

USAGE:

If you are in the Nagios plugin directory execute this command:


./check_usolved_linux_realmemory.php -H localhost -C public -w 90 -c 95
This should output something like this:


OK - 18.8% Memory used (1119 MB of 5962 MB), 0% Swap used (0 MB of 7807 MB)
Here are all arguments that can be used with this plugin:


----------------------------------------------------------

ARGUMENTS:
-H (host address)
Give the host address with the IP address or FQDN

-C (snmp community)
Give the SNMP Community String

-w (warn)
Warning treshold in percent

-c (crit)
Critical treshold in percent

[-V (snmp version)]
Optional: SNMP version 1 or 2c are supported, if argument not given version 1 is used by default

[-P (perfdata)]
Optional: Give 'yes' as argument if you wish performace data output

[-S (swap)]
Optional: Give 'no' as argument if you don't wish to return critical if swap is being used