check_systemd 3.0.0__tar.gz → 3.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {check_systemd-3.0.0 → check_systemd-3.1.0}/PKG-INFO +27 -5
- {check_systemd-3.0.0 → check_systemd-3.1.0}/README.rst +26 -4
- {check_systemd-3.0.0 → check_systemd-3.1.0}/check_systemd.py +11 -1
- {check_systemd-3.0.0 → check_systemd-3.1.0}/pyproject.toml +1 -1
- {check_systemd-3.0.0 → check_systemd-3.1.0}/LICENSE +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: check_systemd
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.1.0
|
|
4
4
|
Summary: Nagios / Icinga monitoring plugin to check systemd for failed units.
|
|
5
5
|
Home-page: https://github.com/Josef-Friedrich/check_systemd
|
|
6
6
|
License: LGPL-2.1-only
|
|
@@ -50,28 +50,44 @@ Installation
|
|
|
50
50
|
|
|
51
51
|
::
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
pip install check_systemd
|
|
54
54
|
|
|
55
55
|
Packages
|
|
56
56
|
--------
|
|
57
57
|
|
|
58
|
+
``check_systemd`` on `repology.org <https://repology.org/project/check-systemd/related>`__.
|
|
59
|
+
|
|
60
|
+
- archlinux
|
|
61
|
+
(`package <https://aur.archlinux.org/packages/check_systemd>`__,
|
|
62
|
+
`source
|
|
63
|
+
code <https://aur.archlinux.org/check_systemd.git>`__):
|
|
64
|
+
``yaourt -S check_systemd``
|
|
65
|
+
- Ubuntu
|
|
66
|
+
(`package <https://packages.ubuntu.com/search?keywords=monitoring-plugins-systemd&searchon=names>`__,
|
|
67
|
+
`source
|
|
68
|
+
code <https://git.launchpad.net/ubuntu/+source/monitoring-plugins-systemd>`__):
|
|
69
|
+
``apt install monitoring-plugins-systemd``
|
|
58
70
|
- Debian
|
|
59
|
-
(`package <https://packages.debian.org/search?keywords=monitoring
|
|
71
|
+
(`package <https://packages.debian.org/search?keywords=monitoring-plugins-systemd>`__,
|
|
60
72
|
`source
|
|
61
73
|
code <https://salsa.debian.org/python-team/packages/monitoring-plugins-systemd/-/tree/debian/master/debian>`__):
|
|
62
|
-
|
|
74
|
+
``apt install monitoring-plugins-systemd``
|
|
63
75
|
- NixOS
|
|
64
76
|
(`package <https://search.nixos.org/packages?channel=unstable&query=check_systemd>`__,
|
|
65
77
|
`source
|
|
66
78
|
code <https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/servers/monitoring/nagios/plugins/check_systemd.nix>`__):
|
|
67
79
|
``nix-env -iA nixos.check_systemd``
|
|
80
|
+
- Fedora
|
|
81
|
+
(`package <https://packages.fedoraproject.org/pkgs/nagios-plugins-systemd/nagios-plugins-systemd/>`__,
|
|
82
|
+
`source code <https://src.fedoraproject.org/rpms/nagios-plugins-systemd>`__):
|
|
83
|
+
``dnf install nagios-plugins-systemd``
|
|
68
84
|
|
|
69
85
|
Command line interface
|
|
70
86
|
----------------------
|
|
71
87
|
|
|
72
88
|
::
|
|
73
89
|
|
|
74
|
-
usage: check_systemd [-h] [-v] [-V] [-I REGEXP] [-u UNIT_NAME]
|
|
90
|
+
usage: check_systemd [-h] [-v] [-V] [-i] [-I REGEXP] [-u UNIT_NAME]
|
|
75
91
|
[--include-type UNIT_TYPE [UNIT_TYPE ...]] [-e REGEXP]
|
|
76
92
|
[--exclude-unit UNIT_NAME [UNIT_NAME ...]]
|
|
77
93
|
[--exclude-type UNIT_TYPE] [--required REQUIRED_STATE] [-t]
|
|
@@ -92,6 +108,12 @@ Command line interface
|
|
|
92
108
|
By default all systemd units are checked. Use the option '-e' to exclude units
|
|
93
109
|
by a regular expression. Use the option '-u' to check only one unit.
|
|
94
110
|
|
|
111
|
+
-i, --ignore-inactive-state
|
|
112
|
+
Ignore an inactive state on a specific unit. Oneshot
|
|
113
|
+
services for example are only active while running and
|
|
114
|
+
not enabled. The rest of the time they are inactive.
|
|
115
|
+
This option has only an affect if it is used with the
|
|
116
|
+
option -u.
|
|
95
117
|
-I REGEXP, --include REGEXP
|
|
96
118
|
Include systemd units to the checks. This option can be
|
|
97
119
|
applied multiple times, for example: -I mnt-data.mount
|
|
@@ -23,28 +23,44 @@ Installation
|
|
|
23
23
|
|
|
24
24
|
::
|
|
25
25
|
|
|
26
|
-
|
|
26
|
+
pip install check_systemd
|
|
27
27
|
|
|
28
28
|
Packages
|
|
29
29
|
--------
|
|
30
30
|
|
|
31
|
+
``check_systemd`` on `repology.org <https://repology.org/project/check-systemd/related>`__.
|
|
32
|
+
|
|
33
|
+
- archlinux
|
|
34
|
+
(`package <https://aur.archlinux.org/packages/check_systemd>`__,
|
|
35
|
+
`source
|
|
36
|
+
code <https://aur.archlinux.org/check_systemd.git>`__):
|
|
37
|
+
``yaourt -S check_systemd``
|
|
38
|
+
- Ubuntu
|
|
39
|
+
(`package <https://packages.ubuntu.com/search?keywords=monitoring-plugins-systemd&searchon=names>`__,
|
|
40
|
+
`source
|
|
41
|
+
code <https://git.launchpad.net/ubuntu/+source/monitoring-plugins-systemd>`__):
|
|
42
|
+
``apt install monitoring-plugins-systemd``
|
|
31
43
|
- Debian
|
|
32
|
-
(`package <https://packages.debian.org/search?keywords=monitoring
|
|
44
|
+
(`package <https://packages.debian.org/search?keywords=monitoring-plugins-systemd>`__,
|
|
33
45
|
`source
|
|
34
46
|
code <https://salsa.debian.org/python-team/packages/monitoring-plugins-systemd/-/tree/debian/master/debian>`__):
|
|
35
|
-
|
|
47
|
+
``apt install monitoring-plugins-systemd``
|
|
36
48
|
- NixOS
|
|
37
49
|
(`package <https://search.nixos.org/packages?channel=unstable&query=check_systemd>`__,
|
|
38
50
|
`source
|
|
39
51
|
code <https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/servers/monitoring/nagios/plugins/check_systemd.nix>`__):
|
|
40
52
|
``nix-env -iA nixos.check_systemd``
|
|
53
|
+
- Fedora
|
|
54
|
+
(`package <https://packages.fedoraproject.org/pkgs/nagios-plugins-systemd/nagios-plugins-systemd/>`__,
|
|
55
|
+
`source code <https://src.fedoraproject.org/rpms/nagios-plugins-systemd>`__):
|
|
56
|
+
``dnf install nagios-plugins-systemd``
|
|
41
57
|
|
|
42
58
|
Command line interface
|
|
43
59
|
----------------------
|
|
44
60
|
|
|
45
61
|
::
|
|
46
62
|
|
|
47
|
-
usage: check_systemd [-h] [-v] [-V] [-I REGEXP] [-u UNIT_NAME]
|
|
63
|
+
usage: check_systemd [-h] [-v] [-V] [-i] [-I REGEXP] [-u UNIT_NAME]
|
|
48
64
|
[--include-type UNIT_TYPE [UNIT_TYPE ...]] [-e REGEXP]
|
|
49
65
|
[--exclude-unit UNIT_NAME [UNIT_NAME ...]]
|
|
50
66
|
[--exclude-type UNIT_TYPE] [--required REQUIRED_STATE] [-t]
|
|
@@ -65,6 +81,12 @@ Command line interface
|
|
|
65
81
|
By default all systemd units are checked. Use the option '-e' to exclude units
|
|
66
82
|
by a regular expression. Use the option '-u' to check only one unit.
|
|
67
83
|
|
|
84
|
+
-i, --ignore-inactive-state
|
|
85
|
+
Ignore an inactive state on a specific unit. Oneshot
|
|
86
|
+
services for example are only active while running and
|
|
87
|
+
not enabled. The rest of the time they are inactive.
|
|
88
|
+
This option has only an affect if it is used with the
|
|
89
|
+
option -u.
|
|
68
90
|
-I REGEXP, --include REGEXP
|
|
69
91
|
Include systemd units to the checks. This option can be
|
|
70
92
|
applied multiple times, for example: -I mnt-data.mount
|
|
@@ -77,7 +77,7 @@ except ImportError:
|
|
|
77
77
|
print("Failed to import the NagiosPlugin library.")
|
|
78
78
|
exit(3)
|
|
79
79
|
|
|
80
|
-
__version__: str = "3.
|
|
80
|
+
__version__: str = "3.1.0"
|
|
81
81
|
|
|
82
82
|
|
|
83
83
|
is_gi = True
|
|
@@ -1183,6 +1183,16 @@ def get_argparser():
|
|
|
1183
1183
|
"Use the option '-u' to check only one unit.",
|
|
1184
1184
|
)
|
|
1185
1185
|
|
|
1186
|
+
units.add_argument(
|
|
1187
|
+
"-i",
|
|
1188
|
+
"--ignore-inactive-state",
|
|
1189
|
+
action="store_true",
|
|
1190
|
+
help="Ignore an inactive state on a specific unit. Oneshot services "
|
|
1191
|
+
"for example are only active while running and not enabled. "
|
|
1192
|
+
"The rest of the time they are inactive. This option has only "
|
|
1193
|
+
"an affect if it is used with the option -u.",
|
|
1194
|
+
)
|
|
1195
|
+
|
|
1186
1196
|
units.add_argument(
|
|
1187
1197
|
"-I",
|
|
1188
1198
|
"--include",
|
|
File without changes
|