Posts

Showing posts with the label monitor

How to monitor server memory usage with Nagios Remote Plugin Executor (NRPE)

This article was originally written for xmodulo . In a  previous tutorial , we have seen how we can set up Nagios Remote Plugin Executor (NRPE) in an existing Nagios setup. However, the scripts and plugins needed to monitor memory usage do not come with stock Nagios. In this tutorial, we will see how we can configure NRPE to monitor RAM usage of a remote server. The script that we will use for monitoring RAM is available at  Nagios Exchange , as well as the creators'  Github repository . Assuming that NRPE has already been set up, we start the process by downloading the script in the server that we want to monitor. Preparing Remote Servers On Debain/Ubuntu: # cd /usr/lib/nagios/plugins/ # wget https://raw.githubusercontent.com/justintime/nagios-plugins/master/check_mem/check_mem.pl # mv check_mem.pl check_mem # chmod +x check_mem On RHEL/CentOS: # cd /usr/lib64/nagios/plugins/ (or /usr/lib/nagios/plugins/ for 32-bit) # wget https://raw.githubusercontent.c...