monitoring-plugins-systemd

Edit Package monitoring-plugins-systemd
No description set
Refresh
Refresh
Source Files
Filename Size Changed
check_systemd-2.0.11.tar.gz 0000053995 52.7 KB
monitoring-plugins-systemd.changes 0000000364 364 Bytes
monitoring-plugins-systemd.spec 0000002160 2.11 KB
Comments 1

Winfried Angele's avatar

This version (2.0.11) does not work anymore, at least not on 15.5.

The output of "systemctl list-units --all --no-legend" now has an unexpected leftmost column.

It works for me with this patch:

--- /usr/lib/nagios/plugins/check_systemd!······2024-07-19 13:59:58.529368293 +0200
+++ /usr/lib/nagios/plugins/check_systemd.patched!······2024-07-19 14:02:20.089646613 +0200
@@ -36,7 +36,7 @@
         # We don’t use `systemctl --failed --no-legend`, because we want to
         # collect performance data of all units.
         try:
-            p = subprocess.Popen(['systemctl', 'list-units', '--all',
+            p = subprocess.Popen(['systemctl', 'list-units', '--all', '--plain', '--no-pager',
                                   '--no-legend'],
                                  stderr=subprocess.PIPE,
                                  stdin=subprocess.PIPE,
openSUSE Build Service is sponsored by