Giter Club home page Giter Club logo

linux-check-mem-nagios-plugin's Introduction

check_mem

Nagios plugin that measures Linux memory use as reported by the '/proc/meminfo' output.

A PNP4Nagios graph template is include to combine the figures on a single chart.

Sample Chart

This is plugin is based on one published on the Nagios Exchange by Lukasz Gogolin [email protected] This repo is a copy of version 1.1 released 2012-07-22 and modified by @whereisaaron. This version 1.4 has contributions by @whereisaaron, @DavidGoodwin, @eacmen.

The changes aim to improve performance (fewer forks) and the PNP4Nagios chart.

Sample install steps below are for CentOS 6.5 and assume you are using nagio with check_nrpe plugin, nrpe, and pnp4nagios.

  1. Install and configure nagios, nrpe, and the check_nrpe nagios plugin

  2. Install the files for this plugin and chart

cp check_mem.php /usr/share/nagios/html/pnp4nagios/templates/
cp check_mem /usr/lib64/nagios/plugins/
/sbin/restorecon -v /usr/lib64/nagios/plugins/check_mem
  1. Now add the command to NRPE configuration /etc/nagios/nrpe.config
command[check_mem]=/usr/lib64/nagios/plugins/check_mem -w 70 -c 90
  1. Reload NRPE
service nrpe reload
  1. Test manually
/usr/lib64/nagios/plugins/check_nrpe -H target.host.name -c check_mem
  1. Now go configure the service or service template in Nagios and use as required
	define service {
			name                            check-nrpe-linux-mem
			service_description             Check Linux memory
			use                             generic-service
			check_command                   check_nrpe!check_mem
			max_check_attempts              1
			check_interval                  5
			retry_interval                  1
			register                        0
	}

The pnp4nagios template name assumes you have pnp4nagios configured with CUSTOM_TEMPLATE = 1, if not you may need to change this filename so that it matches. If you find that you get multiple charts instead of one, the template name is probably not matching.

linux-check-mem-nagios-plugin's People

Contributors

davidgoodwin avatar whereisaaron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.