check_systemd 4.0.0__tar.gz → 4.1.1__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: check_systemd
3
- Version: 4.0.0
3
+ Version: 4.1.1
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
@@ -20,6 +20,7 @@ Classifier: Programming Language :: Python :: 3.9
20
20
  Classifier: Programming Language :: Python :: 3.10
21
21
  Classifier: Programming Language :: Python :: 3.11
22
22
  Classifier: Programming Language :: Python :: 3.12
23
+ Classifier: Programming Language :: Python :: 3.13
23
24
  Classifier: Topic :: System :: Networking :: Monitoring
24
25
  Requires-Dist: nagiosplugin (>=1.2,<2.0)
25
26
  Project-URL: Repository, https://github.com/Josef-Friedrich/check_systemd
@@ -85,18 +86,26 @@ Packages
85
86
  (`package <https://packages.fedoraproject.org/pkgs/nagios-plugins-systemd/nagios-plugins-systemd/>`__,
86
87
  `source code <https://src.fedoraproject.org/rpms/nagios-plugins-systemd>`__):
87
88
  ``dnf install nagios-plugins-systemd``
89
+ - OracleLinux9 / RHEL9
90
+ (`package <https://gitlab.com/msfgitlab/check_systemd_build_rpm/-/jobs/artifacts/main/raw/output/check_systemd-1.0-1.x86_64.rpm?job=release_rpm>`__,
91
+ `source code <https://gitlab.com/msfgitlab/check_systemd_build_rpm>`__,
92
+ `binary <https://gitlab.com/msfgitlab/check_systemd_build_rpm/-/jobs/artifacts/main/raw/output/check_systemd?job=release_rpm>`__):
93
+ This package includes one single binary compiled with the Python compiler Nuitka, including all dependencies.
94
+ The package is built via GitLab CI as a nightly release and is considered experimental.
95
+ ``curl -L -o check_systemd-1.0-1.x86_64.rpm "https://gitlab.com/msfgitlab/check_systemd_build_rpm/-/jobs/artifacts/main/raw/output/check_systemd-1.0-1.x86_64.rpm?job=release_rpm" && sudo dnf install -y ./check_systemd-1.0-1.x86_64.rpm``
88
96
 
89
97
  Command line interface
90
98
  ----------------------
91
99
 
92
100
  ::
93
101
 
94
- usage: check_systemd [-h] [-v] [-V] [-i] [-I REGEXP] [-u UNIT_NAME]
102
+ usage: check_systemd [-h] [-v] [-d] [-V] [-i] [-I REGEXP] [-u UNIT_NAME]
95
103
  [--include-type UNIT_TYPE [UNIT_TYPE ...]] [-e REGEXP]
96
104
  [--exclude-unit UNIT_NAME [UNIT_NAME ...]]
97
- [--exclude-type UNIT_TYPE] [--required REQUIRED_STATE] [-t]
98
- [-W SECONDS] [-C SECONDS] [-n] [-w SECONDS] [-c SECONDS]
99
- [--dbus | --cli] [--user] [-P | -p]
105
+ [--exclude-type UNIT_TYPE]
106
+ [--state {active,reloading,inactive,failed,activating,deactivating}]
107
+ [-t] [-W SECONDS] [-C SECONDS] [-n] [-w SECONDS]
108
+ [-c SECONDS] [--dbus | --cli] [--user] [-P | -p]
100
109
 
101
110
  Copyright (c) 2014-18 Andrea Briganti <kbytesys@gmail.com>
102
111
  Copyright (c) 2019-24 Josef Friedrich <josef@friedrich.rocks>
@@ -106,6 +115,8 @@ Command line interface
106
115
  options:
107
116
  -h, --help show this help message and exit
108
117
  -v, --verbose Increase output verbosity (use up to 3 times).
118
+ -d, --debug Increase debug verbosity (use up to 2 times): -d: info
119
+ -dd: debug.
109
120
  -V, --version show program's version number and exit
110
121
 
111
122
  Options related to unit selection:
@@ -142,9 +153,9 @@ Command line interface
142
153
  Name of the systemd unit that is being tested.
143
154
  --exclude-type UNIT_TYPE
144
155
  One or more unit types (for example: 'service', 'timer')
145
- --required REQUIRED_STATE
146
- Set the state that the systemd unit must have (for
147
- example: active, inactive)
156
+ --state {active,reloading,inactive,failed,activating,deactivating}, --required {active,reloading,inactive,failed,activating,deactivating}, --expected-state {active,reloading,inactive,failed,activating,deactivating}
157
+ Specify the active state that the systemd unit must have
158
+ (for example: active, inactive)
148
159
 
