@@ -20,8 +20,7 @@ With check_docker can use it to check and alert on
20
20
- container health checks are passing?
21
21
- uptime, i.e. is it able to stay running for a long enough time?
22
22
- the presence of a container or containers matching specified names
23
- - image version (experimental!), does the running image match that in
24
- the remote registry?
23
+ - image version, does the running image match that in the remote registry?
25
24
26
25
With check_swarm you can alert
27
26
@@ -39,45 +38,55 @@ check_docker Usage
39
38
40
39
::
41
40
42
- usage: check_docker [-h]
43
- [--connection [/<path to>/docker.socket|<ip/host address>:<port>]
44
- | --secure-connection [<ip/host address>:<port>]]
45
- [--timeout TIMEOUT]
46
- [--containers CONTAINERS [CONTAINERS ...]] [--present]
47
- [--cpu WARN:CRIT] [--memory WARN:CRIT:UNITS]
48
- [--status STATUS] [--health] [--uptime WARN:CRIT]
49
- [--version] [--restarts WARN:CRIT]
50
-
51
- Check docker containers.
52
-
53
- optional arguments:
54
- -h, --help show this help message and exit
55
- --connection [/<path to>/docker.socket|<ip/host address>:<port>]
56
- Where to find docker daemon socket. (default:
57
- /var/run/docker.sock)
58
- --secure-connection [<ip/host address>:<port>]
59
- Where to find TLS protected docker daemon socket.
60
- --timeout TIMEOUT Connection timeout in seconds. (default: 10.0)
61
- --containers CONTAINERS [CONTAINERS ...]
62
- One or more RegEx that match the names of the
63
- container(s) to check. If omitted all containers are
64
- checked. (default: ['all'])
65
- --present Modifies --containers so that each RegEx must match at
66
- least one container.
67
- --cpu WARN:CRIT Check cpu usage percentage taking into account any
68
- limits. Valid values are 0 - 100.
69
- --memory WARN:CRIT:UNITS
70
- Check memory usage taking into account any limits.
71
- Valid values for units are %,b,k,m,g.
72
- --status STATUS Desired container status (running, exited, etc).
73
- (default: None)
74
- --health Check container's health check status
75
- --uptime WARN:CRIT Minimum container uptime in seconds. Use when
76
- infrequent crashes are tolerated.
77
- --version Check if the running images are the same version as
78
- those in the registry. Useful for finding stale
79
- images. Only works with public registry.
80
- --restarts WARN:CRIT Container restart thresholds.
41
+ usage: check_docker [-h]
42
+ [--connection [/<path to>/docker.socket|<ip/host address>:<port>]
43
+ | --secure-connection [<ip/host address>:<port>]]
44
+ [--binary_units | --decimal_units] [--timeout TIMEOUT]
45
+ [--containers CONTAINERS [CONTAINERS ...]] [--present]
46
+ [--cpu WARN:CRIT] [--memory WARN:CRIT:UNITS]
47
+ [--status STATUS] [--health] [--uptime WARN:CRIT]
48
+ [--version]
49
+ [--insecure-registries INSECURE_REGISTRIES [INSECURE_REGISTRIES ...]]
50
+ [--restarts WARN:CRIT]
51
+
52
+ Check docker containers.
53
+
54
+ optional arguments:
55
+ -h, --help show this help message and exit
56
+ --connection [/<path to>/docker.socket|<ip/host address>:<port>]
57
+ Where to find docker daemon socket. (default:
58
+ /var/run/docker.sock)
59
+ --secure-connection [<ip/host address>:<port>]
60
+ Where to find TLS protected docker daemon socket.
61
+ --binary_units Use a base of 1024 when doing calculations of KB, MB,
62
+ GB, & TB (This is default)
63
+ --decimal_units Use a base of 1000 when doing calculations of KB, MB,
64
+ GB, & TB
65
+ --timeout TIMEOUT Connection timeout in seconds. (default: 10.0)
66
+ --containers CONTAINERS [CONTAINERS ...]
67
+ One or more RegEx that match the names of the
68
+ container(s) to check. If omitted all containers are
69
+ checked. (default: ['all'])
70
+ --present Modifies --containers so that each RegEx must match at
71
+ least one container.
72
+ --cpu WARN:CRIT Check cpu usage percentage taking into account any
73
+ limits. Valid values are 0 - 100.
74
+ --memory WARN:CRIT:UNITS
75
+ Check memory usage taking into account any limits.
76
+ Valid values for units are %,B,KB,MB,GB.
77
+ --status STATUS Desired container status (running, exited, etc).
78
+ (default: None)
79
+ --health Check container's health check status
80
+ --uptime WARN:CRIT Minimum container uptime in seconds. Use when
81
+ infrequent crashes are tolerated.
82
+ --version Check if the running images are the same version as
83
+ those in the registry. Useful for finding stale
84
+ images. Does not support login.
85
+ --insecure-registries INSECURE_REGISTRIES [INSECURE_REGISTRIES ...]
86
+ List of registries to connect to with http(no TLS).
87
+ Useful when using "--version" with images from
88
+ insecure registries.
89
+ --restarts WARN:CRIT Container restart thresholds.
81
90
82
91
check_swarm Usage
83
92
-----------------
0 commit comments