Check_mem.pl Error
Contents |
• All times are UTC - 6 hours [ DST ] Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Support Search GitHub This repository Watch 8 Star 65 Fork 51 justintime/nagios-plugins Code Issues 0 Pull requests 1 Projects 0 Pulse Graphs Permalink Branch: master Switch branches/tags nrpe: command 'check_mem' not defined Branches Tags master Nothing to show Nothing to show Find file Copy
Check_nrpe Memory
path nagios-plugins/check_mem/check_mem.pl 0915f75 Oct 30, 2015 berlincount add support for Darwin/MacOS X 4 contributors Users who have contributed to this nagios plugins file justintime justinellison Napsty berlincount Raw Blame History executable file 364 lines (332 sloc) 12.8 KB #!/usr/bin/perl -w # Heavily based on the script from: # check_mem.pl Copyright (C) 2000 Dan Larsson https://support.nagios.com/forum/viewtopic.php?f=7&t=34533
- # heavily modified by # Justin Ellison
here for a quick overview of the site Help Center Detailed answers to any questions you might http://stackoverflow.com/questions/15518050/nagios-plugins-error have Meta Discuss the workings and policies of this site http://xmodulo.com/monitor-server-memory-usage-nagios-remote-plugin-executor.html About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 nagios check million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Nagios plugins error up vote 0 down vote favorite [root@245557-web4 etc]# /usr/local/nagios/libexec/check_mem.sh --help Wrong Syntax: check_mem.sh --help Usage: check_mem.sh [-w|--warning]
updated on September 8, 2014 Authored by Sarmed Rahman 8 Comments 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.com/justintime/nagios-plugins/master/check_mem/check_mem.pl # mv check_mem.pl check_mem # chmod +x check_mem You can check whether the script generates output properly by manually running the following command on localhost. When used with NRPE, this command is supposed to check free memory, warn when free memory is less than 20%, and generate critical alarm when free memory is less than 10%. # ./check_mem -f -w 20 -c 10 OK - 34.0% (2735744 kB) free.|TOTAL=8035340KB;;;; USED=5299596KB;6428272;7231806;; FREE=2735744KB;;;; CACHES=2703504KB;;;; If you see something like the above as an output, that means the command is working okay. Now that the script is ready, we define the command to check RAM usage for NRPE. As mentioned before, the command will check free memory, warn when free memory is less than 20%, and generate critical alarm when free memory is less than 10%. # vim /