149
160
  Timers related options:
150
161
  -t, --timers, --dead-timers
@@ -188,10 +199,12 @@ Command line interface
188
199
  --user Also show user (systemctl --user) units.
189
200
 
190
201
  Performance data:
202
+ By default performance data is attached.
203
+
191
204
  -P, --performance-data
192
- Attach no performance data to the plugin output.
193
- -p, --no-performance-data
194
205
  Attach performance data to the plugin output.
206
+ -p, --no-performance-data
207
+ Attach no performance data to the plugin output.
195
208
 
196
209
  Performance data:
197
210
  - count_units
@@ -213,6 +226,33 @@ Project pages
213
226
  Behind the scenes
214
227
  -----------------
215
228
 
229
+ dbus
230
+ ^^^^
231
+
232
+ - ``gi``: Python 3 bindings for gobject-introspection libraries
233
+ GObject is an abstraction layer that allows programming with an object
234
+ paradigm that is compatible with many languages. It is a part of Glib,
235
+ the core library used to build GTK+ and GNOME.
236
+ `Website <https://gnome.pages.gitlab.gnome.org/pygobject/index.html>`__
237
+ `Repo <https://gitlab.gnome.org/GNOME/pygobject>`__
238
+ `PyPI (PyGObject) <https://pypi.org/project/PyGObject/>`__
239
+ `Stubs <https://pypi.org/project/PyGObject-stubs/>`__
240
+ `Ubuntu (python3-gi) <https://packages.ubuntu.com/search?keywords=python3-gi>`__
241
+ `Debian (python3-gi) <https://packages.debian.org/search?keywords=python3-gi>`__
242
+
243
+ - ``dbus``: simple interprocess messaging system (Python 3 interface)
244
+ D-Bus is a message bus, used for sending messages between applications.
245
+ Conceptually, it fits somewhere in between raw sockets and CORBA in
246
+ terms of complexity.
247
+ `Website <https://www.freedesktop.org/wiki/Software/dbus/>`__
248
+ `Repo <https://gitlab.freedesktop.org/dbus/dbus-python>`__
249
+ `PyPI (dbus-python) <https://pypi.org/project/dbus-python/>`__
250
+ `Ubuntu (python3-dbus) <https://packages.ubuntu.com/search?keywords=python3-dbus>`__
251
+ `Debian (python3-dbus) <https://packages.debian.org/search?keywords=python3-dbus>`__
252
+
253
+ Command line interface (cli) parsing:
254
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
255
+
216
256
  To detect failed units this monitoring script runs:
217
257
 
218
258
  .. code:: sh
@@ -58,18 +58,26 @@ Packages
58
58
  (`package <https://packages.fedoraproject.org/pkgs/nagios-plugins-systemd/nagios-plugins-systemd/>`__,
59
59
  `source code <https://src.fedoraproject.org/rpms/nagios-plugins-systemd>`__):
60
60
  ``dnf install nagios-plugins-systemd``
61
+ - OracleLinux9 / RHEL9
62
+ (`package <https://gitlab.com/msfgitlab/check_systemd_build_rpm/-/jobs/artifacts/main/raw/output/check_systemd-1.0-1.x86_64.rpm?job=release_rpm>`__,
63
+ `source code <https://gitlab.com/msfgitlab/check_systemd_build_rpm>`__,
64
+ `binary <https://gitlab.com/msfgitlab/check_systemd_build_rpm/-/jobs/artifacts/main/raw/output/check_systemd?job=release_rpm>`__):
65
+ This package includes one single binary compiled with the Python compiler Nuitka, including all dependencies.
66
+ The package is built via GitLab CI as a nightly release and is considered experimental.
67
+ ``curl -L -o check_systemd-1.0-1.x86_64.rpm "https://gitlab.com/msfgitlab/check_systemd_build_rpm/-/jobs/artifacts/main/raw/output/check_systemd-1.0-1.x86_64.rpm?job=release_rpm" && sudo dnf install -y ./check_systemd-1.0-1.x86_64.rpm``
61
68
 
62
69
  Command line interface
63
70
  ----------------------
64
71
 
65
72
  ::
66
73
 
67
- usage: check_systemd [-h] [-v] [-V] [-i] [-I REGEXP] [-u UNIT_NAME]
74
+ usage: check_systemd [-h] [-v] [-d] [-V] [-i] [-I REGEXP] [-u UNIT_NAME]
68
75
  [--include-type UNIT_TYPE [UNIT_TYPE ...]] [-e REGEXP]
