forked from trombik/check_vm_swap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
54 lines (41 loc) · 2.15 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
NAME
check_vm_swap - A Nagios plugin to check swap in/out operations
activities
SYNOPSIS
check_vm_swap --warning w --critical c [-v]
DESCRIPTION
check_vm_swap checks swap activities. it does NOT check total amount of
available swap storage. As long as kernel has enough swap space,
swapping is not a problem. Mordern kernel rarely swap process. Even if
it does, it's OK if the swapped process is idling. However, many
swapping activity is almost always a problem. check_swap from Nagios
plugins just checks how much swap space is available and screams when
swap is used. If swapped process has been idle for a while and other
processes need memory, it's okay. That's what kernel is supposed to do.
I needed a plugin to check how often kernel swap-in/out process.
by default, it monitors how often kernel swaps in/out. paging in/out is
also supported.
OPTIONS
--warning, -w, --critical, -c
per-five-minutes thresholds for swap operation.
--type TYPE
What VM activity to monitor, "swap" or "page", default is swap.
--statedir /path/to/directoy
Where state file is written (/var/spool/nagios/plugins). The user
needs write perimission.
SEE ALSO
check_swap, if you really want to monitor how much swap space left.
AUTHOR
Tomoyuki Sakurai <tomoyukis@reallyenglish.com>
LICENSE
Copyright (c) 2012 Tomoyuki Sakurai <tomoyukis@reallyenglish.com>
Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.