[Nagiosplug-devel] [ nagiosplug-New Plugins-975720 ] Monitors physical, swap, or total memory

SourceForge.net noreply at sourceforge.net
Fri Jun 18 19:12:04 CEST 2004


New Plugins item #975720, was opened at 2004-06-18 19:11
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=541465&aid=975720&group_id=29880

Category: Perl plugin
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Gary Danko (gdanko)
Assigned to: Nobody/Anonymous (nobody)
Summary: Monitors physical, swap, or total memory

Initial Comment:
This Perl plugin will monitor and report on physical,
swap, or total (physical + swap) memory.

Here's the info from the help switch:

The nagios plugins come with ABSOLUTELY NO WARRANTY.
You may redistribute
copies of the plugins under the terms of the GNU
General Public License.
For more information about these matters, see the file
named COPYING.
Copyright (c) 2004 Gary Danko

Perl Check Memory plugin for Nagios
Usage: check_memory -t [physical|swap|total] -w limit
-c limit
       check_memory [-v|--version]
       check_memory [-h|--help]

Required Arguments:
 -t, --type=[physical|swap|total]
   Measure either physical, swap, or total (physical +
swap) memory (Default: Total)
 -w, --warning=PERCENT
   Exit with WARNING status is less than PERCENT of
total memory is free (Default: 30%)
 -c, --critical=PERCENT
   Exit with CRITICAL status is less than PERCENT of
total memory is free (Default: 10%)

Example: check_memory --type=physical --warning=50
--critical=25

Send email to nagios-users at lists.sourceforge.net if you
have questions
regarding use of this software. To submit patches or
suggest improvements,
send email to nagiosplug-devel at lists.sourceforge.net


And the output is pretty simple:
[root at mandrake libexec]# ./check_memory
Total Memory OK: Total: 1558.06 MB - Used: 414.18 MB
(27%) - Free: 1143.88 MB (73%)

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=541465&aid=975720&group_id=29880




More information about the Devel mailing list