Use check_mem to monitor memory RAM usage on Linux - Nagios Icinga

Overview

If you are using nagios or icinga one plugin that you wish comes along with nagios plugins package is the one to monitor the memory or RAM on the Linux box. Nagios provides a check_swap plugin to monitor swap memory but ideally you should be monitoring RAM as well. In our production environment we wanted to monitor RAM usage along with swap, so I began looking for such a plugin and came across one written by a guy Jason Hancock.

Use check_mem to monitor memory RAM usage on Linux – Nagios Icinga

You need to have the check_mem binary on the server you are monitoring using nagios. This also assumes you have nrpe daemon installed and working on this machine, you can follow this guide if you wish to install nrpe.

You need to enable epel repo first. Click here to enable epel repository.

Next install the prerequisite for check_mem

On CentOS/RHEL

On Debian, Ubuntu

Clone the plugin and move the binary to the plugins directory

Append check_mem command to nagios.cfg file

On Nagios Server

Create the service definition. Edit commands.cfg

Append the following to it

Next define the service definition for memory

check mem 300x85 Use check mem to monitor memory RAM usage on Linux   Nagios Icinga