Check leak

Version 2 (Laurent Defert, 11/14/2009 11:04 pm)

1 2 Laurent Defert
h1. Overview
2 1
3 2 Laurent Defert
check_leak is a "Nagios":http://www.nagios.org/ plugin in Perl, that monitors process memory usage. It emits warnings before the system is overloaded
4 1
5 2 Laurent Defert
h1. Getting the source code
6 2 Laurent Defert
7 2 Laurent Defert
Download the source on the git repository with the command:
8 2 Laurent Defert
9 2 Laurent Defert
<pre>
10 2 Laurent Defert
git clone git://piggledy.org/check_leak
11 2 Laurent Defert
</pre>
12 2 Laurent Defert
13 1
h1. Documentation
14 1
15 1
Arguments:
16 2 Laurent Defert
<pre>
17 2 Laurent Defert
Syntax:
18 2 Laurent Defert
19 2 Laurent Defert
	check_leak -a
20 2 Laurent Defert
	check_leak -m <mem> -w <warning time> -c <critical time>
21 2 Laurent Defert
	
22 2 Laurent Defert
	Options:
23 2 Laurent Defert
	-a		Show all leaking processes
24 2 Laurent Defert
	-m		Memory limit of the system in Mo
25 2 Laurent Defert
	-w		Time to emit a warning notification in hours before the used memory reaches the memory limit
26 2 Laurent Defert
	-c		Time to emit a critical notification in hours before the used memory reaches the memory limit
27 2 Laurent Defert
</pre>
28 2 Laurent Defert
29 2 Laurent Defert
In order to predict when the system will be totally overloaded, check_leak keeps track of memory consumption information in a file in /tmp/cheak_leak_data.