From 3699102c3aa1e10a08e3adb5bb798e0b324d68a9 Mon Sep 17 00:00:00 2001 From: Kael Shipman Date: Sun, 18 Nov 2018 17:17:57 -0600 Subject: [PATCH] Fixed documentation for perldoc format --- plugins/systemd/systemd_units | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/systemd/systemd_units b/plugins/systemd/systemd_units index 8f5ea5f1..e5075cb5 100755 --- a/plugins/systemd/systemd_units +++ b/plugins/systemd/systemd_units @@ -21,9 +21,10 @@ about and/or exclude units you don't care about. (Note that for failed units, default warning and critical values are set to 0 and 10, respectively. No other states have default levels set.) -Value calculations for each state are made using the following algorithm (all filters performed using \`egrep\`): +Value calculations for each state are made using the following algorithm (all filters performed using +C): -1. Global include rules are applied on the output of \`systemctl list-units --all --no-legend\`; +1. Global include rules are applied on the output of C; 2. Global exclude rules are then applied to the result of that; 3. Then, for each state, this global output is further filtered by include, then exclude rules for the state; 4. Then the result is filtered for the given state and the remaining units counted and listed.