69
76
  [--exclude-unit UNIT_NAME [UNIT_NAME ...]]
70
- [--exclude-type UNIT_TYPE] [--required REQUIRED_STATE] [-t]
71
- [-W SECONDS] [-C SECONDS] [-n] [-w SECONDS] [-c SECONDS]
72
- [--dbus | --cli] [--user] [-P | -p]
77
+ [--exclude-type UNIT_TYPE]
78
+ [--state {active,reloading,inactive,failed,activating,deactivating}]
79
+ [-t] [-W SECONDS] [-C SECONDS] [-n] [-w SECONDS]
80
+ [-c SECONDS] [--dbus | --cli] [--user] [-P | -p]
73
81
 
74
82
  Copyright (c) 2014-18 Andrea Briganti <kbytesys@gmail.com>
75
83
  Copyright (c) 2019-24 Josef Friedrich <josef@friedrich.rocks>
@@ -79,6 +87,8 @@ Command line interface
79
87
  options:
80
88
  -h, --help show this help message and exit
81
89
  -v, --verbose Increase output verbosity (use up to 3 times).
90
+ -d, --debug Increase debug verbosity (use up to 2 times): -d: info
91
+ -dd: debug.
82
92
  -V, --version show program's version number and exit
83
93
 
84
94
  Options related to unit selection:
@@ -115,9 +125,9 @@ Command line interface
115
125
  Name of the systemd unit that is being tested.
116
126
  --exclude-type UNIT_TYPE
117
127
  One or more unit types (for example: 'service', 'timer')
118
- --required REQUIRED_STATE
119
- Set the state that the systemd unit must have (for
120
- example: active, inactive)
128
+ --state {active,reloading,inactive,failed,activating,deactivating}, --required {active,reloading,inactive,failed,activating,deactivating}, --expected-state {active,reloading,inactive,failed,activating,deactivating}
129
+ Specify the active state that the systemd unit must have
130
+ (for example: active, inactive)
121
131
 
122
132
  Timers related options:
123
133
  -t, --timers, --dead-timers
@@ -161,10 +171,12 @@ Command line interface
161
171
  --user Also show user (systemctl --user) units.
162
172
 
163
173
  Performance data:
174
+ By default performance data is attached.
175
+
164
176
  -P, --performance-data
165
- Attach no performance data to the plugin output.
166
- -p, --no-performance-data
167
177
  Attach performance data to the plugin output.
178
+ -p, --no-performance-data
179
+ Attach no performance data to the plugin output.
168
180
 
169
181
  Performance data:
170
182
  - count_units
@@ -186,6 +198,33 @@ Project pages
186
198
  Behind the scenes
187
199
  -----------------
188
200
 
201
+ dbus
202
+ ^^^^
203
+
204
+ - ``gi``: Python 3 bindings for gobject-introspection libraries
205
+ GObject is an abstraction layer that allows programming with an object
206
+ paradigm that is compatible with many languages. It is a part of Glib,
207
+ the core library used to build GTK+ and GNOME.
208
+ `Website <https://gnome.pages.gitlab.gnome.org/pygobject/index.html>`__
209
+ `Repo <https://gitlab.gnome.org/GNOME/pygobject>`__
210
+ `PyPI (PyGObject) <https://pypi.org/project/PyGObject/>`__
211
+ `Stubs <https://pypi.org/project/PyGObject-stubs/>`__
212
+ `Ubuntu (python3-gi) <https://packages.ubuntu.com/search?keywords=python3-gi>`__
213
+ `Debian (python3-gi) <https://packages.debian.org/search?keywords=python3-gi>`__
214
+
215
+ - ``dbus``: simple interprocess messaging system (Python 3 interface)
216
+ D-Bus is a message bus, used for sending messages between applications.
217
+ Conceptually, it fits somewhere in between raw sockets and CORBA in
218
+ terms of complexity.
219
+ `Website <https://www.freedesktop.org/wiki/Software/dbus/>`__
220
+ `Repo <https://gitlab.freedesktop.org/dbus/dbus-python>`__
221
+ `PyPI (dbus-python) <https://pypi.org/project/dbus-python/>`__
222
+ `Ubuntu (python3-dbus) <https://packages.ubuntu.com/search?keywords=python3-dbus>`__
223
+ `Debian (python3-dbus) <https://packages.debian.org/search?keywords=python3-dbus>`__
224
+
225
+ Command line interface (cli) parsing:
226
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
227
+
189
228
  To detect failed units this monitoring script runs:
190
229
 
191
230
  .. code:: sh