You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: check-plugins/procs/README.md
+17-30Lines changed: 17 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,23 +4,9 @@
4
4
5
5
Prints the number of currently running processes and warns on metrics like process counts or process memory usage. You may filter the process list by process name, arguments and/or user name.
6
6
7
-
In output, process states are summarized like so:
8
-
9
-
| Reported Proc State | Description |
10
-
|---------------------|-------------|
11
-
| dead | X |
12
-
| paging | W |
13
-
| running | R |
14
-
| sleeping | I, S |
15
-
| stopped | t, T |
16
-
| uninterruptible | D |
17
-
| zombies | Z |
18
-
19
7
Hints:
20
8
21
-
* RSS aka "Resident Set Size" ("Res"): This is the non-swapped physical memory a process has used. On UNIX it matches "top"'s RES column. On Windows this is an alias for wset field and it matches "Mem Usage" column of `taskmgr.exe`.
22
-
* Be aware of the differences in memory counting between different tools like top, htop, glances, GNOME System Monitor etc.
23
-
* Memory counting also changed between different Linux Kernel versions.
9
+
* Memory: We count RSS, also known as 'Resident Set Size' or 'Res'. This is the amount of physical memory that a process has used that has not been swapped out. In UNIX, it matches the 'RES' column in 'top'. Note the differences in memory counting between tools such as 'top', 'htop', 'glances', 'GNOME System Monitor' and others. The way memory is counted also changes between different Linux kernel versions. On Windows, this is an alias for the wset field, matching the 'Mem Usage' column in taskmgr.exe.
24
10
25
11
26
12
## Fact Sheet
@@ -54,10 +40,11 @@ options:
54
40
-V, --version show program's version number and exit
55
41
--always-ok Always returns OK.
56
42
--argument ARGUMENT Filter: Search only for processes containing ARGUMENT
57
-
in the command, for example `-s` (case-insensitive).
43
+
in the command (case-insensitive), for example
44
+
`--verbose`
58
45
--command COMMAND Filter: Search only for processes starting with
59
-
COMMAND, for example `bash` (without path, case-
60
-
insensitive).
46
+
COMMAND(without path, case-insensitive), for example
47
+
`bash`
61
48
-c, --critical CRIT Threshold for the number of processes. Type: None or
Some process names in Python's psutil do not match the ones from `ps aux`. To get a list with all processes, their names and details from a Python point of view, do:
127
-
128
-
```python
129
-
(echo "import psutil"; echo "processes = psutil.process_iter()"; echo "for process in processes: print(process)") | python
130
-
```
131
-
132
-
133
111
## States
134
112
135
113
* WARN or CRIT depending on your parameters, or if no process can be found.
@@ -151,6 +129,15 @@ Some process names in Python's psutil do not match the ones from `ps aux`. To ge
151
129
| procs_zombies | Number | Number of zombie processes |
152
130
153
131
132
+
## Troubleshooting
133
+
134
+
How to get process names? Some process names in Python's psutil do not match the ones from `ps aux`. To get a list with all processes, their names and details from a Python point of view, do:
135
+
136
+
```python
137
+
(echo "import psutil"; echo "processes = psutil.process_iter()"; echo "for process in processes: print(process)") | python
0 commit comments