check_systemd 2.0.4__tar.gz → 2.0.6__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-2.0.4 → check_systemd-2.0.6}/PKG-INFO +3 -2
- {check_systemd-2.0.4 → check_systemd-2.0.6}/README.md +2 -1
- {check_systemd-2.0.4 → check_systemd-2.0.6}/check_systemd.egg-info/PKG-INFO +3 -2
- {check_systemd-2.0.4 → check_systemd-2.0.6}/check_systemd.py +7 -4
- {check_systemd-2.0.4 → check_systemd-2.0.6}/LICENSE +0 -0
- {check_systemd-2.0.4 → check_systemd-2.0.6}/MANIFEST.in +0 -0
- {check_systemd-2.0.4 → check_systemd-2.0.6}/check_systemd.egg-info/SOURCES.txt +0 -0
- {check_systemd-2.0.4 → check_systemd-2.0.6}/check_systemd.egg-info/dependency_links.txt +0 -0
- {check_systemd-2.0.4 → check_systemd-2.0.6}/check_systemd.egg-info/entry_points.txt +0 -0
- {check_systemd-2.0.4 → check_systemd-2.0.6}/check_systemd.egg-info/requires.txt +0 -0
- {check_systemd-2.0.4 → check_systemd-2.0.6}/check_systemd.egg-info/top_level.txt +0 -0
- {check_systemd-2.0.4 → check_systemd-2.0.6}/setup.cfg +0 -0
- {check_systemd-2.0.4 → check_systemd-2.0.6}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: check_systemd
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.6
|
|
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
|
Author: Josef Friedrich
|
|
@@ -13,7 +13,7 @@ Description: [](https
|
|
|
13
13
|
|
|
14
14
|
Nagios / Icinga monitoring plugin to check systemd for failed units.
|
|
15
15
|
|
|
16
|
-
This Python script will report a degraded system to Nagios /
|
|
16
|
+
This Python script will report a degraded system to Nagios / Icinga.
|
|
17
17
|
It requires only the nagiosplugin library.
|
|
18
18
|
|
|
19
19
|
You can also test a single service with -s parameter.
|
|
@@ -64,6 +64,7 @@ Description: [](https
|
|
|
64
64
|
|
|
65
65
|
* https://github.com/Josef-Friedrich/check_systemd
|
|
66
66
|
* https://exchange.icinga.com/joseffriedrich/check_systemd
|
|
67
|
+
* https://exchange.nagios.org/directory/Plugins/System-Metrics/Processes/check_systemd
|
|
67
68
|
|
|
68
69
|
## Testing
|
|
69
70
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
|
|
6
6
|
Nagios / Icinga monitoring plugin to check systemd for failed units.
|
|
7
7
|
|
|
8
|
-
This Python script will report a degraded system to Nagios /
|
|
8
|
+
This Python script will report a degraded system to Nagios / Icinga.
|
|
9
9
|
It requires only the nagiosplugin library.
|
|
10
10
|
|
|
11
11
|
You can also test a single service with -s parameter.
|
|
@@ -56,6 +56,7 @@ Performance data:
|
|
|
56
56
|
|
|
57
57
|
* https://github.com/Josef-Friedrich/check_systemd
|
|
58
58
|
* https://exchange.icinga.com/joseffriedrich/check_systemd
|
|
59
|
+
* https://exchange.nagios.org/directory/Plugins/System-Metrics/Processes/check_systemd
|
|
59
60
|
|
|
60
61
|
## Testing
|
|
61
62
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: check-systemd
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.6
|
|
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
|
Author: Josef Friedrich
|
|
@@ -13,7 +13,7 @@ Description: [](https
|
|
|
13
13
|
|
|
14
14
|
Nagios / Icinga monitoring plugin to check systemd for failed units.
|
|
15
15
|
|
|
16
|
-
This Python script will report a degraded system to Nagios /
|
|
16
|
+
This Python script will report a degraded system to Nagios / Icinga.
|
|
17
17
|
It requires only the nagiosplugin library.
|
|
18
18
|
|
|
19
19
|
You can also test a single service with -s parameter.
|
|
@@ -64,6 +64,7 @@ Description: [](https
|
|
|
64
64
|
|
|
65
65
|
* https://github.com/Josef-Friedrich/check_systemd
|
|
66
66
|
* https://exchange.icinga.com/joseffriedrich/check_systemd
|
|
67
|
+
* https://exchange.nagios.org/directory/Plugins/System-Metrics/Processes/check_systemd
|
|
67
68
|
|
|
68
69
|
## Testing
|
|
69
70
|
|
|
@@ -15,7 +15,7 @@ import re
|
|
|
15
15
|
import nagiosplugin
|
|
16
16
|
from nagiosplugin import Metric
|
|
17
17
|
|
|
18
|
-
__version__ = '2.0.
|
|
18
|
+
__version__ = '2.0.6'
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
class SystemdctlListUnitsResource(nagiosplugin.Resource):
|
|
@@ -149,9 +149,12 @@ class SystemdAnalyseResource(nagiosplugin.Resource):
|
|
|
149
149
|
if not match:
|
|
150
150
|
match = re.search(r' = (.+)\n', stdout)
|
|
151
151
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
152
|
+
# Output when boot process is not finished:
|
|
153
|
+
# Bootup is not yet finished. Please try again later.
|
|
154
|
+
if match:
|
|
155
|
+
yield Metric(name='startup_time',
|
|
156
|
+
value=format_timespan_to_seconds(match.group(1)),
|
|
157
|
+
context='startup_time')
|
|
155
158
|
|
|
156
159
|
|
|
157
160
|
class SystemctlIsActiveResource(nagiosplugin.Resource):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|