Linux

check_procmemtotal

Description:

The purpose of this program is to calculate totam memory usage for a set of processes.
Example can be tracking of a memory consumption for httpd apache processes. Those processes
are forked into many instances. Our program looks for every pid that corresponds with process name
and sum up a value of total memory that stays in /proc/[pid]/status|grep vmSize.
Plugin returns also performande data for stats.

Feel free to use and remember to send us a new version of that plugin if You modify it.
You will need :
perl -MCPAN -e ‘install Params::Validate’
perl -MCPAN -e ‘install Math::Calc::Units’
perl -MCPAN -e ‘install Class::Accessor::Fast’
perl -MCPAN -e ‘install Config::Tiny’

Usage example :

/opt/plugins/check_procmemtotal.pl -P http -c 800000000 -w 700000000 -i 0 -a 800000000

units are in bytes

This means that:

-c critical will be at 800mb

-w warning 700mb

-i minimal value at 0 – just to insert to the performance graph

-a maximal value at 800mb – also only for performance data

http://it.emca.pl

Current Version

1.0

Last Release Date

2011-01-07

Compatible With

  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios XI 2009R1

Owner

License

GPL


Project Photos
Project Notes
check_procmemtotal Check total memory for all forked processes Copyright (c) 2011 EM&CA S.A. Author: Artur Bicki < op5@emca.plAdres poczty elektronicznej jest chroniony przed robotami spamuj?cymi. W przegl?darce musi by? w??czona obs?uga JavaScript, ?eby go zobaczy?. > http://it.emca.pl For direct contact with any of our op5 developers send a mail to op5@emca.plAdres poczty elektronicznej jest chroniony przed robotami spamuj?cymi. W przegl?darce musi by? w??czona obs?uga JavaScript, ?eby go zobaczy?. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3 or, at your option, any later version, as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. The purpose of this program is to calculate totam memory usage for a set of processes. Example can be tracking of a memory consumption for httpd apache processes. Those processes are forked into many instances. Our program looks for every pid that corresponds with process name and sum up a value of total memory that stays in /proc/[pid]/status|grep vmSize. Plugin returns also performande data for stats. Feel free to use and remember to send us a new version of that plugin if You modify it. You will need : perl -MCPAN -e 'install Params::Validate' perl -MCPAN -e 'install Math::Calc::Units' perl -MCPAN -e 'install Class::Accessor::Fast' perl -MCPAN -e 'install Config::Tiny' Usage example : /opt/plugins/check_procmemtotal.pl -P http -c 800000000 -w 700000000 -i 0 -a 800000000 units are in bytes This means that: -c critical will be at 800mb -w warining 700mb -i minimal value at 0 - just to insert to the performance graph -a maximal value at 800mb - also only for performance data
Reviews (1) Add a Review
Excellent Stuff
by vishwa724, September 30, 2011

For quite a long time I was looking for such a plugin. I finally found it here and it saved me a lot of time that i would have to spent otherwise writing one myself.



Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
5 (1)
Favorites
0
Views
98,786