Home > nagios check > check_mem.pl error

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 # # The MIT License (MIT) # Copyright (c) 2011 justin@techadvise.com # Permission is hereby granted, free of charge, to any person obtaining a copy of this # software and associated documentation files (the "Software"), to deal in the Software # without restriction, including without limitation the rights to use, copy, modify, # merge, publish, distribute, https://github.com/justintime/nagios-plugins/blob/master/check_mem/check_mem.pl sublicense, and/or sell copies of the Software, and to # permit persons to whom the Software is furnished to do so, subject to the following conditions: # The above copyright notice and this permission notice shall be included in all copies # or substantial portions of the Software. # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, # INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR # PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE # FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT # OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR # OTHER DEALINGS IN THE SOFTWARE. # Tell Perl what we need to use use strict; use Getopt::Std; #TODO - Convert to Nagios::Plugin #TODO - Use an alarm # Predefined exit codes for Nagios use vars qw($opt_c $opt_f $opt_u $opt_w $opt_C $opt_v %exit_codes); %exit_codes = ('UNKNOWN' , 3, 'OK' , 0, 'WARNING' , 1, 'CRITICAL', 2, ); # Get our variables, do our checking: init(); # Get

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] [-c|--critical] [root@245557-web4 etc]# /usr/local/nagios/libexec/check_mem.sh -w 3 -c 4 /usr/local/nagios/libexec/check_mem.sh: line 59: machinfo: command not found (standard_in) nagios check memory 1: parse error (standard_in) 2: parse error (standard_in) 1: parse error (standard_in) 2: parse error (standard_in) 1: parse error (standard_in) 1: parse error /usr/local/nagios/libexec/check_mem.sh: line 119: [: 1%3: integer expression expected /usr/local/nagios/libexec/check_mem.sh: line 119: [: 2%3: integer expression expected /usr/local/nagios/libexec/check_mem.sh: line 119: [: 1%3: integer expression expected /usr/local/nagios/libexec/check_mem.sh: line 119: [: 2%3: integer expression expected /usr/local/nagios/libexec/check_mem.sh: line 119: [: 1%3: integer expression expected /usr/local/nagios/libexec/check_mem.sh: line 119: [: 2%3: integer expression expected /usr/local/nagios/libexec/check_mem.sh: line 119: [: 1%3: integer expression expected /usr/local/nagios/libexec/check_mem.sh: line 119: [: 2%3: integer expression expected /usr/local/nagios/libexec/check_mem.sh: line 119: [: 1%3: integer expression expected /usr/local/nagios/libexec/check_mem.sh: line 119: [: 2%3: integer expression expected OK - Memory usage: total: MB - used: MB(%) - free: MB(%);Top 5 Memory Processes(memKB,pname,pid): 138062 mysqld 2643, 80454 cvd 3169, 76292 httpd 19706, 76043 httpd 18358, 76043 httpd 16573|Memory usage=MB;;;0; nagios share|improve this question edited Mar 20 '13 at 7:54 jlopez 3,97522659 asked Mar 20 '13 at 7:51 Kalim Sayyed 615 Check the following one. –

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 /

 

Related content

centreon error card speed is null check command options

Centreon Error Card Speed Is Null Check Command Options table id toc tbody tr td div id toctitle Contents div ul li a href Nagios Check Interface a li li a href Nagios Check snmp a li ul td tr tbody table p register before you can post Vous devez vous inscrire avant de pouvoir cr er un sujet Announcement Collapse No announcement yet check centreon snmp traffic switch HP vlan Collapse X Collapse Posts Latest Activity Search relatedl Page of Filter Time All Time Today Last Week Last Month nagios interface monitoring Show All Discussions only Photos only Videos

check_centreon_snmp_traffic error cannot get snmp info

Check centreon snmp traffic Error Cannot Get Snmp Info table id toc tbody tr td div id toctitle Contents div ul li a href Unable To Write File tmp tmp nagios int a li li a href Nagios Check snmp a li ul td tr tbody table p p p Script check snmp int pl Last update May Description Checks by snmp v v c or v host interface state and usage Interfaces can be selected by relatedl regexp 'eth' will check eth eth eth If multiple interfaces are selected all must be up to get an OK result V

error description table integer length too long 5 bytes

Error Description Table Integer Length Too Long Bytes table id toc tbody tr td div id toctitle Contents div ul li a href Check snmp storage pl Exclude a li li a href Nagios Check Interface a li ul td tr tbody table p You have to register before you can post relatedl Vous devez vous inscrire avant de pouvoir nagios check snmp storage cr er un sujet Announcement Collapse No announcement yet ERROR when check snmp storage example getting CPU percentage use values ProcessorLoad Table INTEGER length t Collapse X Collapse Posts check snmp storage pl example Latest Activity

nagios check_http error

Nagios Check http Error table id toc tbody tr td div id toctitle Contents div ul li a href Nagios Check http Download a li li a href Nagios Check Url a li li a href Nagios Check http String a li ul td tr tbody table p c - Monitoring Plugins Development Team devel monitoring-plugins org This plugin tests the HTTP service on the specified host It can test normal http and secure https servers follow redirects search for strings and relatedl regular expressions check connection times and report on certificate expiration nagios check http service example times Usage

nagios error card speed is null check command options

Nagios Error Card Speed Is Null Check Command Options table id toc tbody tr td div id toctitle Contents div ul li a href Nagios Check Interface a li li a href Nagios Check Network Traffic a li li a href Nagios Check snmp a li ul td tr tbody table p Script check snmp int pl Last update May Description Checks by snmp v relatedl v c or v host interface state and usage nagios interface monitoring Interfaces can be selected by regexp 'eth' will check eth eth p h id Nagios Check Interface p eth If multiple interfaces

nagios check_ radius auth error

Nagios Check Radius Auth Error table id toc tbody tr td div id toctitle Contents div ul li a href Nagios Radius Authentication a li ul td tr tbody table p how Nagios can help your organization Register Now Contact Us Phone - -NAGIOS- Email sales nagios com Login Username Password Remember relatedl Me Create an account Forgot your username Forgot nagios check radius your password RSS Feeds New Listings Updated Listings Directory Quicklinks Home All p h id Nagios Radius Authentication p Categories Add Listing New Listings Recently Updated Listings Most Favoured Listings Featured Listing Most Popular Listings Most